honeycombatomiclib 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/buttons/BeeSelectButton.d.ts +10 -2
- package/dist/components/atoms/buttons/BeeSelectButton.d.ts.map +1 -1
- package/dist/components/atoms/select/BeeChipDropdown.d.ts +10 -2
- package/dist/components/atoms/select/BeeChipDropdown.d.ts.map +1 -1
- package/dist/components/atoms/select/BeeDropDown.d.ts +10 -2
- package/dist/components/atoms/select/BeeDropDown.d.ts.map +1 -1
- package/dist/components/molecules/misc/BeeFilterDropDown.d.ts +10 -2
- package/dist/components/molecules/misc/BeeFilterDropDown.d.ts.map +1 -1
- package/dist/components/organisms/forms/BeeAddressForm.d.ts +11 -3
- package/dist/components/organisms/forms/BeeAddressForm.d.ts.map +1 -1
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +48 -9
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -8
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/react-id-generator/lib/index.d.ts +7 -0
- package/dist/node_modules/react-id-generator/lib/index.d.ts.map +1 -0
- package/dist/src/components/atoms/buttons/BeeButton.d.ts +24 -0
- package/dist/src/components/atoms/buttons/BeeButton.d.ts.map +1 -0
- package/dist/src/components/atoms/buttons/index.d.ts +2 -0
- package/dist/src/components/atoms/buttons/index.d.ts.map +1 -0
- package/dist/src/components/atoms/index.d.ts +2 -0
- package/dist/src/components/atoms/index.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/stories/Button.d.ts +16 -0
- package/dist/stories/Button.d.ts.map +1 -0
- package/dist/stories/Button.stories.d.ts +9 -0
- package/dist/stories/Button.stories.d.ts.map +1 -0
- package/dist/stories/Header.d.ts +13 -0
- package/dist/stories/Header.d.ts.map +1 -0
- package/dist/stories/Header.stories.d.ts +7 -0
- package/dist/stories/Header.stories.d.ts.map +1 -0
- package/dist/stories/Page.d.ts +4 -0
- package/dist/stories/Page.d.ts.map +1 -0
- package/dist/stories/Page.stories.d.ts +7 -0
- package/dist/stories/Page.stories.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),n=require("primereact/button"),i=require("primereact/selectbutton"),a=require("primereact/splitbutton"),r=require("primereact/knob"),o=require("primereact/autocomplete"),s=require("primereact/inputtext"),l=require("primereact/chips"),c=require("primereact/badge"),u=require("primereact/inputnumber"),d=require("primereact/calendar"),p=require("primereact/api"),h=require("primereact/password"),f=require("primereact/divider"),m=require("primereact/inputtextarea"),g=require("primereact/tooltip"),v=require("primereact/card"),b=require("primereact/skeleton"),x=require("primereact/chip"),y=require("primereact/progressbar"),_=require("primereact/progressspinner"),w=require("primereact/slider"),j=require("primereact/breadcrumb"),k=require("primereact/tabview"),S=require("primereact/checkbox"),C=require("primereact/tristatecheckbox"),N=require("primereact/colorpicker"),M=require("primereact/dropdown");require("primereact/selectitem");var O=require("primereact/inputswitch"),D=require("primereact/treeselect"),z=require("primereact/multiselect"),A=require("primereact/panel");require("primeflex/primeflex.css");var E=require("primereact/galleria"),P=require("primereact/confirmdialog"),R=require("primereact/dialog"),I=require("lottie-react"),T=require("primereact/datatable"),L=require("primereact/column");function F(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var B=F(t),W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var V,$={};var H=(V||(V=1,function(e){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(t),a="id",r=0;function o(e){return r++,"".concat(e||a).concat(r)}function s(e){var t=i.default.useRef();return i.default.useEffect(function(){t.current=e}),t.current}e.default=o,e.resetId=function(){r=0},e.setPrefix=function(e){a=e},e.useId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,n=i.default.useRef([]),a=s(e),r=s(t);return e===a&&r===t||(n.current=function(e,t){for(var n=[],i=0;i<e;i++)n.push(o(t));return n}(e,t)),n.current}}($)),$);function U({id:t,className:i,label:a,disabled:r,type:o="primary",iconPos:s="right",tooltip:l,tooltipOptions:c,isLoading:u,size:d,onClick:p}){const h=null!=t?t:H.useId(1,"bee-button-")[0],f="bee-btn "+("primary"===o?"bee-btn-primary":"secondary"===o?"p-button-secondary bee-btn-secondary":"danger"===o?"p-button-danger bee-btn-danger":"light"===o?"bee-btn-light":"bee-btn-primary")+(i?" "+i:"");return e.jsx(n.Button,{id:h,loading:null!=u&&u,iconPos:s,size:d,disabled:null!=r&&r,label:a,tooltip:l,tooltipOptions:c,onClick:e=>function(e){!r&&p&&p(e)}(e),className:f})}function Y({id:t,className:i,iconClass:a,rounded:r=!1,halfRounded:o,disabled:s,type:l="primary",isLoading:c,tooltip:u,tooltipOptions:d,size:p,onClick:h}){const f=null!=t?t:H.useId(1,"bee-icon-button-")[0],m=("primary"===l?"bee-icn-btn-primary":"secondary"===l?"p-button-secondary bee-icn-btn-secondary":"danger"===l?"p-button-danger bee-icn-btn-danger":"lightPrimary"===l?"bee-icn-btn-light-primary":"lightSecondary"===l?"bee-icn-btn-light-secondary":"lightDanger"===l?"bee-icn-btn-light-danger p-button-danger p-button-outlined":"bee-icn-btn-primary")+(r?" p-button-rounded":"")+(o?" p-button-half-rounded":"")+(i?" "+i:"");return e.jsx(n.Button,{id:f,disabled:null!=s&&s,loading:null!=c&&c,className:m,icon:a,tooltip:u,tooltipOptions:d,size:p,onClick:e=>function(e){!s&&h&&h(e)}(e)})}function K({id:t,className:i,label:a,raised:r=!1,disabled:o,type:s="primary",tooltip:l,tooltipOptions:c,isLoading:u,size:d,onClick:p}){const h=null!=t?t:H.useId(1,"bee-link-button-")[0],f=(r?"p-button-raised p-button-text":"p-button-text")+("primary"===s?" p-button-primary bee-link-btn-primary":"secondary"===s?" p-button-secondary bee-link-btn-secondary":"danger"===s?" p-button-danger bee-link-btn-danger":"light"===s?" bee-link-btn-light":" bee-link-btn-primary")+(i?" "+i:"");return e.jsx(n.Button,{id:h,className:f,loading:null!=u&&u,disabled:null!=o&&o,label:a,tooltip:l,tooltipOptions:c,size:d,onClick:e=>function(e){!o&&p&&p(e)}(e)})}function Z({id:t,className:i,label:a,iconClass:r,iconPos:o="right",disabled:s,type:l="primary",isLoading:c,tooltip:u,tooltipOptions:d,size:p,onClick:h}){const f=null!=t?t:H.useId(1,"bee-mix-button-")[0],m=("primary"===l?"bee-mix-btn-primary":"secondary"===l?"p-button-secondary bee-mix-btn-secondary":"danger"===l?"p-button-danger bee-mix-btn-danger":"lightPrimary"===l?"bee-mix-btn-light-primary":"lightSecondary"===l?"bee-mix-btn-light-secondary":"lightDanger"===l?"bee-mix-btn-light-danger p-button-danger p-button-outlined":"bee-mix-btn-primary")+(i?" "+i:"");return e.jsx(n.Button,{id:f,loading:null!=c&&c,label:a,className:m,iconPos:o,icon:r,disabled:null!=s&&s,tooltip:u,tooltipOptions:d,size:p,onClick:e=>function(e){!s&&h&&h(e)}(e)})}
|
|
1
|
+
"use strict";var require$$0=require("react/jsx-runtime"),React=require("react"),button=require("primereact/button"),selectbutton=require("primereact/selectbutton"),splitbutton=require("primereact/splitbutton"),knob=require("primereact/knob"),autocomplete=require("primereact/autocomplete"),inputtext=require("primereact/inputtext"),chips=require("primereact/chips"),badge=require("primereact/badge"),inputnumber=require("primereact/inputnumber"),calendar=require("primereact/calendar"),api=require("primereact/api"),password=require("primereact/password"),divider=require("primereact/divider"),inputtextarea=require("primereact/inputtextarea"),tooltip=require("primereact/tooltip"),card=require("primereact/card"),skeleton=require("primereact/skeleton"),chip=require("primereact/chip"),progressbar=require("primereact/progressbar"),progressspinner=require("primereact/progressspinner"),slider=require("primereact/slider"),breadcrumb=require("primereact/breadcrumb"),tabview=require("primereact/tabview"),checkbox=require("primereact/checkbox"),tristatecheckbox=require("primereact/tristatecheckbox"),colorpicker=require("primereact/colorpicker"),dropdown=require("primereact/dropdown"),inputswitch=require("primereact/inputswitch"),treeselect=require("primereact/treeselect"),multiselect=require("primereact/multiselect"),panel=require("primereact/panel");require("primeflex/primeflex.css");var galleria=require("primereact/galleria"),confirmdialog=require("primereact/confirmdialog"),dialog=require("primereact/dialog"),datatable=require("primereact/datatable"),column=require("primereact/column");function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(i){if("default"!==i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})}}),t.default=e,Object.freeze(t)}var React__namespace=_interopNamespaceDefault(React),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lib={},hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,function(e){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(e,"__esModule",{value:!0});var i=t(React),r="id",n=0;function a(e){return n++,"".concat(e||r).concat(n)}function s(e){var t=i.default.useRef();return i.default.useEffect(function(){t.current=e}),t.current}e.default=a,e.resetId=function(){n=0},e.setPrefix=function(e){r=e},e.useId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=i.default.useRef([]),n=s(e),o=s(t);return e===n&&o===t||(r.current=function(e,t){for(var i=[],r=0;r<e;r++)i.push(a(t));return i}(e,t)),r.current}}(lib)),lib}var libExports=requireLib();function BeeButton({id:e,className:t,label:i,disabled:r,type:n="primary",iconPos:a="right",tooltip:s,tooltipOptions:o,isLoading:l,size:c,onClick:h}){const p=null!=e?e:libExports.useId(1,"bee-button-")[0],u="bee-btn "+("primary"===n?"bee-btn-primary":"secondary"===n?"p-button-secondary bee-btn-secondary":"danger"===n?"p-button-danger bee-btn-danger":"light"===n?"bee-btn-light":"bee-btn-primary")+(t?" "+t:"");return require$$0.jsx(button.Button,{id:p,loading:null!=l&&l,iconPos:a,size:c,disabled:null!=r&&r,label:i,tooltip:s,tooltipOptions:o,onClick:e=>function(e){!r&&h&&h(e)}(e),className:u})}function BeeIconBadgeButton({id:e,className:t,iconClass:i,value:r,disabled:n,type:a="primary",tooltip:s,tooltipOptions:o,onClick:l}){const c=null!=e?e:libExports.useId(1,"bee-icon-badge-button-")[0],h="p-button-text "+("secondary"===a?"p-button-secondary ":"danger"===a?"p-button-danger ":""),p="bee-icn-badge-btn "+("primary"===a?"bee-icn-badge-btn-primary":"secondary"===a?"bee-icn-badge-btn-secondary":"danger"===a?"bee-icn-badge-btn-danger":"light"===a?"bee-icn-badge-btn-light":"bee-icn-badge-btn-primary")+(r?" bee-icn-badge-btn-value":null)+(t?" "+t:"");return require$$0.jsx("div",{className:p,children:require$$0.jsx(button.Button,{disabled:null!=n&&n,id:c,className:h,icon:i,label:r?"("+r+")":void 0,tooltip:s,tooltipOptions:o,onClick:e=>function(e){!n&&l&&l(e)}(e)})})}function BeeIconButton({id:e,className:t,iconClass:i,rounded:r=!1,halfRounded:n,disabled:a,type:s="primary",isLoading:o,tooltip:l,tooltipOptions:c,size:h,onClick:p}){const u=null!=e?e:libExports.useId(1,"bee-icon-button-")[0],d=("primary"===s?"bee-icn-btn-primary":"secondary"===s?"p-button-secondary bee-icn-btn-secondary":"danger"===s?"p-button-danger bee-icn-btn-danger":"lightPrimary"===s?"bee-icn-btn-light-primary":"lightSecondary"===s?"bee-icn-btn-light-secondary":"lightDanger"===s?"bee-icn-btn-light-danger p-button-danger p-button-outlined":"bee-icn-btn-primary")+(r?" p-button-rounded":"")+(n?" p-button-half-rounded":"")+(t?" "+t:"");return require$$0.jsx(button.Button,{id:u,disabled:null!=a&&a,loading:null!=o&&o,className:d,icon:i,tooltip:l,tooltipOptions:c,size:h,onClick:e=>function(e){!a&&p&&p(e)}(e)})}function BeeOutlinedIconButton({id:e,className:t,iconClass:i,rounded:r=!1,disabled:n,type:a="primary",tooltip:s,tooltipOptions:o,isLoading:l,size:c,onClick:h}){const p=null!=e?e:libExports.useId(1,"bee-outlined-icon-button-")[0],u="p-button-outlined"+(r?" p-button-rounded":"")+("primary"===a?" bee-outlined-icon-btn-primary":"secondary"===a?" p-button-secondary bee-outlined-icon-btn-secondary":"danger"===a?" p-button-danger bee-outlined-icon-btn-danger":"light"===a?" bee-outlined-icon-btn-light":" bee-outlined-icon-btn-primary")+(t?" "+t:"");return require$$0.jsx(button.Button,{id:p,loading:null!=l&&l,disabled:null!=n&&n,icon:i,tooltip:s,tooltipOptions:o,size:c,className:u,onClick:e=>function(e){!n&&h&&h(e)}(e)})}function BeeLinkButton({id:e,className:t,label:i,raised:r=!1,disabled:n,type:a="primary",tooltip:s,tooltipOptions:o,isLoading:l,size:c,onClick:h}){const p=null!=e?e:libExports.useId(1,"bee-link-button-")[0],u=(r?"p-button-raised p-button-text":"p-button-text")+("primary"===a?" p-button-primary bee-link-btn-primary":"secondary"===a?" p-button-secondary bee-link-btn-secondary":"danger"===a?" p-button-danger bee-link-btn-danger":"light"===a?" bee-link-btn-light":" bee-link-btn-primary")+(t?" "+t:"");return require$$0.jsx(button.Button,{id:p,className:u,loading:null!=l&&l,disabled:null!=n&&n,label:i,tooltip:s,tooltipOptions:o,size:c,onClick:e=>function(e){!n&&h&&h(e)}(e)})}function BeeMixButton({id:e,className:t,label:i,iconClass:r,iconPos:n="right",disabled:a,type:s="primary",isLoading:o,tooltip:l,tooltipOptions:c,size:h,onClick:p}){const u=null!=e?e:libExports.useId(1,"bee-mix-button-")[0],d=("primary"===s?"bee-mix-btn-primary":"secondary"===s?"p-button-secondary bee-mix-btn-secondary":"danger"===s?"p-button-danger bee-mix-btn-danger":"lightPrimary"===s?"bee-mix-btn-light-primary":"lightSecondary"===s?"bee-mix-btn-light-secondary":"lightDanger"===s?"bee-mix-btn-light-danger p-button-danger p-button-outlined":"bee-mix-btn-primary")+(t?" "+t:"");return require$$0.jsx(button.Button,{id:u,loading:null!=o&&o,label:i,className:d,iconPos:n,icon:r,disabled:null!=a&&a,tooltip:l,tooltipOptions:c,size:h,onClick:e=>function(e){!a&&p&&p(e)}(e)})}function BeeOutlinedButton({id:e,className:t,label:i,disabled:r,type:n="primary",tooltip:a,tooltipOptions:s,isLoading:o,size:l,onClick:c}){const h=null!=e?e:libExports.useId(1,"bee-outlined-button-")[0],p="p-button-outlined"+("primary"===n?" bee-outlined-btn-primary":"secondary"===n?" p-button-secondary bee-outlined-btn-secondary":"danger"===n?" p-button-danger bee-outlined-btn-danger":"light"===n?" bee-outlined-btn-light":" bee-outlined-btn-primary")+(t?" "+t:"");return require$$0.jsx(button.Button,{id:h,loading:null!=o&&o,disabled:null!=r&&r,label:i,tooltip:a,tooltipOptions:s,size:l,className:p,onClick:e=>function(e){!r&&c&&c(e)}(e)})}function BeeSelectButton({id:e,className:t,options:i,selectedOption:r,disabled:n,type:a="primary",itemTemplate:s,tooltip:o,tooltipOptions:l,onSelect:c}){const h=null!=e?e:libExports.useId(1,"bee-select-button-")[0],p="bee-select-btn "+("primary"===a?"bee-select-btn-primary":"secondary"===a?"bee-select-btn-secondary":"bee-select-btn-primary")+(t?" "+t:"");return require$$0.jsx(selectbutton.SelectButton,{id:h,disabled:null!=n&&n,value:r,className:p,options:i,itemTemplate:s,tooltip:o,tooltipOptions:l,onChange:e=>{return t=e.value,void(!n&&c&&c(t));var t}})}function BeeSplitButton({id:e,className:t,label:i,iconClass:r,dropdownIcon:n,disabled:a,isLoading:s,type:o="primary",model:l,menuClassName:c,menuButtonClassName:h,tooltip:p,tooltipOptions:u,size:d,onClick:f}){const m=null!=e?e:libExports.useId(1,"bee-split-button-")[0],g=("primary"===o?"bee-split-btn-primary":"secondary"===o?"p-button-secondary bee-split-btn-secondary":"danger"===o?"p-button-danger bee-split-btn-danger":"light"===o?"bee-split-btn-light":"bee-split-btn-primary")+(t?" "+t:"");return require$$0.jsx(splitbutton.SplitButton,{id:m,label:i,className:g,disabled:null!=a&&a,icon:r,dropdownIcon:n,model:l,loading:s,size:d,menuClassName:c,menuButtonClassName:h,tooltip:p,tooltipOptions:u,onClick:e=>function(e){!a&&f&&f(e)}(e)})}function BeeToolBarButton({id:e,className:t,iconClass:i,rounded:r,disabled:n,type:a="primary",tooltip:s,tooltipOptions:o,isLoading:l,size:c,onClick:h}){const p=null!=e?e:libExports.useId(1,"bee-toolbar-button-")[0],u="p-button-text"+("primary"===a?" bee-toolbar-btn-primary":"secondary"===a?" p-button-secondary bee-toolbar-btn-secondary":"danger"===a?" p-button-danger bee-toolbar-btn-danger":"light"===a?" bee-toolbar-btn-light":" bee-toolbar-btn-primary")+(r?" p-button-rounded":"")+(t?" "+t:"");return require$$0.jsx(button.Button,{id:p,disabled:null!=n&&n,loading:null!=l&&l,className:u,icon:i,tooltip:s,tooltipOptions:o,size:c,onClick:e=>function(e){!n&&h&&h(e)}(e)})}function BeeKnob({id:e,className:t,value:i,minValue:r=0,maxValue:n=100,step:a,size:s="medium",type:o="primary",disabled:l,readOnly:c,showValue:h=!0,strokeWidth:p=14,valueColor:u,rangeColor:d,textColor:f,valueTemplate:m,onChange:g}){const v=null!=e?e:libExports.useId(1,"bee-knob-")[0],y="xLarge"===s?300:"large"===s?200:"medium"===s?100:"small"===s?66:"xSmall"===s?33:100,b=(n-r)/3,x="primary"===o?"var(--primary-color)":"secondary"===o?"var(--secondary-dark-color)":"mixed"===o?null!=i&&i>2*b?"var(--valid-dark-color)":null!=i&&i>b?"var(--warning-color)":"var(--error-dark-color)":"var(--primary-color)",_=null!=u?u:x,S=null!=f?f:x,w=null!=d?d:"var(--surface-border, LightGray)";return require$$0.jsx(knob.Knob,{id:v,value:null!=i?i:r,min:r,max:n,valueColor:_,rangeColor:w,textColor:S,valueTemplate:null!=m?m:"{value}",step:null!=a?a:1,size:y,strokeWidth:p,className:null!=t?t:"",disabled:null!=l&&l,readOnly:null!=c&&c,showValue:h,onChange:e=>{return t=e.value,void(!l&&g&&g(t));var t}})}function BeeShareBar({id:e,className:t,data:i,onClick:r}){const n=null!=e?e:libExports.useId(1,"bee-share-bar-")[0];function a(e){let t=0;if(i){i.forEach(e=>t+=e.weight);return(e/t*100).toString()}return 0}return require$$0.jsx("div",{id:n,className:"bee-share-bar"+(t?" "+t:""),onClick:e=>function(e){null==r||r(e)}(e),children:i?i.map((e,t)=>{var i;return require$$0.jsxs("div",{className:"bee-share-bar-section",style:{width:a(e.weight)+"%",background:null!==(i=e.color)&&void 0!==i?i:"lightgrey"},children:[require$$0.jsx("div",{className:"bee-share-bar-rectangle"}),e.hint?require$$0.jsx("span",{className:"bee-share-bar-mouseover",children:e.hint}):null]},"shareBar_part_"+t)}):require$$0.jsx("div",{className:"bee-sharebar-empty",style:{width:"100%",background:"lightgrey"}})})}
|
|
2
2
|
/*!
|
|
3
3
|
* @kurkle/color v0.3.4
|
|
4
4
|
* https://github.com/kurkle/color#readme
|
|
5
5
|
* (c) 2024 Jukka Kurkela
|
|
6
6
|
* Released under the MIT License
|
|
7
|
-
*/
|
|
8
|
-
function G(e){return e+.5|0}const X=(e,t,n)=>Math.max(Math.min(e,n),t);function J(e){return X(G(2.55*e),0,255)}function Q(e){return X(G(255*e),0,255)}function ee(e){return X(G(e/2.55)/100,0,1)}function te(e){return X(G(100*e),0,100)}const ne={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ie=[..."0123456789ABCDEF"],ae=e=>ie[15&e],re=e=>ie[(240&e)>>4]+ie[15&e],oe=e=>(240&e)>>4==(15&e);function se(e){var t=(e=>oe(e.r)&&oe(e.g)&&oe(e.b)&&oe(e.a))(e)?ae:re;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const le=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ce(e,t,n){const i=t*Math.min(n,1-n),a=(t,a=(t+e/30)%12)=>n-i*Math.max(Math.min(a-3,9-a,1),-1);return[a(0),a(8),a(4)]}function ue(e,t,n){const i=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[i(5),i(3),i(1)]}function de(e,t,n){const i=ce(e,1,.5);let a;for(t+n>1&&(a=1/(t+n),t*=a,n*=a),a=0;a<3;a++)i[a]*=1-t-n,i[a]+=t;return i}function pe(e){const t=e.r/255,n=e.g/255,i=e.b/255,a=Math.max(t,n,i),r=Math.min(t,n,i),o=(a+r)/2;let s,l,c;return a!==r&&(c=a-r,l=o>.5?c/(2-a-r):c/(a+r),s=function(e,t,n,i,a){return e===a?(t-n)/i+(t<n?6:0):t===a?(n-e)/i+2:(e-t)/i+4}(t,n,i,c,a),s=60*s+.5),[0|s,l||0,o]}function he(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(Q)}function fe(e,t,n){return he(ce,e,t,n)}function me(e){return(e%360+360)%360}function ge(e){const t=le.exec(e);let n,i=255;if(!t)return;t[5]!==n&&(i=t[6]?J(+t[5]):Q(+t[5]));const a=me(+t[2]),r=+t[3]/100,o=+t[4]/100;return n="hwb"===t[1]?function(e,t,n){return he(de,e,t,n)}(a,r,o):"hsv"===t[1]?function(e,t,n){return he(ue,e,t,n)}(a,r,o):fe(a,r,o),{r:n[0],g:n[1],b:n[2],a:i}}const ve={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},be={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let xe;function ye(e){xe||(xe=function(){const e={},t=Object.keys(be),n=Object.keys(ve);let i,a,r,o,s;for(i=0;i<t.length;i++){for(o=s=t[i],a=0;a<n.length;a++)r=n[a],s=s.replace(r,ve[r]);r=parseInt(be[o],16),e[s]=[r>>16&255,r>>8&255,255&r]}return e}(),xe.transparent=[0,0,0,0]);const t=xe[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const _e=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const we=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,je=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function ke(e,t,n){if(e){let i=pe(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,0===t?360:1)),i=fe(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Se(e,t){return e?Object.assign(t||{},e):e}function Ce(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Q(e[3]))):(t=Se(e,{r:0,g:0,b:0,a:1})).a=Q(t.a),t}function Ne(e){return"r"===e.charAt(0)?function(e){const t=_e.exec(e);let n,i,a,r=255;if(t){if(t[7]!==n){const e=+t[7];r=t[8]?J(e):X(255*e,0,255)}return n=+t[1],i=+t[3],a=+t[5],n=255&(t[2]?J(n):X(n,0,255)),i=255&(t[4]?J(i):X(i,0,255)),a=255&(t[6]?J(a):X(a,0,255)),{r:n,g:i,b:a,a:r}}}(e):ge(e)}class Me{constructor(e){if(e instanceof Me)return e;const t=typeof e;let n;var i,a,r;"object"===t?n=Ce(e):"string"===t&&(r=(i=e).length,"#"===i[0]&&(4===r||5===r?a={r:255&17*ne[i[1]],g:255&17*ne[i[2]],b:255&17*ne[i[3]],a:5===r?17*ne[i[4]]:255}:7!==r&&9!==r||(a={r:ne[i[1]]<<4|ne[i[2]],g:ne[i[3]]<<4|ne[i[4]],b:ne[i[5]]<<4|ne[i[6]],a:9===r?ne[i[7]]<<4|ne[i[8]]:255})),n=a||ye(e)||Ne(e)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var e=Se(this._rgb);return e&&(e.a=ee(e.a)),e}set rgb(e){this._rgb=Ce(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ee(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?se(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=pe(e),n=t[0],i=te(t[1]),a=te(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${a}%, ${ee(e.a)})`:`hsl(${n}, ${i}%, ${a}%)`}(this._rgb):void 0}mix(e,t){if(e){const n=this.rgb,i=e.rgb;let a;const r=t===a?.5:t,o=2*r-1,s=n.a-i.a,l=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;a=1-l,n.r=255&l*n.r+a*i.r+.5,n.g=255&l*n.g+a*i.g+.5,n.b=255&l*n.b+a*i.b+.5,n.a=r*n.a+(1-r)*i.a,this.rgb=n}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,n){const i=je(ee(e.r)),a=je(ee(e.g)),r=je(ee(e.b));return{r:Q(we(i+n*(je(ee(t.r))-i))),g:Q(we(a+n*(je(ee(t.g))-a))),b:Q(we(r+n*(je(ee(t.b))-r))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Me(this.rgb)}alpha(e){return this._rgb.a=Q(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=G(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return ke(this._rgb,2,e),this}darken(e){return ke(this._rgb,2,-e),this}saturate(e){return ke(this._rgb,1,e),this}desaturate(e){return ke(this._rgb,1,-e),this}rotate(e){return function(e,t){var n=pe(e);n[0]=me(n[0]+t),n=fe(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}
|
|
7
|
+
*/function round(e){return e+.5|0}const lim=(e,t,i)=>Math.max(Math.min(e,i),t);function p2b(e){return lim(round(2.55*e),0,255)}function n2b(e){return lim(round(255*e),0,255)}function b2n(e){return lim(round(e/2.55)/100,0,1)}function n2p(e){return lim(round(100*e),0,100)}const map$1={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hex=[..."0123456789ABCDEF"],h1=e=>hex[15&e],h2=e=>hex[(240&e)>>4]+hex[15&e],eq=e=>(240&e)>>4==(15&e),isShort=e=>eq(e.r)&&eq(e.g)&&eq(e.b)&&eq(e.a);function hexParse(e){var t,i=e.length;return"#"===e[0]&&(4===i||5===i?t={r:255&17*map$1[e[1]],g:255&17*map$1[e[2]],b:255&17*map$1[e[3]],a:5===i?17*map$1[e[4]]:255}:7!==i&&9!==i||(t={r:map$1[e[1]]<<4|map$1[e[2]],g:map$1[e[3]]<<4|map$1[e[4]],b:map$1[e[5]]<<4|map$1[e[6]],a:9===i?map$1[e[7]]<<4|map$1[e[8]]:255})),t}const alpha=(e,t)=>e<255?t(e):"";function hexString(e){var t=isShort(e)?h1:h2;return e?"#"+t(e.r)+t(e.g)+t(e.b)+alpha(e.a,t):void 0}const HUE_RE=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function hsl2rgbn(e,t,i){const r=t*Math.min(i,1-i),n=(t,n=(t+e/30)%12)=>i-r*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function hsv2rgbn(e,t,i){const r=(r,n=(r+e/60)%6)=>i-i*t*Math.max(Math.min(n,4-n,1),0);return[r(5),r(3),r(1)]}function hwb2rgbn(e,t,i){const r=hsl2rgbn(e,1,.5);let n;for(t+i>1&&(n=1/(t+i),t*=n,i*=n),n=0;n<3;n++)r[n]*=1-t-i,r[n]+=t;return r}function hueValue(e,t,i,r,n){return e===n?(t-i)/r+(t<i?6:0):t===n?(i-e)/r+2:(e-t)/r+4}function rgb2hsl(e){const t=e.r/255,i=e.g/255,r=e.b/255,n=Math.max(t,i,r),a=Math.min(t,i,r),s=(n+a)/2;let o,l,c;return n!==a&&(c=n-a,l=s>.5?c/(2-n-a):c/(n+a),o=hueValue(t,i,r,c,n),o=60*o+.5),[0|o,l||0,s]}function calln(e,t,i,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,i,r)).map(n2b)}function hsl2rgb(e,t,i){return calln(hsl2rgbn,e,t,i)}function hwb2rgb(e,t,i){return calln(hwb2rgbn,e,t,i)}function hsv2rgb(e,t,i){return calln(hsv2rgbn,e,t,i)}function hue(e){return(e%360+360)%360}function hueParse(e){const t=HUE_RE.exec(e);let i,r=255;if(!t)return;t[5]!==i&&(r=t[6]?p2b(+t[5]):n2b(+t[5]));const n=hue(+t[2]),a=+t[3]/100,s=+t[4]/100;return i="hwb"===t[1]?hwb2rgb(n,a,s):"hsv"===t[1]?hsv2rgb(n,a,s):hsl2rgb(n,a,s),{r:i[0],g:i[1],b:i[2],a:r}}function rotate(e,t){var i=rgb2hsl(e);i[0]=hue(i[0]+t),i=hsl2rgb(i),e.r=i[0],e.g=i[1],e.b=i[2]}function hslString(e){if(!e)return;const t=rgb2hsl(e),i=t[0],r=n2p(t[1]),n=n2p(t[2]);return e.a<255?`hsla(${i}, ${r}%, ${n}%, ${b2n(e.a)})`:`hsl(${i}, ${r}%, ${n}%)`}const map={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},names$1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function unpack(){const e={},t=Object.keys(names$1),i=Object.keys(map);let r,n,a,s,o;for(r=0;r<t.length;r++){for(s=o=t[r],n=0;n<i.length;n++)a=i[n],o=o.replace(a,map[a]);a=parseInt(names$1[s],16),e[o]=[a>>16&255,a>>8&255,255&a]}return e}let names;function nameParse(e){names||(names=unpack(),names.transparent=[0,0,0,0]);const t=names[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const RGB_RE=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function rgbParse(e){const t=RGB_RE.exec(e);let i,r,n,a=255;if(t){if(t[7]!==i){const e=+t[7];a=t[8]?p2b(e):lim(255*e,0,255)}return i=+t[1],r=+t[3],n=+t[5],i=255&(t[2]?p2b(i):lim(i,0,255)),r=255&(t[4]?p2b(r):lim(r,0,255)),n=255&(t[6]?p2b(n):lim(n,0,255)),{r:i,g:r,b:n,a:a}}}function rgbString(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${b2n(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const to=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,from=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function interpolate$1(e,t,i){const r=from(b2n(e.r)),n=from(b2n(e.g)),a=from(b2n(e.b));return{r:n2b(to(r+i*(from(b2n(t.r))-r))),g:n2b(to(n+i*(from(b2n(t.g))-n))),b:n2b(to(a+i*(from(b2n(t.b))-a))),a:e.a+i*(t.a-e.a)}}function modHSL(e,t,i){if(e){let r=rgb2hsl(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*i,0===t?360:1)),r=hsl2rgb(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function clone$1(e,t){return e?Object.assign(t||{},e):e}function fromObject(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=n2b(e[3]))):(t=clone$1(e,{r:0,g:0,b:0,a:1})).a=n2b(t.a),t}function functionParse(e){return"r"===e.charAt(0)?rgbParse(e):hueParse(e)}class Color{constructor(e){if(e instanceof Color)return e;const t=typeof e;let i;"object"===t?i=fromObject(e):"string"===t&&(i=hexParse(e)||nameParse(e)||functionParse(e)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var e=clone$1(this._rgb);return e&&(e.a=b2n(e.a)),e}set rgb(e){this._rgb=fromObject(e)}rgbString(){return this._valid?rgbString(this._rgb):void 0}hexString(){return this._valid?hexString(this._rgb):void 0}hslString(){return this._valid?hslString(this._rgb):void 0}mix(e,t){if(e){const i=this.rgb,r=e.rgb;let n;const a=t===n?.5:t,s=2*a-1,o=i.a-r.a,l=((s*o===-1?s:(s+o)/(1+s*o))+1)/2;n=1-l,i.r=255&l*i.r+n*r.r+.5,i.g=255&l*i.g+n*r.g+.5,i.b=255&l*i.b+n*r.b+.5,i.a=a*i.a+(1-a)*r.a,this.rgb=i}return this}interpolate(e,t){return e&&(this._rgb=interpolate$1(this._rgb,e._rgb,t)),this}clone(){return new Color(this.rgb)}alpha(e){return this._rgb.a=n2b(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=round(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return modHSL(this._rgb,2,e),this}darken(e){return modHSL(this._rgb,2,-e),this}saturate(e){return modHSL(this._rgb,1,e),this}desaturate(e){return modHSL(this._rgb,1,-e),this}rotate(e){return rotate(this._rgb,e),this}}
|
|
9
8
|
/*!
|
|
10
9
|
* Chart.js v4.5.1
|
|
11
10
|
* https://www.chartjs.org
|
|
12
11
|
* (c) 2025 Chart.js Contributors
|
|
13
12
|
* Released under the MIT License
|
|
14
|
-
*/function Oe(){}const De=(()=>{let e=0;return()=>e++})();function ze(e){return null==e}function Ae(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function Ee(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function Pe(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function Re(e,t){return Pe(e)?e:t}function Ie(e,t){return void 0===e?t:e}const Te=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Le(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)}function Fe(e,t,n,i){let a,r,o;if(Ae(e))for(r=e.length,a=0;a<r;a++)t.call(n,e[a],a);else if(Ee(e))for(o=Object.keys(e),r=o.length,a=0;a<r;a++)t.call(n,e[o[a]],o[a])}function Be(e,t){let n,i,a,r;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(a=e[n],r=t[n],a.datasetIndex!==r.datasetIndex||a.index!==r.index)return!1;return!0}function We(e){if(Ae(e))return e.map(We);if(Ee(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let a=0;for(;a<i;++a)t[n[a]]=We(e[n[a]]);return t}return e}function qe(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function Ve(e,t,n,i){if(!qe(e))return;const a=t[e],r=n[e];Ee(a)&&Ee(r)?$e(a,r,i):t[e]=We(r)}function $e(e,t,n){const i=Ae(t)?t:[t],a=i.length;if(!Ee(e))return e;const r=(n=n||{}).merger||Ve;let o;for(let t=0;t<a;++t){if(o=i[t],!Ee(o))continue;const a=Object.keys(o);for(let t=0,i=a.length;t<i;++t)r(a[t],e,o,n)}return e}function He(e,t){return $e(e,t,{merger:Ue})}function Ue(e,t,n){if(!qe(e))return;const i=t[e],a=n[e];Ee(i)&&Ee(a)?He(i,a):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=We(a))}const Ye={"":e=>e,x:e=>e.x,y:e=>e.y};function Ke(e,t){const n=Ye[t]||(Ye[t]=function(e){const t=function(e){const t=e.split("."),n=[];let i="";for(const e of t)i+=e,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(e);return e=>{for(const n of t){if(""===n)break;e=e&&e[n]}return e}}(t));return n(e)}function Ze(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Ge=e=>void 0!==e,Xe=e=>"function"==typeof e,Je=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};const Qe=Math.PI,et=2*Qe,tt=Number.POSITIVE_INFINITY,nt=Qe/180,it=Qe/2,at=Qe/4,rt=2*Qe/3,ot=Math.log10,st=Math.sign;function lt(e,t,n){return Math.abs(e-t)<n}function ct(e){const t=Math.round(e);e=lt(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ot(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function ut(e){return!function(e){return"symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function dt(e){return e*(Qe/180)}function pt(e){if(!Pe(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function ht(e,t){const n=t.x-e.x,i=t.y-e.y,a=Math.sqrt(n*n+i*i);let r=Math.atan2(i,n);return r<-.5*Qe&&(r+=et),{angle:r,distance:a}}function ft(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function mt(e){return(e%et+et)%et}function gt(e,t,n,i){const a=mt(e),r=mt(t),o=mt(n),s=mt(r-a),l=mt(o-a),c=mt(a-r),u=mt(a-o);return a===r||a===o||i&&r===o||s>l&&c<u}function vt(e,t,n){return Math.max(t,Math.min(n,e))}function bt(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function xt(e,t,n){n=n||(n=>e[n]<t);let i,a=e.length-1,r=0;for(;a-r>1;)i=r+a>>1,n(i)?r=i:a=i;return{lo:r,hi:a}}const yt=(e,t,n,i)=>xt(e,n,i?i=>{const a=e[i][t];return a<n||a===n&&e[i+1][t]===n}:i=>e[i][t]<n),_t=(e,t,n)=>xt(e,n,i=>e[i][t]>=n);const wt=["push","pop","shift","splice","unshift"];function jt(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,a=i.indexOf(t);-1!==a&&i.splice(a,1),i.length>0||(wt.forEach(t=>{delete e[t]}),delete e._chartjs)}function kt(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const St="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function Ct(e,t){let n=[],i=!1;return function(...a){n=a,i||(i=!0,St.call(window,()=>{i=!1,e.apply(t,n)}))}}const Nt=e=>"start"===e?"left":"end"===e?"right":"center",Mt=(e,t,n)=>"start"===e?t:"end"===e?n:(t+n)/2,Ot=e=>0===e||1===e,Dt=(e,t,n)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*et/n),zt=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*et/n)+1,At={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*it),easeOutSine:e=>Math.sin(e*it),easeInOutSine:e=>-.5*(Math.cos(Qe*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>Ot(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Ot(e)?e:Dt(e,.075,.3),easeOutElastic:e=>Ot(e)?e:zt(e,.075,.3),easeInOutElastic(e){const t=.1125;return Ot(e)?e:e<.5?.5*Dt(2*e,t,.45):.5+.5*zt(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-At.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:e=>e<.5?.5*At.easeInBounce(2*e):.5*At.easeOutBounce(2*e-1)+.5};function Et(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Pt(e){return Et(e)?e:new Me(e)}function Rt(e){return Et(e)?e:new Me(e).saturate(.5).darken(.1).hexString()}const It=["x","y","borderWidth","radius","tension"],Tt=["color","borderColor","backgroundColor"];const Lt=new Map;function Ft(e,t,n){return function(e,t){t=t||{};const n=e+JSON.stringify(t);let i=Lt.get(n);return i||(i=new Intl.NumberFormat(e,t),Lt.set(n,i)),i}(t,n).format(e)}var Bt={formatters:{values:e=>Ae(e)?e:""+e,numeric(e,t,n){if(0===e)return"0";const i=this.chart.options.locale;let a,r=e;if(n.length>1){const t=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(t<1e-4||t>1e15)&&(a="scientific"),r=function(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}const o=ot(Math.abs(r)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:a,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Ft(e,i,l)}}};const Wt=Object.create(null),qt=Object.create(null);function Vt(e,t){if(!t)return e;const n=t.split(".");for(let t=0,i=n.length;t<i;++t){const i=n[t];e=e[i]||(e[i]=Object.create(null))}return e}function $t(e,t,n){return"string"==typeof t?$e(Vt(e,t),n):$e(Vt(e,""),t)}class Ht{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>Rt(t.backgroundColor),this.hoverBorderColor=(e,t)=>Rt(t.borderColor),this.hoverColor=(e,t)=>Rt(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return $t(this,e,t)}get(e){return Vt(this,e)}describe(e,t){return $t(qt,e,t)}override(e,t){return $t(Wt,e,t)}route(e,t,n,i){const a=Vt(this,e),r=Vt(this,n),o="_"+t;Object.defineProperties(a,{[o]:{value:a[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[o],t=r[i];return Ee(e)?Object.assign({},t,e):Ie(e,t)},set(e){this[o]=e}}})}apply(e){e.forEach(e=>e(this))}}var Ut=new Ht({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:Tt},numbers:{type:"number",properties:It}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Bt.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}]);function Yt(e,t,n,i,a){let r=t[a];return r||(r=t[a]=e.measureText(a).width,n.push(a)),r>i&&(i=r),i}function Kt(e,t,n){const i=e.currentDevicePixelRatio,a=0!==n?Math.max(n/2,.5):0;return Math.round((t-a)*i)/i+a}function Zt(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Gt(e,t,n,i){Xt(e,t,n,i,null)}function Xt(e,t,n,i,a){let r,o,s,l,c,u,d,p;const h=t.pointStyle,f=t.rotation,m=t.radius;let g=(f||0)*nt;if(h&&"object"==typeof h&&(r=h.toString(),"[object HTMLImageElement]"===r||"[object HTMLCanvasElement]"===r))return e.save(),e.translate(n,i),e.rotate(g),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),h){default:a?e.ellipse(n,i,a/2,m,0,0,et):e.arc(n,i,m,0,et),e.closePath();break;case"triangle":u=a?a/2:m,e.moveTo(n+Math.sin(g)*u,i-Math.cos(g)*m),g+=rt,e.lineTo(n+Math.sin(g)*u,i-Math.cos(g)*m),g+=rt,e.lineTo(n+Math.sin(g)*u,i-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=.516*m,l=m-c,o=Math.cos(g+at)*l,d=Math.cos(g+at)*(a?a/2-c:l),s=Math.sin(g+at)*l,p=Math.sin(g+at)*(a?a/2-c:l),e.arc(n-d,i-s,c,g-Qe,g-it),e.arc(n+p,i-o,c,g-it,g),e.arc(n+d,i+s,c,g,g+it),e.arc(n-p,i+o,c,g+it,g+Qe),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,u=a?a/2:l,e.rect(n-u,i-l,2*u,2*l);break}g+=at;case"rectRot":d=Math.cos(g)*(a?a/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(a?a/2:m),e.moveTo(n-d,i-s),e.lineTo(n+p,i-o),e.lineTo(n+d,i+s),e.lineTo(n-p,i+o),e.closePath();break;case"crossRot":g+=at;case"cross":d=Math.cos(g)*(a?a/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(a?a/2:m),e.moveTo(n-d,i-s),e.lineTo(n+d,i+s),e.moveTo(n+p,i-o),e.lineTo(n-p,i+o);break;case"star":d=Math.cos(g)*(a?a/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(a?a/2:m),e.moveTo(n-d,i-s),e.lineTo(n+d,i+s),e.moveTo(n+p,i-o),e.lineTo(n-p,i+o),g+=at,d=Math.cos(g)*(a?a/2:m),o=Math.cos(g)*m,s=Math.sin(g)*m,p=Math.sin(g)*(a?a/2:m),e.moveTo(n-d,i-s),e.lineTo(n+d,i+s),e.moveTo(n+p,i-o),e.lineTo(n-p,i+o);break;case"line":o=a?a/2:Math.cos(g)*m,s=Math.sin(g)*m,e.moveTo(n-o,i-s),e.lineTo(n+o,i+s);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(g)*(a?a/2:m),i+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function Jt(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Qt(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function en(e){e.restore()}function tn(e,t,n,i,a){if(a.strikethrough||a.underline){const r=e.measureText(i),o=t-r.actualBoundingBoxLeft,s=t+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,u=a.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=a.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function nn(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function an(e,t,n,i,a,r={}){const o=Ae(t)?t:[t],s=r.strokeWidth>0&&""!==r.strokeColor;let l,c;for(e.save(),e.font=a.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),ze(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,r),l=0;l<o.length;++l)c=o[l],r.backdrop&&nn(e,r.backdrop),s&&(r.strokeColor&&(e.strokeStyle=r.strokeColor),ze(r.strokeWidth)||(e.lineWidth=r.strokeWidth),e.strokeText(c,n,i,r.maxWidth)),e.fillText(c,n,i,r.maxWidth),tn(e,n,i,c,r),i+=Number(a.lineHeight);e.restore()}function rn(e,t){const{x:n,y:i,w:a,h:r,radius:o}=t;e.arc(n+o.topLeft,i+o.topLeft,o.topLeft,1.5*Qe,Qe,!0),e.lineTo(n,i+r-o.bottomLeft),e.arc(n+o.bottomLeft,i+r-o.bottomLeft,o.bottomLeft,Qe,it,!0),e.lineTo(n+a-o.bottomRight,i+r),e.arc(n+a-o.bottomRight,i+r-o.bottomRight,o.bottomRight,it,0,!0),e.lineTo(n+a,i+o.topRight),e.arc(n+a-o.topRight,i+o.topRight,o.topRight,0,-it,!0),e.lineTo(n+o.topLeft,i)}const on=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,sn=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ln(e,t){const n=(""+e).match(on);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}const cn=e=>+e||0;function un(e,t){const n={},i=Ee(t),a=i?Object.keys(t):t,r=Ee(e)?i?n=>Ie(e[n],e[t[n]]):t=>e[t]:()=>e;for(const e of a)n[e]=cn(r(e));return n}function dn(e){return un(e,{top:"y",right:"x",bottom:"y",left:"x"})}function pn(e){return un(e,["topLeft","topRight","bottomLeft","bottomRight"])}function hn(e){const t=dn(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function fn(e,t){e=e||{},t=t||Ut.font;let n=Ie(e.size,t.size);"string"==typeof n&&(n=parseInt(n,10));let i=Ie(e.style,t.style);i&&!(""+i).match(sn)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const a={family:Ie(e.family,t.family),lineHeight:ln(Ie(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:Ie(e.weight,t.weight),string:""};return a.string=function(e){return!e||ze(e.size)||ze(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(a),a}function mn(e,t,n,i){let a,r,o;for(a=0,r=e.length;a<r;++a)if(o=e[a],void 0!==o&&void 0!==o)return o}function gn(e,t){return Object.assign(Object.create(e),t)}function vn(e,t=[""],n,i,a=()=>e[0]){const r=n||e;void 0===i&&(i=Mn("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:i,_getTarget:a,override:n=>vn([n,...e],t,r,i)};return new Proxy(o,{deleteProperty:(t,n)=>(delete t[n],delete t._keys,delete e[0][n],!0),get:(n,i)=>wn(n,i,()=>function(e,t,n,i){let a;for(const r of t)if(a=Mn(yn(r,e),n),void 0!==a)return _n(e,a)?Cn(n,i,e,a):a}(i,t,e,n)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>On(e).includes(t),ownKeys:e=>On(e),set(e,t,n){const i=e._storage||(e._storage=a());return e[t]=i[t]=n,delete e._keys,!0}})}function bn(e,t,n,i){const a={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:xn(e,i),setContext:t=>bn(e,t,n,i),override:a=>bn(e.override(a),t,n,i)};return new Proxy(a,{deleteProperty:(t,n)=>(delete t[n],delete e[n],!0),get:(e,t,n)=>wn(e,t,()=>function(e,t,n){const{_proxy:i,_context:a,_subProxy:r,_descriptors:o}=e;let s=i[t];Xe(s)&&o.isScriptable(t)&&(s=function(e,t,n,i){const{_proxy:a,_context:r,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(r,o||i);s.delete(e),_n(e,l)&&(l=Cn(a._scopes,a,e,l));return l}(t,s,e,n));Ae(s)&&s.length&&(s=function(e,t,n,i){const{_proxy:a,_context:r,_subProxy:o,_descriptors:s}=n;if(void 0!==r.index&&i(e))return t[r.index%t.length];if(Ee(t[0])){const n=t,i=a._scopes.filter(e=>e!==n);t=[];for(const l of n){const n=Cn(i,a,e,l);t.push(bn(n,r,o&&o[e],s))}}return t}(t,s,e,o.isIndexable));_n(t,s)&&(s=bn(s,a,r&&r[t],o));return s}(e,t,n)),getOwnPropertyDescriptor:(t,n)=>t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,n)=>Reflect.has(e,n),ownKeys:()=>Reflect.ownKeys(e),set:(t,n,i)=>(e[n]=i,delete t[n],!0)})}function xn(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:a=t.allKeys}=e;return{allKeys:a,scriptable:n,indexable:i,isScriptable:Xe(n)?n:()=>n,isIndexable:Xe(i)?i:()=>i}}const yn=(e,t)=>e?e+Ze(t):t,_n=(e,t)=>Ee(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function wn(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const i=n();return e[t]=i,i}function jn(e,t,n){return Xe(e)?e(t,n):e}const kn=(e,t)=>!0===e?t:"string"==typeof e?Ke(t,e):void 0;function Sn(e,t,n,i,a){for(const r of t){const t=kn(n,r);if(t){e.add(t);const r=jn(t._fallback,n,a);if(void 0!==r&&r!==n&&r!==i)return r}else if(!1===t&&void 0!==i&&n!==i)return null}return!1}function Cn(e,t,n,i){const a=t._rootScopes,r=jn(t._fallback,n,i),o=[...e,...a],s=new Set;s.add(i);let l=Nn(s,o,n,r||n,i);return null!==l&&((void 0===r||r===n||(l=Nn(s,o,r,l,i),null!==l))&&vn(Array.from(s),[""],a,r,()=>function(e,t,n){const i=e._getTarget();t in i||(i[t]={});const a=i[t];if(Ae(a)&&Ee(n))return n;return a||{}}(t,n,i)))}function Nn(e,t,n,i,a){for(;n;)n=Sn(e,t,n,i,a);return n}function Mn(e,t){for(const n of t){if(!n)continue;const t=n[e];if(void 0!==t)return t}}function On(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const n of e)for(const e of Object.keys(n).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function Dn(){return"undefined"!=typeof window&&"undefined"!=typeof document}function zn(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function An(e,t,n){let i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}const En=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);const Pn=["top","right","bottom","left"];function Rn(e,t,n){const i={};n=n?"-"+n:"";for(let a=0;a<4;a++){const r=Pn[a];i[r]=parseFloat(e[t+"-"+r+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function In(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,a=En(n),r="border-box"===a.boxSizing,o=Rn(a,"padding"),s=Rn(a,"border","width"),{x:l,y:c,box:u}=function(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:a,offsetY:r}=i;let o,s,l=!1;if(((e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot))(a,r,e.target))o=a,s=r;else{const e=t.getBoundingClientRect();o=i.clientX-e.left,s=i.clientY-e.top,l=!0}return{x:o,y:s,box:l}}(e,n),d=o.left+(u&&s.left),p=o.top+(u&&s.top);let{width:h,height:f}=t;return r&&(h-=o.width+s.width,f-=o.height+s.height),{x:Math.round((l-d)/h*n.width/i),y:Math.round((c-p)/f*n.height/i)}}const Tn=e=>Math.round(10*e)/10;function Ln(e,t,n,i){const a=En(e),r=Rn(a,"margin"),o=An(a.maxWidth,e,"clientWidth")||tt,s=An(a.maxHeight,e,"clientHeight")||tt,l=function(e,t,n){let i,a;if(void 0===t||void 0===n){const r=e&&zn(e);if(r){const e=r.getBoundingClientRect(),o=En(r),s=Rn(o,"border","width"),l=Rn(o,"padding");t=e.width-l.width-s.width,n=e.height-l.height-s.height,i=An(o.maxWidth,r,"clientWidth"),a=An(o.maxHeight,r,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:i||tt,maxHeight:a||tt}}(e,t,n);let{width:c,height:u}=l;if("content-box"===a.boxSizing){const e=Rn(a,"border","width"),t=Rn(a,"padding");c-=t.width+e.width,u-=t.height+e.height}c=Math.max(0,c-r.width),u=Math.max(0,i?c/i:u-r.height),c=Tn(Math.min(c,o,l.maxWidth)),u=Tn(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Tn(c/2));return(void 0!==t||void 0!==n)&&i&&l.height&&u>l.height&&(u=l.height,c=Tn(Math.floor(u*i))),{width:c,height:u}}function Fn(e,t,n){const i=t||1,a=Tn(e.height*i),r=Tn(e.width*i);e.height=Tn(e.height),e.width=Tn(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==i||o.height!==a||o.width!==r)&&(e.currentDevicePixelRatio=i,o.height=a,o.width=r,e.ctx.setTransform(i,0,0,i,0,0),!0)}const Bn=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Dn()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function Wn(e,t){const n=function(e,t){return En(e).getPropertyValue(t)}(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function qn(e,t,n){return e?function(e,t){return{x:n=>e+e+t-n,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,n):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function Vn(e,t){let n,i;"ltr"!==t&&"rtl"!==t||(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function $n(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Hn(e,t,n){return e.options.clip?e[n]:t[n]}function Un(e,t){const n=t._clip;if(n.disabled)return!1;const i=function(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:Hn(n,t,"left"),right:Hn(n,t,"right"),top:Hn(i,t,"top"),bottom:Hn(i,t,"bottom")}:t}(t,e.chartArea);return{left:!1===n.left?0:i.left-(!0===n.left?0:n.left),right:!1===n.right?e.width:i.right+(!0===n.right?0:n.right),top:!1===n.top?0:i.top-(!0===n.top?0:n.top),bottom:!1===n.bottom?e.height:i.bottom+(!0===n.bottom?0:n.bottom)}}
|
|
13
|
+
*/function noop$1(){}const uid=(()=>{let e=0;return()=>e++})();function isNullOrUndef(e){return null==e}function isArray(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function isObject$1(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function isNumberFinite(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)}function finiteOrDefault(e,t){return isNumberFinite(e)?e:t}function valueOrDefault(e,t){return void 0===e?t:e}const toPercentage=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100:+e/t,toDimension=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function callback(e,t,i){if(e&&"function"==typeof e.call)return e.apply(i,t)}function each(e,t,i,r){let n,a,s;if(isArray(e))for(a=e.length,n=0;n<a;n++)t.call(i,e[n],n);else if(isObject$1(e))for(s=Object.keys(e),a=s.length,n=0;n<a;n++)t.call(i,e[s[n]],s[n])}function _elementsEqual(e,t){let i,r,n,a;if(!e||!t||e.length!==t.length)return!1;for(i=0,r=e.length;i<r;++i)if(n=e[i],a=t[i],n.datasetIndex!==a.datasetIndex||n.index!==a.index)return!1;return!0}function clone(e){if(isArray(e))return e.map(clone);if(isObject$1(e)){const t=Object.create(null),i=Object.keys(e),r=i.length;let n=0;for(;n<r;++n)t[i[n]]=clone(e[i[n]]);return t}return e}function isValidKey(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function _merger(e,t,i,r){if(!isValidKey(e))return;const n=t[e],a=i[e];isObject$1(n)&&isObject$1(a)?merge(n,a,r):t[e]=clone(a)}function merge(e,t,i){const r=isArray(t)?t:[t],n=r.length;if(!isObject$1(e))return e;const a=(i=i||{}).merger||_merger;let s;for(let t=0;t<n;++t){if(s=r[t],!isObject$1(s))continue;const n=Object.keys(s);for(let t=0,r=n.length;t<r;++t)a(n[t],e,s,i)}return e}function mergeIf(e,t){return merge(e,t,{merger:_mergerIf})}function _mergerIf(e,t,i){if(!isValidKey(e))return;const r=t[e],n=i[e];isObject$1(r)&&isObject$1(n)?mergeIf(r,n):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=clone(n))}const keyResolvers={"":e=>e,x:e=>e.x,y:e=>e.y};function _splitKey(e){const t=e.split("."),i=[];let r="";for(const e of t)r+=e,r.endsWith("\\")?r=r.slice(0,-1)+".":(i.push(r),r="");return i}function _getKeyResolver(e){const t=_splitKey(e);return e=>{for(const i of t){if(""===i)break;e=e&&e[i]}return e}}function resolveObjectKey(e,t){return(keyResolvers[t]||(keyResolvers[t]=_getKeyResolver(t)))(e)}function _capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}const defined=e=>void 0!==e,isFunction=e=>"function"==typeof e,setsEqual=(e,t)=>{if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0};function _isClickEvent(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}const PI=Math.PI,TAU=2*PI,INFINITY=Number.POSITIVE_INFINITY,RAD_PER_DEG=PI/180,HALF_PI=PI/2,QUARTER_PI=PI/4,TWO_THIRDS_PI=2*PI/3,log10=Math.log10,sign=Math.sign;function almostEquals(e,t,i){return Math.abs(e-t)<i}function niceNum(e){const t=Math.round(e);e=almostEquals(e,t,e/1e3)?t:e;const i=Math.pow(10,Math.floor(log10(e))),r=e/i;return(r<=1?1:r<=2?2:r<=5?5:10)*i}function _factorize(e){const t=[],i=Math.sqrt(e);let r;for(r=1;r<i;r++)e%r===0&&(t.push(r),t.push(e/r));return i===(0|i)&&t.push(i),t.sort((e,t)=>e-t).pop(),t}function isNonPrimitive(e){return"symbol"==typeof e||"object"==typeof e&&null!==e&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function isNumber(e){return!isNonPrimitive(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function almostWhole(e,t){const i=Math.round(e);return i-t<=e&&i+t>=e}function _setMinAndMaxByKey(e,t,i){let r,n,a;for(r=0,n=e.length;r<n;r++)a=e[r][i],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function toRadians(e){return e*(PI/180)}function toDegrees(e){return e*(180/PI)}function _decimalPlaces(e){if(!isNumberFinite(e))return;let t=1,i=0;for(;Math.round(e*t)/t!==e;)t*=10,i++;return i}function getAngleFromPoint(e,t){const i=t.x-e.x,r=t.y-e.y,n=Math.sqrt(i*i+r*r);let a=Math.atan2(r,i);return a<-.5*PI&&(a+=TAU),{angle:a,distance:n}}function distanceBetweenPoints(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function _normalizeAngle(e){return(e%TAU+TAU)%TAU}function _angleBetween(e,t,i,r){const n=_normalizeAngle(e),a=_normalizeAngle(t),s=_normalizeAngle(i),o=_normalizeAngle(a-n),l=_normalizeAngle(s-n),c=_normalizeAngle(n-a),h=_normalizeAngle(n-s);return n===a||n===s||r&&a===s||o>l&&c<h}function _limitValue(e,t,i){return Math.max(t,Math.min(i,e))}function _int16Range(e){return _limitValue(e,-32768,32767)}function _isBetween(e,t,i,r=1e-6){return e>=Math.min(t,i)-r&&e<=Math.max(t,i)+r}function _lookup(e,t,i){i=i||(i=>e[i]<t);let r,n=e.length-1,a=0;for(;n-a>1;)r=a+n>>1,i(r)?a=r:n=r;return{lo:a,hi:n}}const _lookupByKey=(e,t,i,r)=>_lookup(e,i,r?r=>{const n=e[r][t];return n<i||n===i&&e[r+1][t]===i}:r=>e[r][t]<i),_rlookupByKey=(e,t,i)=>_lookup(e,i,r=>e[r][t]>=i);function _filterBetween(e,t,i){let r=0,n=e.length;for(;r<n&&e[r]<t;)r++;for(;n>r&&e[n-1]>i;)n--;return r>0||n<e.length?e.slice(r,n):e}const arrayEvents=["push","pop","shift","splice","unshift"];function listenArrayEvents(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),arrayEvents.forEach(t=>{const i="_onData"+_capitalize(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...t){const n=r.apply(this,t);return e._chartjs.listeners.forEach(e=>{"function"==typeof e[i]&&e[i](...t)}),n}})}))}function unlistenArrayEvents(e,t){const i=e._chartjs;if(!i)return;const r=i.listeners,n=r.indexOf(t);-1!==n&&r.splice(n,1),r.length>0||(arrayEvents.forEach(t=>{delete e[t]}),delete e._chartjs)}function _arrayUnique(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const requestAnimFrame="undefined"==typeof window?function(e){return e()}:window.requestAnimationFrame;function throttled(e,t){let i=[],r=!1;return function(...n){i=n,r||(r=!0,requestAnimFrame.call(window,()=>{r=!1,e.apply(t,i)}))}}function debounce(e,t){let i;return function(...r){return t?(clearTimeout(i),i=setTimeout(e,t,r)):e.apply(this,r),t}}const _toLeftRightCenter=e=>"start"===e?"left":"end"===e?"right":"center",_alignStartEnd=(e,t,i)=>"start"===e?t:"end"===e?i:(t+i)/2,_textX=(e,t,i,r)=>e===(r?"left":"right")?i:"center"===e?(t+i)/2:t,atEdge=e=>0===e||1===e,elasticIn=(e,t,i)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*TAU/i),elasticOut=(e,t,i)=>Math.pow(2,-10*e)*Math.sin((e-t)*TAU/i)+1,effects={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*HALF_PI),easeOutSine:e=>Math.sin(e*HALF_PI),easeInOutSine:e=>-.5*(Math.cos(PI*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>atEdge(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>atEdge(e)?e:elasticIn(e,.075,.3),easeOutElastic:e=>atEdge(e)?e:elasticOut(e,.075,.3),easeInOutElastic(e){const t=.1125;return atEdge(e)?e:e<.5?.5*elasticIn(2*e,t,.45):.5+.5*elasticOut(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-effects.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,i=2.75;return e<1/i?t*e*e:e<2/i?t*(e-=1.5/i)*e+.75:e<2.5/i?t*(e-=2.25/i)*e+.9375:t*(e-=2.625/i)*e+.984375},easeInOutBounce:e=>e<.5?.5*effects.easeInBounce(2*e):.5*effects.easeOutBounce(2*e-1)+.5};function isPatternOrGradient(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function color(e){return isPatternOrGradient(e)?e:new Color(e)}function getHoverColor(e){return isPatternOrGradient(e)?e:new Color(e).saturate(.5).darken(.1).hexString()}const numbers=["x","y","borderWidth","radius","tension"],colors=["color","borderColor","backgroundColor"];function applyAnimationsDefaults(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),e.set("animations",{colors:{type:"color",properties:colors},numbers:{type:"number",properties:numbers}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}})}function applyLayoutsDefaults(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const intlCache=new Map;function getNumberFormat(e,t){t=t||{};const i=e+JSON.stringify(t);let r=intlCache.get(i);return r||(r=new Intl.NumberFormat(e,t),intlCache.set(i,r)),r}function formatNumber(e,t,i){return getNumberFormat(t,i).format(e)}const formatters={values:e=>isArray(e)?e:""+e,numeric(e,t,i){if(0===e)return"0";const r=this.chart.options.locale;let n,a=e;if(i.length>1){const t=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(t<1e-4||t>1e15)&&(n="scientific"),a=calculateDelta(e,i)}const s=log10(Math.abs(a)),o=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:n,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),formatNumber(e,r,l)}};function calculateDelta(e,t){let i=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(i)>=1&&e!==Math.floor(e)&&(i=e-Math.floor(e)),i}var Ticks={formatters:formatters};function applyScaleDefaults(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ticks.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e})}const overrides=Object.create(null),descriptors=Object.create(null);function getScope$1(e,t){if(!t)return e;const i=t.split(".");for(let t=0,r=i.length;t<r;++t){const r=i[t];e=e[r]||(e[r]=Object.create(null))}return e}function set(e,t,i){return"string"==typeof t?merge(getScope$1(e,t),i):merge(getScope$1(e,""),t)}class Defaults{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=e=>e.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>getHoverColor(t.backgroundColor),this.hoverBorderColor=(e,t)=>getHoverColor(t.borderColor),this.hoverColor=(e,t)=>getHoverColor(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return set(this,e,t)}get(e){return getScope$1(this,e)}describe(e,t){return set(descriptors,e,t)}override(e,t){return set(overrides,e,t)}route(e,t,i,r){const n=getScope$1(this,e),a=getScope$1(this,i),s="_"+t;Object.defineProperties(n,{[s]:{value:n[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[s],t=a[r];return isObject$1(e)?Object.assign({},t,e):valueOrDefault(e,t)},set(e){this[s]=e}}})}apply(e){e.forEach(e=>e(this))}}var defaults=new Defaults({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[applyAnimationsDefaults,applyLayoutsDefaults,applyScaleDefaults]);function toFontString(e){return!e||isNullOrUndef(e.size)||isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function _measureText(e,t,i,r,n){let a=t[n];return a||(a=t[n]=e.measureText(n).width,i.push(n)),a>r&&(r=a),r}function _alignPixel(e,t,i){const r=e.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((t-n)*r)/r+n}function clearCanvas(e,t){(t||e)&&((t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function drawPoint(e,t,i,r){drawPointLegend(e,t,i,r,null)}function drawPointLegend(e,t,i,r,n){let a,s,o,l,c,h,p,u;const d=t.pointStyle,f=t.rotation,m=t.radius;let g=(f||0)*RAD_PER_DEG;if(d&&"object"==typeof d&&(a=d.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(i,r),e.rotate(g),e.drawImage(d,-d.width/2,-d.height/2,d.width,d.height),void e.restore();if(!(isNaN(m)||m<=0)){switch(e.beginPath(),d){default:n?e.ellipse(i,r,n/2,m,0,0,TAU):e.arc(i,r,m,0,TAU),e.closePath();break;case"triangle":h=n?n/2:m,e.moveTo(i+Math.sin(g)*h,r-Math.cos(g)*m),g+=TWO_THIRDS_PI,e.lineTo(i+Math.sin(g)*h,r-Math.cos(g)*m),g+=TWO_THIRDS_PI,e.lineTo(i+Math.sin(g)*h,r-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=.516*m,l=m-c,s=Math.cos(g+QUARTER_PI)*l,p=Math.cos(g+QUARTER_PI)*(n?n/2-c:l),o=Math.sin(g+QUARTER_PI)*l,u=Math.sin(g+QUARTER_PI)*(n?n/2-c:l),e.arc(i-p,r-o,c,g-PI,g-HALF_PI),e.arc(i+u,r-s,c,g-HALF_PI,g),e.arc(i+p,r+o,c,g,g+HALF_PI),e.arc(i-u,r+s,c,g+HALF_PI,g+PI),e.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,h=n?n/2:l,e.rect(i-h,r-l,2*h,2*l);break}g+=QUARTER_PI;case"rectRot":p=Math.cos(g)*(n?n/2:m),s=Math.cos(g)*m,o=Math.sin(g)*m,u=Math.sin(g)*(n?n/2:m),e.moveTo(i-p,r-o),e.lineTo(i+u,r-s),e.lineTo(i+p,r+o),e.lineTo(i-u,r+s),e.closePath();break;case"crossRot":g+=QUARTER_PI;case"cross":p=Math.cos(g)*(n?n/2:m),s=Math.cos(g)*m,o=Math.sin(g)*m,u=Math.sin(g)*(n?n/2:m),e.moveTo(i-p,r-o),e.lineTo(i+p,r+o),e.moveTo(i+u,r-s),e.lineTo(i-u,r+s);break;case"star":p=Math.cos(g)*(n?n/2:m),s=Math.cos(g)*m,o=Math.sin(g)*m,u=Math.sin(g)*(n?n/2:m),e.moveTo(i-p,r-o),e.lineTo(i+p,r+o),e.moveTo(i+u,r-s),e.lineTo(i-u,r+s),g+=QUARTER_PI,p=Math.cos(g)*(n?n/2:m),s=Math.cos(g)*m,o=Math.sin(g)*m,u=Math.sin(g)*(n?n/2:m),e.moveTo(i-p,r-o),e.lineTo(i+p,r+o),e.moveTo(i+u,r-s),e.lineTo(i-u,r+s);break;case"line":s=n?n/2:Math.cos(g)*m,o=Math.sin(g)*m,e.moveTo(i-s,r-o),e.lineTo(i+s,r+o);break;case"dash":e.moveTo(i,r),e.lineTo(i+Math.cos(g)*(n?n/2:m),r+Math.sin(g)*m);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function _isPointInArea(e,t,i){return i=i||.5,!t||e&&e.x>t.left-i&&e.x<t.right+i&&e.y>t.top-i&&e.y<t.bottom+i}function clipArea(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function unclipArea(e){e.restore()}function setRenderOpts(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),isNullOrUndef(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function decorateText(e,t,i,r,n){if(n.strikethrough||n.underline){const a=e.measureText(r),s=t-a.actualBoundingBoxLeft,o=t+a.actualBoundingBoxRight,l=i-a.actualBoundingBoxAscent,c=i+a.actualBoundingBoxDescent,h=n.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=n.decorationWidth||2,e.moveTo(s,h),e.lineTo(o,h),e.stroke()}}function drawBackdrop(e,t){const i=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=i}function renderText(e,t,i,r,n,a={}){const s=isArray(t)?t:[t],o=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(e.save(),e.font=n.string,setRenderOpts(e,a),l=0;l<s.length;++l)c=s[l],a.backdrop&&drawBackdrop(e,a.backdrop),o&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),isNullOrUndef(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(c,i,r,a.maxWidth)),e.fillText(c,i,r,a.maxWidth),decorateText(e,i,r,c,a),r+=Number(n.lineHeight);e.restore()}function addRoundedRectPath(e,t){const{x:i,y:r,w:n,h:a,radius:s}=t;e.arc(i+s.topLeft,r+s.topLeft,s.topLeft,1.5*PI,PI,!0),e.lineTo(i,r+a-s.bottomLeft),e.arc(i+s.bottomLeft,r+a-s.bottomLeft,s.bottomLeft,PI,HALF_PI,!0),e.lineTo(i+n-s.bottomRight,r+a),e.arc(i+n-s.bottomRight,r+a-s.bottomRight,s.bottomRight,HALF_PI,0,!0),e.lineTo(i+n,r+s.topRight),e.arc(i+n-s.topRight,r+s.topRight,s.topRight,0,-HALF_PI,!0),e.lineTo(i+s.topLeft,r)}const LINE_HEIGHT=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,FONT_STYLE=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function toLineHeight(e,t){const i=(""+e).match(LINE_HEIGHT);if(!i||"normal"===i[1])return 1.2*t;switch(e=+i[2],i[3]){case"px":return e;case"%":e/=100}return t*e}const numberOrZero=e=>+e||0;function _readValueToProps(e,t){const i={},r=isObject$1(t),n=r?Object.keys(t):t,a=isObject$1(e)?r?i=>valueOrDefault(e[i],e[t[i]]):t=>e[t]:()=>e;for(const e of n)i[e]=numberOrZero(a(e));return i}function toTRBL(e){return _readValueToProps(e,{top:"y",right:"x",bottom:"y",left:"x"})}function toTRBLCorners(e){return _readValueToProps(e,["topLeft","topRight","bottomLeft","bottomRight"])}function toPadding(e){const t=toTRBL(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function toFont(e,t){e=e||{},t=t||defaults.font;let i=valueOrDefault(e.size,t.size);"string"==typeof i&&(i=parseInt(i,10));let r=valueOrDefault(e.style,t.style);r&&!(""+r).match(FONT_STYLE)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const n={family:valueOrDefault(e.family,t.family),lineHeight:toLineHeight(valueOrDefault(e.lineHeight,t.lineHeight),i),size:i,style:r,weight:valueOrDefault(e.weight,t.weight),string:""};return n.string=toFontString(n),n}function resolve(e,t,i,r){let n,a,s;for(n=0,a=e.length;n<a;++n)if(s=e[n],void 0!==s&&void 0!==s)return s}function _addGrace(e,t,i){const{min:r,max:n}=e,a=toDimension(t,(n-r)/2),s=(e,t)=>i&&0===e?0:e+t;return{min:s(r,-Math.abs(a)),max:s(n,a)}}function createContext(e,t){return Object.assign(Object.create(e),t)}function _createResolver(e,t=[""],i,r,n=()=>e[0]){const a=i||e;void 0===r&&(r=_resolve("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:n,override:i=>_createResolver([i,...e],t,a,r)};return new Proxy(s,{deleteProperty:(t,i)=>(delete t[i],delete t._keys,delete e[0][i],!0),get:(i,r)=>_cached(i,r,()=>_resolveWithPrefixes(r,t,e,i)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>getKeysFromAllScopes(e).includes(t),ownKeys:e=>getKeysFromAllScopes(e),set(e,t,i){const r=e._storage||(e._storage=n());return e[t]=r[t]=i,delete e._keys,!0}})}function _attachContext(e,t,i,r){const n={_cacheable:!1,_proxy:e,_context:t,_subProxy:i,_stack:new Set,_descriptors:_descriptors(e,r),setContext:t=>_attachContext(e,t,i,r),override:n=>_attachContext(e.override(n),t,i,r)};return new Proxy(n,{deleteProperty:(t,i)=>(delete t[i],delete e[i],!0),get:(e,t,i)=>_cached(e,t,()=>_resolveWithContext(e,t,i)),getOwnPropertyDescriptor:(t,i)=>t._descriptors.allKeys?Reflect.has(e,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,i),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,i)=>Reflect.has(e,i),ownKeys:()=>Reflect.ownKeys(e),set:(t,i,r)=>(e[i]=r,delete t[i],!0)})}function _descriptors(e,t={scriptable:!0,indexable:!0}){const{_scriptable:i=t.scriptable,_indexable:r=t.indexable,_allKeys:n=t.allKeys}=e;return{allKeys:n,scriptable:i,indexable:r,isScriptable:isFunction(i)?i:()=>i,isIndexable:isFunction(r)?r:()=>r}}const readKey=(e,t)=>e?e+_capitalize(t):t,needsSubResolver=(e,t)=>isObject$1(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function _cached(e,t,i){if(Object.prototype.hasOwnProperty.call(e,t)||"constructor"===t)return e[t];const r=i();return e[t]=r,r}function _resolveWithContext(e,t,i){const{_proxy:r,_context:n,_subProxy:a,_descriptors:s}=e;let o=r[t];return isFunction(o)&&s.isScriptable(t)&&(o=_resolveScriptable(t,o,e,i)),isArray(o)&&o.length&&(o=_resolveArray(t,o,e,s.isIndexable)),needsSubResolver(t,o)&&(o=_attachContext(o,n,a&&a[t],s)),o}function _resolveScriptable(e,t,i,r){const{_proxy:n,_context:a,_subProxy:s,_stack:o}=i;if(o.has(e))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);o.add(e);let l=t(a,s||r);return o.delete(e),needsSubResolver(e,l)&&(l=createSubResolver(n._scopes,n,e,l)),l}function _resolveArray(e,t,i,r){const{_proxy:n,_context:a,_subProxy:s,_descriptors:o}=i;if(void 0!==a.index&&r(e))return t[a.index%t.length];if(isObject$1(t[0])){const i=t,r=n._scopes.filter(e=>e!==i);t=[];for(const l of i){const i=createSubResolver(r,n,e,l);t.push(_attachContext(i,a,s&&s[e],o))}}return t}function resolveFallback(e,t,i){return isFunction(e)?e(t,i):e}const getScope=(e,t)=>!0===e?t:"string"==typeof e?resolveObjectKey(t,e):void 0;function addScopes(e,t,i,r,n){for(const a of t){const t=getScope(i,a);if(t){e.add(t);const a=resolveFallback(t._fallback,i,n);if(void 0!==a&&a!==i&&a!==r)return a}else if(!1===t&&void 0!==r&&i!==r)return null}return!1}function createSubResolver(e,t,i,r){const n=t._rootScopes,a=resolveFallback(t._fallback,i,r),s=[...e,...n],o=new Set;o.add(r);let l=addScopesFromKey(o,s,i,a||i,r);return null!==l&&((void 0===a||a===i||(l=addScopesFromKey(o,s,a,l,r),null!==l))&&_createResolver(Array.from(o),[""],n,a,()=>subGetTarget(t,i,r)))}function addScopesFromKey(e,t,i,r,n){for(;i;)i=addScopes(e,t,i,r,n);return i}function subGetTarget(e,t,i){const r=e._getTarget();t in r||(r[t]={});const n=r[t];return isArray(n)&&isObject$1(i)?i:n||{}}function _resolveWithPrefixes(e,t,i,r){let n;for(const a of t)if(n=_resolve(readKey(a,e),i),void 0!==n)return needsSubResolver(e,n)?createSubResolver(i,r,e,n):n}function _resolve(e,t){for(const i of t){if(!i)continue;const t=i[e];if(void 0!==t)return t}}function getKeysFromAllScopes(e){let t=e._keys;return t||(t=e._keys=resolveKeysFromAllScopes(e._scopes)),t}function resolveKeysFromAllScopes(e){const t=new Set;for(const i of e)for(const e of Object.keys(i).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}function _isDomSupported(){return"undefined"!=typeof window&&"undefined"!=typeof document}function _getParentNode(e){let t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function parseMaxStyle(e,t,i){let r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[i])):r=e,r}const getComputedStyle$1=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function getStyle(e,t){return getComputedStyle$1(e).getPropertyValue(t)}const positions=["top","right","bottom","left"];function getPositionedStyle(e,t,i){const r={};i=i?"-"+i:"";for(let n=0;n<4;n++){const a=positions[n];r[a]=parseFloat(e[t+"-"+a+i])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const useOffsetPos=(e,t,i)=>(e>0||t>0)&&(!i||!i.shadowRoot);function getCanvasPosition(e,t){const i=e.touches,r=i&&i.length?i[0]:e,{offsetX:n,offsetY:a}=r;let s,o,l=!1;if(useOffsetPos(n,a,e.target))s=n,o=a;else{const e=t.getBoundingClientRect();s=r.clientX-e.left,o=r.clientY-e.top,l=!0}return{x:s,y:o,box:l}}function getRelativePosition(e,t){if("native"in e)return e;const{canvas:i,currentDevicePixelRatio:r}=t,n=getComputedStyle$1(i),a="border-box"===n.boxSizing,s=getPositionedStyle(n,"padding"),o=getPositionedStyle(n,"border","width"),{x:l,y:c,box:h}=getCanvasPosition(e,i),p=s.left+(h&&o.left),u=s.top+(h&&o.top);let{width:d,height:f}=t;return a&&(d-=s.width+o.width,f-=s.height+o.height),{x:Math.round((l-p)/d*i.width/r),y:Math.round((c-u)/f*i.height/r)}}function getContainerSize(e,t,i){let r,n;if(void 0===t||void 0===i){const a=e&&_getParentNode(e);if(a){const e=a.getBoundingClientRect(),s=getComputedStyle$1(a),o=getPositionedStyle(s,"border","width"),l=getPositionedStyle(s,"padding");t=e.width-l.width-o.width,i=e.height-l.height-o.height,r=parseMaxStyle(s.maxWidth,a,"clientWidth"),n=parseMaxStyle(s.maxHeight,a,"clientHeight")}else t=e.clientWidth,i=e.clientHeight}return{width:t,height:i,maxWidth:r||INFINITY,maxHeight:n||INFINITY}}const round1=e=>Math.round(10*e)/10;function getMaximumSize(e,t,i,r){const n=getComputedStyle$1(e),a=getPositionedStyle(n,"margin"),s=parseMaxStyle(n.maxWidth,e,"clientWidth")||INFINITY,o=parseMaxStyle(n.maxHeight,e,"clientHeight")||INFINITY,l=getContainerSize(e,t,i);let{width:c,height:h}=l;if("content-box"===n.boxSizing){const e=getPositionedStyle(n,"border","width"),t=getPositionedStyle(n,"padding");c-=t.width+e.width,h-=t.height+e.height}c=Math.max(0,c-a.width),h=Math.max(0,r?c/r:h-a.height),c=round1(Math.min(c,s,l.maxWidth)),h=round1(Math.min(h,o,l.maxHeight)),c&&!h&&(h=round1(c/2));return(void 0!==t||void 0!==i)&&r&&l.height&&h>l.height&&(h=l.height,c=round1(Math.floor(h*r))),{width:c,height:h}}function retinaScale(e,t,i){const r=t||1,n=round1(e.height*r),a=round1(e.width*r);e.height=round1(e.height),e.width=round1(e.width);const s=e.canvas;return s.style&&(i||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),(e.currentDevicePixelRatio!==r||s.height!==n||s.width!==a)&&(e.currentDevicePixelRatio=r,s.height=n,s.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0)}const supportsEventListenerOptions=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};_isDomSupported()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(e){}return e}();function readUsedSize(e,t){const i=getStyle(e,t),r=i&&i.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}const getRightToLeftAdapter=function(e,t){return{x:i=>e+e+t-i,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}},getLeftToRightAdapter=function(){return{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}};function getRtlAdapter(e,t,i){return e?getRightToLeftAdapter(t,i):getLeftToRightAdapter()}function overrideTextDirection(e,t){let i,r;"ltr"!==t&&"rtl"!==t||(i=e.canvas.style,r=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",t,"important"),e.prevTextDirection=r)}function restoreTextDirection(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function getSizeForArea(e,t,i){return e.options.clip?e[i]:t[i]}function getDatasetArea(e,t){const{xScale:i,yScale:r}=e;return i&&r?{left:getSizeForArea(i,t,"left"),right:getSizeForArea(i,t,"right"),top:getSizeForArea(r,t,"top"),bottom:getSizeForArea(r,t,"bottom")}:t}function getDatasetClipArea(e,t){const i=t._clip;if(i.disabled)return!1;const r=getDatasetArea(t,e.chartArea);return{left:!1===i.left?0:r.left-(!0===i.left?0:i.left),right:!1===i.right?e.width:r.right+(!0===i.right?0:i.right),top:!1===i.top?0:r.top-(!0===i.top?0:i.top),bottom:!1===i.bottom?e.height:r.bottom+(!0===i.bottom?0:i.bottom)}}
|
|
15
14
|
/*!
|
|
16
15
|
* Chart.js v4.5.1
|
|
17
16
|
* https://www.chartjs.org
|
|
18
17
|
* (c) 2025 Chart.js Contributors
|
|
19
18
|
* Released under the MIT License
|
|
20
|
-
*/class Yn{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,n,i){const a=t.listeners[i],r=t.duration;a.forEach(i=>i({chart:e,initial:t.initial,numSteps:r,currentStep:Math.min(n-t.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=St.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const a=n.items;let r,o=a.length-1,s=!1;for(;o>=0;--o)r=a[o],r._active?(r._total>n.duration&&(n.duration=r._total),r.tick(e),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,n,e,"progress")),a.length||(n.running=!1,this._notify(i,n,e,"complete"),n.initial=!1),t+=a.length}),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}listen(e,t,n){this._getAnims(e).listeners[t].push(n)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const n=t.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var Kn=new Yn;const Zn="transparent",Gn={boolean:(e,t,n)=>n>.5?t:e,color(e,t,n){const i=Pt(e||Zn),a=i.valid&&Pt(t||Zn);return a&&a.valid?a.mix(i,n).hexString():t},number:(e,t,n)=>e+(t-e)*n};class Xn{constructor(e,t,n,i){const a=t[n];i=mn([e.to,i,a,e.from]);const r=mn([e.from,a,i]);this._active=!0,this._fn=e.fn||Gn[e.type||typeof r],this._easing=At[e.easing]||At.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=n,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(e,t,n){if(this._active){this._notify(!1);const i=this._target[this._prop],a=n-this._start,r=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(r,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=mn([e.to,t,i,e.from]),this._from=mn([e.from,i,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,n=this._duration,i=this._prop,a=this._from,r=this._loop,o=this._to;let s;if(this._active=a!==o&&(r||t<n),!this._active)return this._target[i]=o,void this._notify(!0);t<0?this._target[i]=a:(s=t/n%2,s=r&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[i]=this._fn(a,o,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,n)=>{e.push({res:t,rej:n})})}_notify(e){const t=e?"res":"rej",n=this._promises||[];for(let e=0;e<n.length;e++)n[e][t]()}}class Jn{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!Ee(e))return;const t=Object.keys(Ut.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const a=e[i];if(!Ee(a))return;const r={};for(const e of t)r[e]=a[e];(Ae(a.properties)&&a.properties||[i]).forEach(e=>{e!==i&&n.has(e)||n.set(e,r)})})}_animateOptions(e,t){const n=t.options,i=function(e,t){if(!t)return;let n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!i)return[];const a=this._createAnimations(i,n);return n.$shared&&function(e,t){const n=[],i=Object.keys(t);for(let t=0;t<i.length;t++){const a=e[i[t]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}(e.options.$animations,n).then(()=>{e.options=n},()=>{}),a}_createAnimations(e,t){const n=this._properties,i=[],a=e.$animations||(e.$animations={}),r=Object.keys(t),o=Date.now();let s;for(s=r.length-1;s>=0;--s){const l=r[s];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(e,t));continue}const c=t[l];let u=a[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,o);continue}u.cancel()}d&&d.duration?(a[l]=u=new Xn(d,e,l,c),i.push(u)):e[l]=c}return i}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const n=this._createAnimations(e,t);return n.length?(Kn.add(this._chart,n),!0):void 0}}function Qn(e,t){const n=e&&e.options||{},i=n.reverse,a=void 0===n.min?t:0,r=void 0===n.max?t:0;return{start:i?r:a,end:i?a:r}}function ei(e,t){const n=[],i=e._getSortedDatasetMetas(t);let a,r;for(a=0,r=i.length;a<r;++a)n.push(i[a].index);return n}function ti(e,t,n,i={}){const a=e.keys,r="single"===i.mode;let o,s,l,c;if(null===t)return;let u=!1;for(o=0,s=a.length;o<s;++o){if(l=+a[o],l===n){if(u=!0,i.all)continue;break}c=e.values[l],Pe(c)&&(r||0===t||st(t)===st(c))&&(t+=c)}return u||i.all?t:0}function ni(e,t){const n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function ii(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function ai(e,t,n,i){for(const a of t.getMatchingVisibleMetas(i).reverse()){const t=e[a.index];if(n&&t>0||!n&&t<0)return a.index}return null}function ri(e,t){const{chart:n,_cachedMeta:i}=e,a=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:s}=i,l=r.axis,c=o.axis,u=function(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}(r,o,i),d=t.length;let p;for(let e=0;e<d;++e){const n=t[e],{[l]:r,[c]:d}=n;p=(n._stacks||(n._stacks={}))[c]=ii(a,u,r),p[s]=d,p._top=ai(p,o,!0,i.type),p._bottom=ai(p,o,!1,i.type);(p._visualValues||(p._visualValues={}))[s]=d}}function oi(e,t){const n=e.scales;return Object.keys(n).filter(e=>n[e].axis===t).shift()}function si(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[i]||void 0===t[i][n])return;delete t[i][n],void 0!==t[i]._visualValues&&void 0!==t[i]._visualValues[n]&&delete t[i]._visualValues[n]}}}const li=e=>"reset"===e||"none"===e,ci=(e,t)=>t?e:Object.assign({},e);class ui{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ni(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&si(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,n=this.getDataset(),i=(e,t,n,i)=>"x"===e?t:"r"===e?i:n,a=t.xAxisID=Ie(n.xAxisID,oi(e,"x")),r=t.yAxisID=Ie(n.yAxisID,oi(e,"y")),o=t.rAxisID=Ie(n.rAxisID,oi(e,"r")),s=t.indexAxis,l=t.iAxisID=i(s,a,r,o),c=t.vAxisID=i(s,r,a,o);t.xScale=this.getScaleForId(a),t.yScale=this.getScaleForId(r),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&jt(this._data,this),e._stacked&&si(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),n=this._data;if(Ee(t)){const e=this._cachedMeta;this._data=function(e,t){const{iScale:n,vScale:i}=t,a="x"===n.axis?"x":"y",r="x"===i.axis?"x":"y",o=Object.keys(e),s=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],s[l]={[a]:u,[r]:e[u]};return s}(t,e)}else if(n!==t){if(n){jt(n,this);const e=this._cachedMeta;si(e),e._parsed=[]}t&&Object.isExtensible(t)&&(a=this,(i=t)._chartjs?i._chartjs.listeners.push(a):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[a]}}),wt.forEach(e=>{const t="_onData"+Ze(e),n=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...e){const a=n.apply(this,e);return i._chartjs.listeners.forEach(n=>{"function"==typeof n[t]&&n[t](...e)}),a}})}))),this._syncList=[],this._data=t}var i,a}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const a=t._stacked;t._stacked=ni(t.vScale,t),t.stack!==n.stack&&(i=!0,si(t),t.stack=n.stack),this._resyncElements(e),(i||a!==t._stacked)&&(ri(this,t._parsed),t._stacked=ni(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:n,_data:i}=this,{iScale:a,_stacked:r}=n,o=a.axis;let s,l,c,u=0===e&&t===i.length||n._sorted,d=e>0&&n._parsed[e-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Ae(i[e])?this.parseArrayData(n,i,e,t):Ee(i[e])?this.parseObjectData(n,i,e,t):this.parsePrimitiveData(n,i,e,t);const a=()=>null===l[o]||d&&l[o]<d[o];for(s=0;s<t;++s)n._parsed[s+e]=l=c[s],u&&(a()&&(u=!1),d=l);n._sorted=u}r&&ri(this,c)}parsePrimitiveData(e,t,n,i){const{iScale:a,vScale:r}=e,o=a.axis,s=r.axis,l=a.getLabels(),c=a===r,u=new Array(i);let d,p,h;for(d=0,p=i;d<p;++d)h=d+n,u[d]={[o]:c||a.parse(l[h],h),[s]:r.parse(t[h],h)};return u}parseArrayData(e,t,n,i){const{xScale:a,yScale:r}=e,o=new Array(i);let s,l,c,u;for(s=0,l=i;s<l;++s)c=s+n,u=t[c],o[s]={x:a.parse(u[0],c),y:r.parse(u[1],c)};return o}parseObjectData(e,t,n,i){const{xScale:a,yScale:r}=e,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l=new Array(i);let c,u,d,p;for(c=0,u=i;c<u;++c)d=c+n,p=t[d],l[c]={x:a.parse(Ke(p,o),d),y:r.parse(Ke(p,s),d)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,n){const i=this.chart,a=this._cachedMeta,r=t[e.axis];return ti({keys:ei(i,!0),values:t._stacks[e.axis]._visualValues},r,a.index,{mode:n})}updateRangeFromParsed(e,t,n,i){const a=n[t.axis];let r=null===a?NaN:a;const o=i&&n._stacks[t.axis];i&&o&&(i.values=o,r=ti(i,a,this._cachedMeta.index)),e.min=Math.min(e.min,r),e.max=Math.max(e.max,r)}getMinMax(e,t){const n=this._cachedMeta,i=n._parsed,a=n._sorted&&e===n.iScale,r=i.length,o=this._getOtherScale(e),s=((e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:ei(n,!0),values:null})(t,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(e){const{min:t,max:n,minDefined:i,maxDefined:a}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}(o);let d,p;function h(){p=i[d];const t=p[o.axis];return!Pe(p[e.axis])||c>t||u<t}for(d=0;d<r&&(h()||(this.updateRangeFromParsed(l,e,p,s),!a));++d);if(a)for(d=r-1;d>=0;--d)if(!h()){this.updateRangeFromParsed(l,e,p,s);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,n=[];let i,a,r;for(i=0,a=t.length;i<a;++i)r=t[i][e.axis],Pe(r)&&n.push(r);return n}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,n=t.iScale,i=t.vScale,a=this.getParsed(e);return{label:n?""+n.getLabelForValue(a[n.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){let t,n,i,a;return Ee(e)?(t=e.top,n=e.right,i=e.bottom,a=e.left):t=n=i=a=e,{top:t,right:n,bottom:i,left:a,disabled:!1===e}}(Ie(this.options.clip,function(e,t,n){if(!1===n)return!1;const i=Qn(e,n),a=Qn(t,n);return{top:a.end,right:i.end,bottom:a.start,left:i.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,n=this._cachedMeta,i=n.data||[],a=t.chartArea,r=[],o=this._drawStart||0,s=this._drawCount||i.length-o,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(e,a,o,s),c=o;c<o+s;++c){const t=i[c];t.hidden||(t.active&&l?r.push(t):t.draw(e,a))}for(c=0;c<r.length;++c)r[c].draw(e,a)}getStyle(e,t){const n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}getContext(e,t,n){const i=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];a=t.$context||(t.$context=function(e,t,n){return gn(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,t)),a.parsed=this.getParsed(e),a.raw=i.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=function(e,t){return gn(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!t,a.mode=n,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",n){const i="active"===t,a=this._cachedDataOpts,r=e+"-"+t,o=a[r],s=this.enableOptionSharing&&Ge(n);if(o)return ci(o,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),u=i?[`${e}Hover`,"hover",e,""]:[e,""],d=l.getOptionScopes(this.getDataset(),c),p=Object.keys(Ut.elements[e]),h=l.resolveNamedOptions(d,p,()=>this.getContext(n,i,t),u);return h.$shared&&(h.$shared=s,a[r]=Object.freeze(ci(h,s))),h}_resolveAnimations(e,t,n){const i=this.chart,a=this._cachedDataOpts,r=`animation-${t}`,o=a[r];if(o)return o;let s;if(!1!==i.options.animation){const i=this.chart.config,a=i.datasetAnimationScopeKeys(this._type,t),r=i.getOptionScopes(this.getDataset(),a);s=i.createResolver(r,this.getContext(e,n,t))}const l=new Jn(i,s&&s.animations);return s&&s._cacheable&&(a[r]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||li(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const n=this.resolveDataElementOptions(e,t),i=this._sharedOptions,a=this.getSharedOptions(n),r=this.includeOptions(t,a)||a!==i;return this.updateSharedOptions(a,t,n),{sharedOptions:a,includeOptions:r}}updateElement(e,t,n,i){li(i)?Object.assign(e,n):this._resolveAnimations(t,i).update(e,n)}updateSharedOptions(e,t,n){e&&!li(t)&&this._resolveAnimations(void 0,t).update(e,n)}_setStyle(e,t,n,i){e.active=i;const a=this.getStyle(t,i);this._resolveAnimations(t,n,i).update(e,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(e,t,n){this._setStyle(e,n,"active",!1)}setHoverStyle(e,t,n){this._setStyle(e,n,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,n=this._cachedMeta.data;for(const[e,t,n]of this._syncList)this[e](t,n);this._syncList=[];const i=n.length,a=t.length,r=Math.min(a,i);r&&this.parse(0,r),a>i?this._insertElements(i,a-i,e):a<i&&this._removeElements(a,i-a)}_insertElements(e,t,n=!0){const i=this._cachedMeta,a=i.data,r=e+t;let o;const s=e=>{for(e.length+=t,o=e.length-1;o>=r;o--)e[o]=e[o-t]};for(s(a),o=e;o<r;++o)a[o]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(e,t),n&&this.updateElements(a,e,t,"reset")}updateElements(e,t,n,i){}_removeElements(e,t){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(e,t);n._stacked&&si(n,i)}n.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,n,i]=e;this[t](n,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function di(e){const t=e.iScale,n=function(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let t=0,a=n.length;t<a;t++)i=i.concat(n[t].controller.getAllParsedValues(e));e._cache.$bar=kt(i.sort((e,t)=>e-t))}return e._cache.$bar}(t,e.type);let i,a,r,o,s=t._length;const l=()=>{32767!==r&&-32768!==r&&(Ge(o)&&(s=Math.min(s,Math.abs(r-o)||s)),o=r)};for(i=0,a=n.length;i<a;++i)r=t.getPixelForValue(n[i]),l();for(o=void 0,i=0,a=t.ticks.length;i<a;++i)r=t.getPixelForTick(i),l();return s}function pi(e,t,n,i){return Ae(e)?function(e,t,n,i){const a=n.parse(e[0],i),r=n.parse(e[1],i),o=Math.min(a,r),s=Math.max(a,r);let l=o,c=s;Math.abs(o)>Math.abs(s)&&(l=s,c=o),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:a,end:r,min:o,max:s}}(e,t,n,i):t[n.axis]=n.parse(e,i),t}function hi(e,t,n,i){const a=e.iScale,r=e.vScale,o=a.getLabels(),s=a===r,l=[];let c,u,d,p;for(c=n,u=n+i;c<u;++c)p=t[c],d={},d[a.axis]=s||a.parse(o[c],c),l.push(pi(p,d,r,c));return l}function fi(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function mi(e,t,n,i){let a=t.borderSkipped;const r={};if(!a)return void(e.borderSkipped=r);if(!0===a)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:s,reverse:l,top:c,bottom:u}=function(e){let t,n,i,a,r;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(a="end",r="start"):(a="start",r="end"),{start:n,end:i,reverse:t,top:a,bottom:r}}(e);"middle"===a&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?a=c:(n._bottom||0)===i?a=u:(r[gi(u,o,s,l)]=!0,a=c)),r[gi(a,o,s,l)]=!0,e.borderSkipped=r}function gi(e,t,n,i){var a,r,o;return i?(o=n,e=vi(e=(a=e)===(r=t)?o:a===o?r:a,n,t)):e=vi(e,t,n),e}function vi(e,t,n){return"start"===e?t:"end"===e?n:e}function bi(e,{inflateAmount:t},n){e.inflateAmount="auto"===t?1===n?.33:0:t}class xi extends ui{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data,{labels:{pointStyle:n,textAlign:i,color:a,useBorderRadius:r,borderRadius:o}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,s)=>{const l=e.getDatasetMeta(0).controller.getStyle(s);return{text:t,fillStyle:l.backgroundColor,fontColor:a,hidden:!e.getDataVisibility(s),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:i,pointStyle:n,borderRadius:r&&(o||l.borderRadius),index:s}}):[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let a,r,o=e=>+n[e];if(Ee(n[e])){const{key:e="value"}=this._parsing;o=t=>+Ke(n[t],e)}for(a=e,r=e+t;a<r;++a)i._parsed[a]=o(a)}}_getRotation(){return dt(this.options.rotation-90)}_getCircumference(){return dt(this.options.circumference)}_getRotationExtents(){let e=et,t=-et;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,a=i._getRotation(),r=i._getCircumference();e=Math.min(e,a),t=Math.max(t,a+r)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:n}=t,i=this._cachedMeta,a=i.data,r=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,o=Math.max((Math.min(n.width,n.height)-r)/2,0),s=Math.min((l=this.options.cutout,c=o,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:p}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:m,offsetY:g}=function(e,t,n){let i=1,a=1,r=0,o=0;if(t<et){const s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),p=Math.sin(l),h=(e,t,i)=>gt(e,s,l,!0)?1:Math.max(t,t*n,i,i*n),f=(e,t,i)=>gt(e,s,l,!0)?-1:Math.min(t,t*n,i,i*n),m=h(0,c,d),g=h(it,u,p),v=f(Qe,c,d),b=f(Qe+it,u,p);i=(m-v)/2,a=(g-b)/2,r=-(m+v)/2,o=-(g+b)/2}return{ratioX:i,ratioY:a,offsetX:r,offsetY:o}}(p,d,s),v=(n.width-r)/h,b=(n.height-r)/f,x=Math.max(Math.min(v,b)/2,0),y=Te(this.options.radius,x),_=(y-Math.max(y*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*y,this.offsetY=g*y,i.total=this.calculateTotal(),this.outerRadius=y-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*u,0),this.updateElements(a,0,a.length,e)}_circumference(e,t){const n=this.options,i=this._cachedMeta,a=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*a/et)}updateElements(e,t,n,i){const a="reset"===i,r=this.chart,o=r.chartArea,s=r.options.animation,l=(o.left+o.right)/2,c=(o.top+o.bottom)/2,u=a&&s.animateScale,d=u?0:this.innerRadius,p=u?0:this.outerRadius,{sharedOptions:h,includeOptions:f}=this._getSharedOptions(t,i);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,a);for(m=t;m<t+n;++m){const t=this._circumference(m,a),n=e[m],r={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:p,innerRadius:d};f&&(r.options=h||this.resolveDataElementOptions(m,n.active?"active":i)),g+=t,this.updateElement(n,m,r,i)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let n,i=0;for(n=0;n<t.length;n++){const a=e._parsed[n];null===a||isNaN(a)||!this.chart.getDataVisibility(n)||t[n].hidden||(i+=Math.abs(a))}return i}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?et*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,n=this.chart,i=n.data.labels||[],a=Ft(t._parsed[e],n.options.locale);return{label:i[e]||"",value:a}}getMaxBorderWidth(e){let t=0;const n=this.chart;let i,a,r,o,s;if(!e)for(i=0,a=n.data.datasets.length;i<a;++i)if(n.isDatasetVisible(i)){r=n.getDatasetMeta(i),e=r.data,o=r.controller;break}if(!e)return 0;for(i=0,a=e.length;i<a;++i)s=o.resolveDataElementOptions(i),"inner"!==s.borderAlign&&(t=Math.max(t,s.borderWidth||0,s.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let n=0,i=e.length;n<i;++n){const e=this.resolveDataElementOptions(n);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}_getRingWeight(e){return Math.max(Ie(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}function yi(e,t,n,i){const{controller:a,data:r,_sorted:o}=e,s=a._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(s&&t===s.axis&&"r"!==t&&o&&r.length){const o=s._reversePixels?_t:yt;if(!i){const i=o(r,t,n);if(l){const{vScale:t}=a._cachedMeta,{_parsed:n}=e,r=n.slice(0,i.lo+1).reverse().findIndex(e=>!ze(e[t.axis]));i.lo-=Math.max(0,r);const o=n.slice(i.hi).findIndex(e=>!ze(e[t.axis]));i.hi+=Math.max(0,o)}return i}if(a._sharedOptions){const e=r[0],i="function"==typeof e.getRange&&e.getRange(t);if(i){const e=o(r,t,n-i),a=o(r,t,n+i);return{lo:e.lo,hi:a.hi}}}}return{lo:0,hi:r.length-1}}function _i(e,t,n,i,a){const r=e.getSortedVisibleDatasetMetas(),o=n[t];for(let e=0,n=r.length;e<n;++e){const{index:n,data:s}=r[e],{lo:l,hi:c}=yi(r[e],t,o,a);for(let e=l;e<=c;++e){const t=s[e];t.skip||i(t,n,e)}}}function wi(e,t,n,i,a){const r=[];if(!a&&!e.isPointInArea(t))return r;return _i(e,n,t,function(n,o,s){(a||Jt(n,e.chartArea,0))&&n.inRange(t.x,t.y,i)&&r.push({element:n,datasetIndex:o,index:s})},!0),r}function ji(e,t,n,i,a,r){let o=[];const s=function(e){const t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){const a=t?Math.abs(e.x-i.x):0,r=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(r,2))}}(n);let l=Number.POSITIVE_INFINITY;return _i(e,n,t,function(n,c,u){const d=n.inRange(t.x,t.y,a);if(i&&!d)return;const p=n.getCenterPoint(a);if(!(!!r||e.isPointInArea(p))&&!d)return;const h=s(t,p);h<l?(o=[{element:n,datasetIndex:c,index:u}],l=h):h===l&&o.push({element:n,datasetIndex:c,index:u})}),o}function ki(e,t,n,i,a,r){return r||e.isPointInArea(t)?"r"!==n||i?ji(e,t,n,i,a,r):function(e,t,n,i){let a=[];return _i(e,n,t,function(e,n,r){const{startAngle:o,endAngle:s}=e.getProps(["startAngle","endAngle"],i),{angle:l}=ht(e,{x:t.x,y:t.y});gt(l,o,s)&&a.push({element:e,datasetIndex:n,index:r})}),a}(e,t,n,a):[]}function Si(e,t,n,i,a){const r=[],o="x"===n?"inXRange":"inYRange";let s=!1;return _i(e,n,t,(e,i,l)=>{e[o]&&e[o](t[n],a)&&(r.push({element:e,datasetIndex:i,index:l}),s=s||e.inRange(t.x,t.y,a))}),i&&!s?[]:r}var Ci={modes:{index(e,t,n,i){const a=In(t,e),r=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?wi(e,a,r,i,o):ki(e,a,r,!1,i,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})}),l):[]},dataset(e,t,n,i){const a=In(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?wi(e,a,r,i,o):ki(e,a,r,!1,i,o);if(s.length>0){const t=s[0].datasetIndex,n=e.getDatasetMeta(t).data;s=[];for(let e=0;e<n.length;++e)s.push({element:n[e],datasetIndex:t,index:e})}return s},point:(e,t,n,i)=>wi(e,In(t,e),n.axis||"xy",i,n.includeInvisible||!1),nearest(e,t,n,i){const a=In(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;return ki(e,a,r,n.intersect,i,o)},x:(e,t,n,i)=>Si(e,In(t,e),"x",n.intersect,i),y:(e,t,n,i)=>Si(e,In(t,e),"y",n.intersect,i)}};const Ni=["left","top","right","bottom"];function Mi(e,t){return e.filter(e=>e.pos===t)}function Oi(e,t){return e.filter(e=>-1===Ni.indexOf(e.pos)&&e.box.axis===t)}function Di(e,t){return e.sort((e,n)=>{const i=t?n:e,a=t?e:n;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function zi(e,t){const n=function(e){const t={};for(const n of e){const{stack:e,pos:i,stackWeight:a}=n;if(!e||!Ni.includes(i))continue;const r=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=a}return t}(e),{vBoxMaxWidth:i,hBoxMaxHeight:a}=t;let r,o,s;for(r=0,o=e.length;r<o;++r){s=e[r];const{fullSize:o}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*i:o&&t.availableWidth,s.height=a):(s.width=i,s.height=c?c*a:o&&t.availableHeight)}return n}function Ai(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function Ei(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Pi(e,t,n,i){const{pos:a,box:r}=n,o=e.maxPadding;if(!Ee(a)){n.size&&(e[a]-=n.size);const t=i[n.stack]||{size:0,count:1};t.size=Math.max(t.size,n.horizontal?r.height:r.width),n.size=t.size/t.count,e[a]+=n.size}r.getPadding&&Ei(o,r.getPadding());const s=Math.max(0,t.outerWidth-Ai(o,e,"left","right")),l=Math.max(0,t.outerHeight-Ai(o,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Ri(e,t){const n=t.maxPadding;function i(e){const i={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{i[e]=Math.max(t[e],n[e])}),i}return i(e?["left","right"]:["top","bottom"])}function Ii(e,t,n,i){const a=[];let r,o,s,l,c,u;for(r=0,o=e.length,c=0;r<o;++r){s=e[r],l=s.box,l.update(s.width||t.w,s.height||t.h,Ri(s.horizontal,t));const{same:o,other:d}=Pi(t,n,s,i);c|=o&&a.length,u=u||d,l.fullSize||a.push(s)}return c&&Ii(a,t,n,i)||u}function Ti(e,t,n,i,a){e.top=n,e.left=t,e.right=t+i,e.bottom=n+a,e.width=i,e.height=a}function Li(e,t,n,i){const a=n.padding;let{x:r,y:o}=t;for(const s of e){const e=s.box,l=i[s.stack]||{placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const i=t.w*c,r=l.size||e.height;Ge(l.start)&&(o=l.start),e.fullSize?Ti(e,a.left,o,n.outerWidth-a.right-a.left,r):Ti(e,t.left+l.placed,o,i,r),l.start=o,l.placed+=i,o=e.bottom}else{const i=t.h*c,o=l.size||e.width;Ge(l.start)&&(r=l.start),e.fullSize?Ti(e,r,a.top,o,n.outerHeight-a.bottom-a.top):Ti(e,r,t.top+l.placed,o,i),l.start=r,l.placed+=i,r=e.right}}t.x=r,t.y=o}var Fi={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const a=hn(e.options.layout.padding),r=Math.max(t-a.width,0),o=Math.max(n-a.height,0),s=function(e){const t=function(e){const t=[];let n,i,a,r,o,s;for(n=0,i=(e||[]).length;n<i;++n)a=e[n],({position:r,options:{stack:o,stackWeight:s=1}}=a),t.push({index:n,box:a,pos:r,horizontal:a.isHorizontal(),weight:a.weight,stack:o&&r+o,stackWeight:s});return t}(e),n=Di(t.filter(e=>e.box.fullSize),!0),i=Di(Mi(t,"left"),!0),a=Di(Mi(t,"right")),r=Di(Mi(t,"top"),!0),o=Di(Mi(t,"bottom")),s=Oi(t,"x"),l=Oi(t,"y");return{fullSize:n,leftAndTop:i.concat(r),rightAndBottom:a.concat(l).concat(o).concat(s),chartArea:Mi(t,"chartArea"),vertical:i.concat(a).concat(l),horizontal:r.concat(o).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;Fe(e.boxes,e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()});const u=l.reduce((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/u,hBoxMaxHeight:o/2}),p=Object.assign({},a);Ei(p,hn(i));const h=Object.assign({maxPadding:p,w:r,h:o,x:a.left,y:a.top},a),f=zi(l.concat(c),d);Ii(s.fullSize,h,d,f),Ii(l,h,d,f),Ii(c,h,d,f)&&Ii(l,h,d,f),function(e){const t=e.maxPadding;function n(n){const i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),Li(s.leftAndTop,h,d,f),h.x+=h.w,h.y+=h.h,Li(s.rightAndBottom,h,d,f),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Fe(s.chartArea,t=>{const n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class Bi{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,n){}removeEventListener(e,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,n,i){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,i?Math.floor(t/i):n)}}isAttached(e){return!0}updateConfig(e){}}class Wi extends Bi{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const qi="$chartjs",Vi={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},$i=e=>null===e||""===e;const Hi=!!Bn&&{passive:!0};function Ui(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,Hi)}function Yi(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Ki(e,t,n){const i=e.canvas,a=new MutationObserver(e=>{let t=!1;for(const n of e)t=t||Yi(n.addedNodes,i),t=t&&!Yi(n.removedNodes,i);t&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function Zi(e,t,n){const i=e.canvas,a=new MutationObserver(e=>{let t=!1;for(const n of e)t=t||Yi(n.removedNodes,i),t=t&&!Yi(n.addedNodes,i);t&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const Gi=new Map;let Xi=0;function Ji(){const e=window.devicePixelRatio;e!==Xi&&(Xi=e,Gi.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Qi(e,t,n){const i=e.canvas,a=i&&zn(i);if(!a)return;const r=Ct((e,t)=>{const i=a.clientWidth;n(e,t),i<a.clientWidth&&n()},window),o=new ResizeObserver(e=>{const t=e[0],n=t.contentRect.width,i=t.contentRect.height;0===n&&0===i||r(n,i)});return o.observe(a),function(e,t){Gi.size||window.addEventListener("resize",Ji),Gi.set(e,t)}(e,r),o}function ea(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){Gi.delete(e),Gi.size||window.removeEventListener("resize",Ji)}(e)}function ta(e,t,n){const i=e.canvas,a=Ct(t=>{null!==e.ctx&&n(function(e,t){const n=Vi[e.type]||e.type,{x:i,y:a}=In(e,t);return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==a?a:null}}(t,e))},e);return function(e,t,n){e&&e.addEventListener(t,n,Hi)}(i,t,a),a}class na extends Bi{acquireContext(e,t){const n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){const n=e.style,i=e.getAttribute("height"),a=e.getAttribute("width");if(e[qi]={initial:{height:i,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",$i(a)){const t=Wn(e,"width");void 0!==t&&(e.width=t)}if($i(i))if(""===e.style.height)e.height=e.width/(t||2);else{const t=Wn(e,"height");void 0!==t&&(e.height=t)}}(e,t),n):null}releaseContext(e){const t=e.canvas;if(!t[qi])return!1;const n=t[qi].initial;["height","width"].forEach(e=>{const i=n[e];ze(i)?t.removeAttribute(e):t.setAttribute(e,i)});const i=n.style||{};return Object.keys(i).forEach(e=>{t.style[e]=i[e]}),t.width=t.width,delete t[qi],!0}addEventListener(e,t,n){this.removeEventListener(e,t);const i=e.$proxies||(e.$proxies={}),a={attach:Ki,detach:Zi,resize:Qi}[t]||ta;i[t]=a(e,t,n)}removeEventListener(e,t){const n=e.$proxies||(e.$proxies={}),i=n[t];if(!i)return;({attach:ea,detach:ea,resize:ea}[t]||Ui)(e,t,i),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,n,i){return Ln(e,t,n,i)}isAttached(e){const t=e&&zn(e);return!(!t||!t.isConnected)}}class ia{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:n}=this.getProps(["x","y"],e);return{x:t,y:n}}hasValue(){return ut(this.x)&&ut(this.y)}getProps(e,t){const n=this.$animations;if(!t||!n)return this;const i={};return e.forEach(e=>{i[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),i}}function aa(e,t){const n=e.options.ticks,i=function(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),a=e._maxLength/n;return Math.floor(Math.min(i,a))}(e),a=Math.min(n.maxTicksLimit||i,i),r=n.major.enabled?function(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}(t):[],o=r.length,s=r[0],l=r[o-1],c=[];if(o>a)return function(e,t,n,i){let a,r=0,o=n[0];for(i=Math.ceil(i),a=0;a<e.length;a++)a===o&&(t.push(e[a]),r++,o=n[r*i])}(t,c,r,o/a),c;const u=function(e,t,n){const i=function(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}(e),a=t.length/n;if(!i)return Math.max(a,1);const r=function(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(0|n)&&t.push(n),t.sort((e,t)=>e-t).pop(),t}(i);for(let e=0,t=r.length-1;e<t;e++){const t=r[e];if(t>a)return t}return Math.max(a,1)}(r,t,a);if(o>0){let e,n;const i=o>1?Math.round((l-s)/(o-1)):null;for(ra(t,c,u,ze(i)?0:s-i,s),e=0,n=o-1;e<n;e++)ra(t,c,u,r[e],r[e+1]);return ra(t,c,u,l,ze(i)?t.length:l+i),c}return ra(t,c,u),c}function ra(e,t,n,i,a){const r=Ie(i,0),o=Math.min(Ie(a,e.length),e.length);let s,l,c,u=0;for(n=Math.ceil(n),a&&(s=a-i,n=s/Math.floor(s/n)),c=r;c<0;)u++,c=Math.round(r+u*n);for(l=Math.max(r,0);l<o;l++)l===c&&(t.push(e[l]),u++,c=Math.round(r+u*n))}const oa=(e,t,n)=>"top"===t||"left"===t?e[t]+n:e[t]-n,sa=(e,t)=>Math.min(t||e,e);function la(e,t){const n=[],i=e.length/t,a=e.length;let r=0;for(;r<a;r+=i)n.push(e[Math.floor(r)]);return n}function ca(e,t,n){const i=e.ticks.length,a=Math.min(t,i-1),r=e._startPixel,o=e._endPixel,s=1e-6;let l,c=e.getPixelForTick(a);if(!(n&&(l=1===i?Math.max(c-r,o-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(a-1))/2,c+=a<t?l:-l,c<r-s||c>o+s)))return c}function ua(e){return e.drawTicks?e.tickLength:0}function da(e,t){if(!e.display)return 0;const n=fn(e.font,t),i=hn(e.padding);return(Ae(e.text)?e.text.length:1)*n.lineHeight+i.height}function pa(e,t,n){let i=Nt(e);return(n&&"right"!==t||!n&&"right"===t)&&(i=(e=>"left"===e?"right":"right"===e?"left":e)(i)),i}class ha extends ia{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:n,_suggestedMax:i}=this;return e=Re(e,Number.POSITIVE_INFINITY),t=Re(t,Number.NEGATIVE_INFINITY),n=Re(n,Number.POSITIVE_INFINITY),i=Re(i,Number.NEGATIVE_INFINITY),{min:Re(e,n),max:Re(t,i),minDefined:Pe(e),maxDefined:Pe(t)}}getMinMax(e){let t,{min:n,max:i,minDefined:a,maxDefined:r}=this.getUserBounds();if(a&&r)return{min:n,max:i};const o=this.getMatchingVisibleMetas();for(let s=0,l=o.length;s<l;++s)t=o[s].controller.getMinMax(this,e),a||(n=Math.min(n,t.min)),r||(i=Math.max(i,t.max));return n=r&&n>i?i:n,i=a&&n>i?n:i,{min:Re(n,Re(i,n)),max:Re(i,Re(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Le(this.options.beforeUpdate,[this])}update(e,t,n){const{beginAtZero:i,grace:a,ticks:r}=this.options,o=r.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){const{min:i,max:a}=e,r=Te(t,(a-i)/2),o=(e,t)=>n&&0===e?0:e+t;return{min:o(i,-Math.abs(r)),max:o(a,r)}}(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=o<this.ticks.length;this._convertTicksToLabels(s?la(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||"auto"===r.source)&&(this.ticks=aa(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Le(this.options.afterUpdate,[this])}beforeSetDimensions(){Le(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Le(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Le(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Le(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let n,i,a;for(n=0,i=e.length;n<i;n++)a=e[n],a.label=Le(t.callback,[a.value,n,e],this)}afterTickToLabelConversion(){Le(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Le(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,n=sa(this.ticks.length,e.ticks.maxTicksLimit),i=t.minRotation||0,a=t.maxRotation;let r,o,s,l=i;if(!this._isVisible()||!t.display||i>=a||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,p=vt(this.chart.width-u,0,this.maxWidth);r=e.offset?this.maxWidth/n:p/(n-1),u+6>r&&(r=p/(n-(e.offset?.5:1)),o=this.maxHeight-ua(e.grid)-t.padding-da(e.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Math.min(Math.asin(vt((c.highest.height+6)/r,-1,1)),Math.asin(vt(o/s,-1,1))-Math.asin(vt(d/s,-1,1)))*(180/Qe),l=Math.max(i,Math.min(a,l))),this.labelRotation=l}afterCalculateLabelRotation(){Le(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Le(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:n,title:i,grid:a}}=this,r=this._isVisible(),o=this.isHorizontal();if(r){const r=da(i,t.options.font);if(o?(e.width=this.maxWidth,e.height=ua(a)+r):(e.height=this.maxHeight,e.width=ua(a)+r),n.display&&this.ticks.length){const{first:t,last:i,widest:a,highest:r}=this._getLabelSizes(),s=2*n.padding,l=dt(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(o){const t=n.mirror?0:u*a.width+c*r.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=n.mirror?0:c*a.width+u*r.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,i,u,c)}}this._handleMargins(),o?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,n,i){const{ticks:{align:a,padding:r},position:o}=this.options,s=0!==this.labelRotation,l="top"!==o&&"x"===this.axis;if(this.isHorizontal()){const o=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=i*e.width,d=n*t.height):(u=n*e.height,d=i*t.width):"start"===a?d=t.width:"end"===a?u=e.width:"inner"!==a&&(u=e.width/2,d=t.width/2),this.paddingLeft=Math.max((u-o+r)*this.width/(this.width-o),0),this.paddingRight=Math.max((d-c+r)*this.width/(this.width-c),0)}else{let n=t.height/2,i=e.height/2;"start"===a?(n=0,i=e.height):"end"===a&&(n=t.height,i=0),this.paddingTop=n+r,this.paddingBottom=i+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Le(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)ze(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let n=this.ticks;t<n.length&&(n=la(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,n){const{ctx:i,_longestTextCache:a}=this,r=[],o=[],s=Math.floor(t/sa(t,n));let l,c,u,d,p,h,f,m,g,v,b,x=0,y=0;for(l=0;l<t;l+=s){if(d=e[l].label,p=this._resolveTickFontOptions(l),i.font=h=p.string,f=a[h]=a[h]||{data:{},gc:[]},m=p.lineHeight,g=v=0,ze(d)||Ae(d)){if(Ae(d))for(c=0,u=d.length;c<u;++c)b=d[c],ze(b)||Ae(b)||(g=Yt(i,f.data,f.gc,g,b),v+=m)}else g=Yt(i,f.data,f.gc,g,d),v=m;r.push(g),o.push(v),x=Math.max(g,x),y=Math.max(v,y)}!function(e,t){Fe(e,e=>{const n=e.gc,i=n.length/2;let a;if(i>t){for(a=0;a<i;++a)delete e.data[n[a]];n.splice(0,i)}})}(a,t);const _=r.indexOf(x),w=o.indexOf(y),j=e=>({width:r[e]||0,height:o[e]||0});return{first:j(0),last:j(t-1),widest:j(_),highest:j(w),widths:r,heights:o}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return vt(this._alignToPixels?Kt(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const n=t[e];return n.$context||(n.$context=function(e,t,n){return gn(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=gn(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const e=this.options.ticks,t=dt(this.labelRotation),n=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),a=this._getLabelSizes(),r=e.autoSkipPadding||0,o=a?a.widest.width+r:0,s=a?a.highest.height+r:0;return this.isHorizontal()?s*n>o*i?o/n:s/i:s*i<o*n?s/n:o/i}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,n=this.chart,i=this.options,{grid:a,position:r,border:o}=i,s=a.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=ua(a),d=[],p=o.setContext(this.getContext()),h=p.display?p.width:0,f=h/2,m=function(e){return Kt(n,e,h)};let g,v,b,x,y,_,w,j,k,S,C,N;if("top"===r)g=m(this.bottom),_=this.bottom-u,j=g-f,S=m(e.top)+f,N=e.bottom;else if("bottom"===r)g=m(this.top),S=e.top,N=m(e.bottom)-f,_=g+f,j=this.top+u;else if("left"===r)g=m(this.right),y=this.right-u,w=g-f,k=m(e.left)+f,C=e.right;else if("right"===r)g=m(this.left),k=e.left,C=m(e.right)-f,y=g+f,w=this.left+u;else if("x"===t){if("center"===r)g=m((e.top+e.bottom)/2+.5);else if(Ee(r)){const e=Object.keys(r)[0],t=r[e];g=m(this.chart.scales[e].getPixelForValue(t))}S=e.top,N=e.bottom,_=g+f,j=_+u}else if("y"===t){if("center"===r)g=m((e.left+e.right)/2);else if(Ee(r)){const e=Object.keys(r)[0],t=r[e];g=m(this.chart.scales[e].getPixelForValue(t))}y=g-f,w=y-u,k=e.left,C=e.right}const M=Ie(i.ticks.maxTicksLimit,c),O=Math.max(1,Math.ceil(c/M));for(v=0;v<c;v+=O){const e=this.getContext(v),t=a.setContext(e),i=o.setContext(e),r=t.lineWidth,c=t.color,u=i.dash||[],p=i.dashOffset,h=t.tickWidth,f=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;b=ca(this,v,s),void 0!==b&&(x=Kt(n,b,r),l?y=w=k=C=x:_=j=S=N=x,d.push({tx1:y,ty1:_,tx2:w,ty2:j,x1:k,y1:S,x2:C,y2:N,width:r,color:c,borderDash:u,borderDashOffset:p,tickWidth:h,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(e){const t=this.axis,n=this.options,{position:i,ticks:a}=n,r=this.isHorizontal(),o=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=a,d=ua(n.grid),p=d+c,h=u?-c:p,f=-dt(this.labelRotation),m=[];let g,v,b,x,y,_,w,j,k,S,C,N,M="middle";if("top"===i)_=this.bottom-h,w=this._getXAxisLabelAlignment();else if("bottom"===i)_=this.top+h,w=this._getXAxisLabelAlignment();else if("left"===i){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,y=e.x}else if("right"===i){const e=this._getYAxisLabelAlignment(d);w=e.textAlign,y=e.x}else if("x"===t){if("center"===i)_=(e.top+e.bottom)/2+p;else if(Ee(i)){const e=Object.keys(i)[0],t=i[e];_=this.chart.scales[e].getPixelForValue(t)+p}w=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===i)y=(e.left+e.right)/2-p;else if(Ee(i)){const e=Object.keys(i)[0],t=i[e];y=this.chart.scales[e].getPixelForValue(t)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===t&&("start"===s?M="top":"end"===s&&(M="bottom"));const O=this._getLabelSizes();for(g=0,v=o.length;g<v;++g){b=o[g],x=b.label;const e=a.setContext(this.getContext(g));j=this.getPixelForTick(g)+a.labelOffset,k=this._resolveTickFontOptions(g),S=k.lineHeight,C=Ae(x)?x.length:1;const t=C/2,n=e.color,s=e.textStrokeColor,c=e.textStrokeWidth;let d,p=w;if(r?(y=j,"inner"===w&&(p=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),N="top"===i?"near"===l||0!==f?-C*S+S/2:"center"===l?-O.highest.height/2-t*S+S:-O.highest.height+S/2:"near"===l||0!==f?S/2:"center"===l?O.highest.height/2-t*S:O.highest.height-C*S,u&&(N*=-1),0===f||e.showLabelBackdrop||(y+=S/2*Math.sin(f))):(_=j,N=(1-C)*S/2),e.showLabelBackdrop){const t=hn(e.backdropPadding),n=O.heights[g],i=O.widths[g];let a=N-t.top,r=0-t.left;switch(M){case"middle":a-=n/2;break;case"bottom":a-=n}switch(w){case"center":r-=i/2;break;case"right":r-=i;break;case"inner":g===v-1?r-=i:g>0&&(r-=i/2)}d={left:r,top:a,width:i+t.width,height:n+t.height,color:e.backdropColor}}m.push({label:x,font:k,textOffset:N,options:{rotation:f,color:n,strokeColor:s,strokeWidth:c,textAlign:p,textBaseline:M,translation:[y,_],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-dt(this.labelRotation))return"top"===e?"left":"right";let n="center";return"start"===t.align?n="left":"end"===t.align?n="right":"inner"===t.align&&(n="inner"),n}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:n,mirror:i,padding:a}}=this.options,r=e+a,o=this._getLabelSizes().widest.width;let s,l;return"left"===t?i?(l=this.right+a,"near"===n?s="left":"center"===n?(s="center",l+=o/2):(s="right",l+=o)):(l=this.right-r,"near"===n?s="right":"center"===n?(s="center",l-=o/2):(s="left",l=this.left)):"right"===t?i?(l=this.left+a,"near"===n?s="right":"center"===n?(s="center",l-=o/2):(s="left",l-=o)):(l=this.left+r,"near"===n?s="left":"center"===n?(s="center",l+=o/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:n,top:i,width:a,height:r}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(n,i,a,r),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const n=this.ticks.findIndex(t=>t.value===e);if(n>=0){return t.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,r;const o=(e,t,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(e.x,e.y),n.lineTo(t.x,t.y),n.stroke(),n.restore())};if(t.display)for(a=0,r=i.length;a<r;++a){const e=i[a];t.drawOnChartArea&&o({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&o({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:n,grid:i}}=this,a=n.setContext(this.getContext()),r=n.display?a.width:0;if(!r)return;const o=i.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Kt(e,this.left,r)-r/2,c=Kt(e,this.right,o)+o/2,u=d=s):(u=Kt(e,this.top,r)-r/2,d=Kt(e,this.bottom,o)+o/2,l=c=s),t.save(),t.lineWidth=a.width,t.strokeStyle=a.color,t.beginPath(),t.moveTo(l,u),t.lineTo(c,d),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,n=this._computeLabelArea();n&&Qt(t,n);const i=this.getLabelItems(e);for(const e of i){const n=e.options,i=e.font;an(t,e.label,0,e.textOffset,i,n)}n&&en(t)}drawTitle(){const{ctx:e,options:{position:t,title:n,reverse:i}}=this;if(!n.display)return;const a=fn(n.font),r=hn(n.padding),o=n.align;let s=a.lineHeight/2;"bottom"===t||"center"===t||Ee(t)?(s+=r.bottom,Ae(n.text)&&(s+=a.lineHeight*(n.text.length-1))):s+=r.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(e,t,n,i){const{top:a,left:r,bottom:o,right:s,chart:l}=e,{chartArea:c,scales:u}=l;let d,p,h,f=0;const m=o-a,g=s-r;if(e.isHorizontal()){if(p=Mt(i,r,s),Ee(n)){const e=Object.keys(n)[0],i=n[e];h=u[e].getPixelForValue(i)+m-t}else h="center"===n?(c.bottom+c.top)/2+m-t:oa(e,n,t);d=s-r}else{if(Ee(n)){const e=Object.keys(n)[0],i=n[e];p=u[e].getPixelForValue(i)-g+t}else p="center"===n?(c.left+c.right)/2-g+t:oa(e,n,t);h=Mt(i,o,a),f="left"===n?-it:it}return{titleX:p,titleY:h,maxWidth:d,rotation:f}}(this,s,t,o);an(e,n.text,0,0,a,{color:n.color,maxWidth:u,rotation:d,textAlign:pa(o,t,i),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,n=Ie(e.grid&&e.grid.z,-1),i=Ie(e.border&&e.border.z,0);return this._isVisible()&&this.draw===ha.prototype.draw?[{z:n,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let a,r;for(a=0,r=t.length;a<r;++a){const r=t[a];r[n]!==this.id||e&&r.type!==e||i.push(r)}return i}_resolveTickFontOptions(e){return fn(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class fa{constructor(e,t,n){this.type=e,this.scope=t,this.override=n,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let n;(function(e){return"id"in e&&"defaults"in e})(t)&&(n=this.register(t));const i=this.items,a=e.id,r=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in i||(i[a]=e,function(e,t,n){const i=$e(Object.create(null),[n?Ut.get(n):{},Ut.get(t),e.defaults]);Ut.set(t,i),e.defaultRoutes&&function(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),a=i.pop(),r=[e].concat(i).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");Ut.route(r,a,l,s)})}(t,e.defaultRoutes);e.descriptors&&Ut.describe(t,e.descriptors)}(e,r,n),this.override&&Ut.override(e.id,e.overrides)),r}get(e){return this.items[e]}unregister(e){const t=this.items,n=e.id,i=this.scope;n in t&&delete t[n],i&&n in Ut[i]&&(delete Ut[i][n],this.override&&delete Wt[n])}}class ma{constructor(){this.controllers=new fa(ui,"datasets",!0),this.elements=new fa(ia,"elements"),this.plugins=new fa(Object,"plugins"),this.scales=new fa(ha,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,n){[...t].forEach(t=>{const i=n||this._getRegistryForType(t);n||i.isForType(t)||i===this.plugins&&t.id?this._exec(e,i,t):Fe(t,t=>{const i=n||this._getRegistryForType(t);this._exec(e,i,t)})})}_exec(e,t,n){const i=Ze(e);Le(n["before"+i],[],n),t[e](n),Le(n["after"+i],[],n)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}_get(e,t,n){const i=t.get(e);if(void 0===i)throw new Error('"'+e+'" is not a registered '+n+".");return i}}var ga=new ma;class va{constructor(){this._init=void 0}notify(e,t,n,i){if("beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),void 0===this._init)return;const a=i?this._descriptors(e).filter(i):this._descriptors(e),r=this._notify(a,e,t,n);return"afterDestroy"===t&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),r}_notify(e,t,n,i){i=i||{};for(const a of e){const e=a.plugin;if(!1===Le(e[n],[t,i,a.options],e)&&i.cancelable)return!1}return!0}invalidate(){ze(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const n=e&&e.config,i=Ie(n.options&&n.options.plugins,{}),a=function(e){const t={},n=[],i=Object.keys(ga.plugins.items);for(let e=0;e<i.length;e++)n.push(ga.getPlugin(i[e]));const a=e.plugins||[];for(let e=0;e<a.length;e++){const i=a[e];-1===n.indexOf(i)&&(n.push(i),t[i.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==i||t?function(e,{plugins:t,localIds:n},i,a){const r=[],o=e.getContext();for(const s of t){const t=s.id,l=ba(i[t],a);null!==l&&r.push({plugin:s,options:xa(e.config,{plugin:s,local:n[t]},l,o)})}return r}(e,a,i,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],n=this._cache,i=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(i(t,n),e,"stop"),this._notify(i(n,t),e,"start")}}function ba(e,t){return t||!1!==e?!0===e?{}:e:null}function xa(e,{plugin:t,local:n},i,a){const r=e.pluginScopeKeys(t),o=e.getOptionScopes(i,r);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ya(e,t){const n=Ut.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function _a(e){if("x"===e||"y"===e||"r"===e)return e}function wa(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function ja(e,...t){if(_a(e))return e;for(const n of t){const t=n.axis||wa(n.position)||e.length>1&&_a(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function ka(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Sa(e,t){const n=Wt[e.type]||{scales:{}},i=t.scales||{},a=ya(e.type,t),r=Object.create(null);return Object.keys(i).forEach(t=>{const o=i[t];if(!Ee(o))return console.error(`Invalid scale configuration for scale: ${t}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const s=ja(t,o,function(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(n.length)return ka(e,"x",n[0])||ka(e,"y",n[0])}return{}}(t,e),Ut.scales[o.type]),l=function(e,t){return e===t?"_index_":"_value_"}(s,a),c=n.scales||{};r[t]=He(Object.create(null),[{axis:s},o,c[s],c[l]])}),e.data.datasets.forEach(n=>{const a=n.type||e.type,o=n.indexAxis||ya(a,t),s=(Wt[a]||{}).scales||{};Object.keys(s).forEach(e=>{const t=function(e,t){let n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,o),a=n[t+"AxisID"]||t;r[a]=r[a]||Object.create(null),He(r[a],[{axis:t},i[a],s[e]])})}),Object.keys(r).forEach(e=>{const t=r[e];He(t,[Ut.scales[t.type],Ut.scale])}),r}function Ca(e){const t=e.options||(e.options={});t.plugins=Ie(t.plugins,{}),t.scales=Sa(e,t)}function Na(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const Ma=new Map,Oa=new Set;function Da(e,t){let n=Ma.get(e);return n||(n=t(),Ma.set(e,n),Oa.add(n)),n}const za=(e,t,n)=>{const i=Ke(t,n);void 0!==i&&e.add(i)};class Aa{constructor(e){this._config=function(e){return(e=e||{}).data=Na(e.data),Ca(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Na(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Ca(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return Da(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return Da(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return Da(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){const t=e.id;return Da(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const n=this._scopeCache;let i=n.get(e);return i&&!t||(i=new Map,n.set(e,i)),i}getOptionScopes(e,t,n){const{options:i,type:a}=this,r=this._cachedScopes(e,n),o=r.get(t);if(o)return o;const s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>za(s,e,t))),t.forEach(e=>za(s,i,e)),t.forEach(e=>za(s,Wt[a]||{},e)),t.forEach(e=>za(s,Ut,e)),t.forEach(e=>za(s,qt,e))});const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Oa.has(t)&&r.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,Wt[t]||{},Ut.datasets[t]||{},{type:t},Ut,qt]}resolveNamedOptions(e,t,n,i=[""]){const a={$shared:!0},{resolver:r,subPrefixes:o}=Ea(this._resolverCache,e,i);let s=r;if(function(e,t){const{isScriptable:n,isIndexable:i}=xn(e);for(const a of t){const t=n(a),r=i(a),o=(r||t)&&e[a];if(t&&(Xe(o)||Pa(o))||r&&Ae(o))return!0}return!1}(r,t)){a.$shared=!1;s=bn(r,n=Xe(n)?n():n,this.createResolver(e,n,o))}for(const e of t)a[e]=s[e];return a}createResolver(e,t,n=[""],i){const{resolver:a}=Ea(this._resolverCache,e,n);return Ee(t)?bn(a,t,void 0,i):a}}function Ea(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const a=n.join();let r=i.get(a);if(!r){r={resolver:vn(t,n),subPrefixes:n.filter(e=>!e.toLowerCase().includes("hover"))},i.set(a,r)}return r}const Pa=e=>Ee(e)&&Object.getOwnPropertyNames(e).some(t=>Xe(e[t]));const Ra=["top","bottom","left","right","chartArea"];function Ia(e,t){return"top"===e||"bottom"===e||-1===Ra.indexOf(e)&&"x"===t}function Ta(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function La(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Le(n&&n.onComplete,[e],t)}function Fa(e){const t=e.chart,n=t.options.animation;Le(n&&n.onProgress,[e],t)}function Ba(e){return Dn()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Wa={},qa=e=>{const t=Ba(e);return Object.values(Wa).filter(e=>e.canvas===t).pop()};function Va(e,t,n){const i=Object.keys(e);for(const a of i){const i=+a;if(i>=t){const r=e[a];delete e[a],(n>0||i>t)&&(e[i+n]=r)}}}class $a{static defaults=Ut;static instances=Wa;static overrides=Wt;static registry=ga;static version="4.5.1";static getChart=qa;static register(...e){ga.add(...e),Ha()}static unregister(...e){ga.remove(...e),Ha()}constructor(e,t){const n=this.config=new Aa(t),i=Ba(e),a=qa(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const r=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(e){return!Dn()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Wi:na}(i)),this.platform.updateConfig(n);const o=this.platform.acquireContext(i,r.aspectRatio),s=o&&o.canvas,l=s&&s.height,c=s&&s.width;this.id=De(),this.ctx=o,this.canvas=s,this.width=c,this.height=l,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new va,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}(e=>this.update(e),r.resizeDelay||0),this._dataChanges=[],Wa[this.id]=this,o&&s?(Kn.listen(this,"complete",La),Kn.listen(this,"progress",Fa),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:i,_aspectRatio:a}=this;return ze(e)?t&&a?a:i?n/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return ga}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Fn(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Zt(this.canvas,this.ctx),this}stop(){return Kn.stop(this),this}resize(e,t){Kn.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,i=this.canvas,a=n.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,e,t,a),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,Fn(this,o,!0)&&(this.notifyPlugins("resize",{size:r}),Le(n.onResize,[this,r],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){Fe(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,i=Object.keys(n).reduce((e,t)=>(e[t]=!1,e),{});let a=[];t&&(a=a.concat(Object.keys(t).map(e=>{const n=t[e],i=ja(e,n),a="r"===i,r="x"===i;return{options:n,dposition:a?"chartArea":r?"bottom":"left",dtype:a?"radialLinear":r?"category":"linear"}}))),Fe(a,t=>{const a=t.options,r=a.id,o=ja(r,a),s=Ie(a.type,t.dtype);void 0!==a.position&&Ia(a.position,o)===Ia(t.dposition)||(a.position=t.dposition),i[r]=!0;let l=null;if(r in n&&n[r].type===s)l=n[r];else{l=new(ga.getScale(s))({id:r,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(a,e)}),Fe(i,(e,t)=>{e||delete n[t]}),Fe(n,e=>{Fi.configure(this,e,e.options),Fi.addBox(this,e)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((e,t)=>e.index-t.index),n>t){for(let e=t;e<n;++e)this._destroyDatasetMeta(e);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(Ta("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((e,n)=>{0===t.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=t.length;n<i;n++){const i=t[n];let a=this.getDatasetMeta(n);const r=i.type||this.config.type;if(a.type&&a.type!==r&&(this._destroyDatasetMeta(n),a=this.getDatasetMeta(n)),a.type=r,a.indexAxis=i.indexAxis||ya(r,this.options),a.order=i.order||0,a.index=n,a.label=""+i.label,a.visible=this.isDatasetVisible(n),a.controller)a.controller.updateIndex(n),a.controller.linkScales();else{const t=ga.getController(r),{datasetElementType:i,dataElementType:o}=Ut.datasets[r];Object.assign(t,{dataElementType:ga.getElement(o),datasetElementType:i&&ga.getElement(i)}),a.controller=new t(this,n),e.push(a.controller)}}return this._updateMetasets(),e}_resetElements(){Fe(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),n=!i&&-1===a.indexOf(t);t.buildOrUpdateElements(n),r=Math.max(+t.getMaxOverflow(),r)}r=this._minPadding=n.layout.autoPadding?r:0,this._updateLayout(r),i||Fe(a,e=>{e.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Ta("z","_idx"));const{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){Fe(this.scales,e=>{Fi.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Je(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:a}of t){Va(e,i,"_removeElements"===n?-a:a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+","+e.splice(1).join(","))),i=n(0);for(let e=1;e<t;e++)if(!Je(i,n(e)))return;return Array.from(i).map(e=>e.split(",")).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Fi.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],Fe(this.boxes,e=>{n&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,n=this.data.datasets.length;t<n;++t)this._updateDataset(t,Xe(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const n=this.getDatasetMeta(e),i={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(t),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Kn.has(this)?this.attached&&!Kn.running(this)&&Kn.start(this):(this.draw(),La({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,n=[];let i,a;for(i=0,a=t.length;i<a;++i){const a=t[i];e&&!a.visible||n.push(a)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n={meta:e,index:e.index,cancelable:!0},i=Un(this,e);!1!==this.notifyPlugins("beforeDatasetDraw",n)&&(i&&Qt(t,i),e.controller.draw(),i&&en(t),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(e){return Jt(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,i){const a=Ci.modes[t];return"function"==typeof a?a(this,e,n,i):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let i=n.filter(e=>e&&e._dataset===t).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=gn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return"boolean"==typeof n.hidden?!n.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const i=n?"show":"hide",a=this.getDatasetMeta(e),r=a.controller._resolveAnimations(void 0,i);Ge(t)?(a.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),r.update(a,{visible:n}),this.update(t=>t.datasetIndex===e?i:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Kn.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Zt(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Wa[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,n=(n,i)=>{t.addEventListener(this,n,i),e[n]=i},i=(e,t,n)=>{e.offsetX=t,e.offsetY=n,this._eventHandler(e)};Fe(this.options.events,e=>n(e,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(n,i)=>{t.addEventListener(this,n,i),e[n]=i},i=(n,i)=>{e[n]&&(t.removeEventListener(this,n,i),delete e[n])},a=(e,t)=>{this.canvas&&this.resize(e,t)};let r;const o=()=>{i("attach",o),this.attached=!0,this.resize(),n("resize",a),n("detach",r)};r=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),n("attach",o)},t.isAttached(this.canvas)?o():r()}unbindEvents(){Fe(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},Fe(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const i=n?"set":"remove";let a,r,o,s;for("dataset"===t&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),o=0,s=e.length;o<s;++o){r=e[o];const t=r&&this.getDatasetMeta(r.datasetIndex).controller;t&&t[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],n=e.map(({datasetIndex:e,index:t})=>{const n=this.getDatasetMeta(e);if(!n)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:n.data[t],index:t}});!Be(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return 1===this._plugins._cache.filter(t=>t.plugin.id===e).length}_updateHoverStyles(e,t,n){const i=this.options.hover,a=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),r=a(t,e),o=n?e:a(e,t);r.length&&this.updateHoverStyle(r,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},i=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const a=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(a||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:i=[],options:a}=this,r=t,o=this._getActiveElements(e,i,n,r),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),l=function(e,t,n,i){return n&&"mouseout"!==e.type?i?t:e:null}(e,this._lastEvent,n,s);n&&(this._lastEvent=null,Le(a.onHover,[e,o,this],this),s&&Le(a.onClick,[e,o,this],this));const c=!Be(o,i);return(c||t)&&(this._active=o,this._updateHoverStyles(o,i,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,i){if("mouseout"===e.type)return[];if(!n)return t;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,i)}}function Ha(){return Fe($a.instances,e=>e._plugins.invalidate())}function Ua(e,t,n,i){const a=un(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const r=(n-t)/2,o=Math.min(r,i*t/2),s=e=>{const t=(n-Math.min(r,e))*i/2;return vt(e,0,Math.min(r,t))};return{outerStart:s(a.outerStart),outerEnd:s(a.outerEnd),innerStart:vt(a.innerStart,0,o),innerEnd:vt(a.innerEnd,0,o)}}function Ya(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function Ka(e,t,n,i,a,r){const{x:o,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+i+n-c,0),p=u>0?u+i+n+c:0;let h=0;const f=a-l;if(i){const e=((u>0?u-i:0)+(d>0?d-i:0))/2;h=(f-(0!==e?f*e/(e+i):f))/2}const m=(f-Math.max(.001,f*d-n/Qe)/d)/2,g=l+m+h,v=a-m-h,{outerStart:b,outerEnd:x,innerStart:y,innerEnd:_}=Ua(t,p,d,v-g),w=d-b,j=d-x,k=g+b/w,S=v-x/j,C=p+y,N=p+_,M=g+y/C,O=v-_/N;if(e.beginPath(),r){const t=(k+S)/2;if(e.arc(o,s,d,k,t),e.arc(o,s,d,t,S),x>0){const t=Ya(j,S,o,s);e.arc(t.x,t.y,x,S,v+it)}const n=Ya(N,v,o,s);if(e.lineTo(n.x,n.y),_>0){const t=Ya(N,O,o,s);e.arc(t.x,t.y,_,v+it,O+Math.PI)}const i=(v-_/p+(g+y/p))/2;if(e.arc(o,s,p,v-_/p,i,!0),e.arc(o,s,p,i,g+y/p,!0),y>0){const t=Ya(C,M,o,s);e.arc(t.x,t.y,y,M+Math.PI,g-it)}const a=Ya(w,g,o,s);if(e.lineTo(a.x,a.y),b>0){const t=Ya(w,k,o,s);e.arc(t.x,t.y,b,g-it,k)}}else{e.moveTo(o,s);const t=Math.cos(k)*d+o,n=Math.sin(k)*d+s;e.lineTo(t,n);const i=Math.cos(S)*d+o,a=Math.sin(S)*d+s;e.lineTo(i,a)}e.closePath()}function Za(e,t,n,i,a){const{fullCircles:r,startAngle:o,circumference:s,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:p,borderRadius:h}=l,f="inner"===l.borderAlign;if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=p,f?(e.lineWidth=2*c,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let m=t.endAngle;if(r){Ka(e,t,n,i,m,a);for(let t=0;t<r;++t)e.stroke();isNaN(s)||(m=o+(s%et||et))}f&&function(e,t,n){const{startAngle:i,pixelMargin:a,x:r,y:o,outerRadius:s,innerRadius:l}=t;let c=a/s;e.beginPath(),e.arc(r,o,s,i-c,n+c),l>a?(c=a/l,e.arc(r,o,l,n+c,i-c,!0)):e.arc(r,o,a,n+it,i-it),e.closePath(),e.clip()}(e,t,m),l.selfJoin&&m-o>=Qe&&0===h&&"miter"!==u&&function(e,t,n){const{startAngle:i,x:a,y:r,outerRadius:o,innerRadius:s,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,d=Math.min(c/o,mt(i-n));if(e.beginPath(),e.arc(a,r,o-c/2,i+d/2,n-d/2),s>0){const t=Math.min(c/s,mt(i-n));e.arc(a,r,s+c/2,n-t/2,i+t/2,!0)}else{const t=Math.min(c/2,o*mt(i-n));if("round"===u)e.arc(a,r,t,n-Qe/2,i+Qe/2,!0);else if("bevel"===u){const o=2*t*t,s=-o*Math.cos(n+Qe/2)+a,l=-o*Math.sin(n+Qe/2)+r,c=o*Math.cos(i+Qe/2)+a,u=o*Math.sin(i+Qe/2)+r;e.lineTo(s,l),e.lineTo(c,u)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}(e,t,m),r||(Ka(e,t,n,i,m,a),e.stroke())}class Ga extends ia{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,n){const i=this.getProps(["x","y"],n),{angle:a,distance:r}=ht(i,{x:e,y:t}),{startAngle:o,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,p=Ie(u,s-o),h=gt(a,o,s)&&o!==s,f=p>=et||h,m=bt(r,l+d,c+d);return f&&m}getCenterPoint(e){const{x:t,y:n,startAngle:i,endAngle:a,innerRadius:r,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:s,spacing:l}=this.options,c=(i+a)/2,u=(r+o+l+s)/2;return{x:t+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:n}=this,i=(t.offset||0)/4,a=(t.spacing||0)/2,r=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>et?Math.floor(n/et):0,0===n||this.innerRadius<0||this.outerRadius<0)return;e.save();const o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*i,Math.sin(o)*i);const s=i*(1-Math.sin(Math.min(Qe,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,i,a){const{fullCircles:r,startAngle:o,circumference:s}=t;let l=t.endAngle;if(r){Ka(e,t,n,i,l,a);for(let t=0;t<r;++t)e.fill();isNaN(s)||(l=o+(s%et||et))}Ka(e,t,n,i,l,a),e.fill()}(e,this,s,a,r),Za(e,this,s,a,r),e.restore()}}function Xa(e,t){const{x:n,y:i,base:a,width:r,height:o}=e.getProps(["x","y","base","width","height"],t);let s,l,c,u,d;return e.horizontal?(d=o/2,s=Math.min(n,a),l=Math.max(n,a),c=i-d,u=i+d):(d=r/2,s=n-d,l=n+d,c=Math.min(i,a),u=Math.max(i,a)),{left:s,top:c,right:l,bottom:u}}function Ja(e,t,n,i){return e?0:vt(t,n,i)}function Qa(e){const t=Xa(e),n=t.right-t.left,i=t.bottom-t.top,a=function(e,t,n){const i=e.options.borderWidth,a=e.borderSkipped,r=dn(i);return{t:Ja(a.top,r.top,0,n),r:Ja(a.right,r.right,0,t),b:Ja(a.bottom,r.bottom,0,n),l:Ja(a.left,r.left,0,t)}}(e,n/2,i/2),r=function(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,r=pn(a),o=Math.min(t,n),s=e.borderSkipped,l=i||Ee(a);return{topLeft:Ja(!l||s.top||s.left,r.topLeft,0,o),topRight:Ja(!l||s.top||s.right,r.topRight,0,o),bottomLeft:Ja(!l||s.bottom||s.left,r.bottomLeft,0,o),bottomRight:Ja(!l||s.bottom||s.right,r.bottomRight,0,o)}}(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:r},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:i-a.t-a.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,r.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(a.b,a.r))}}}}function er(e,t,n,i){const a=null===t,r=null===n,o=e&&!(a&&r)&&Xa(e,i);return o&&(a||bt(t,o.left,o.right))&&(r||bt(n,o.top,o.bottom))}function tr(e,t){e.rect(t.x,t.y,t.w,t.h)}function nr(e,t,n={}){const i=e.x!==n.x?-t:0,a=e.y!==n.y?-t:0,r=(e.x+e.w!==n.x+n.w?t:0)-i,o=(e.y+e.h!==n.y+n.h?t:0)-a;return{x:e.x+i,y:e.y+a,w:e.w+r,h:e.h+o,radius:e.radius}}const ir=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}};class ar extends ia{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=Le(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,n)=>e.sort(t,n,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const n=e.labels,i=fn(n.font),a=i.size,r=this._computeTitleHeight(),{boxWidth:o,itemHeight:s}=ir(n,a);let l,c;t.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(r,a,o,s)+10):(c=this.maxHeight,l=this._fitCols(r,i,o,s)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,n,i){const{ctx:a,maxWidth:r,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+o;let u=e;a.textAlign="left",a.textBaseline="middle";let d=-1,p=-c;return this.legendItems.forEach((e,h)=>{const f=n+t/2+a.measureText(e.text).width;(0===h||l[l.length-1]+f+2*o>r)&&(u+=c,l[l.length-(h>0?0:1)]=0,p+=c,d++),s[h]={left:0,top:p,row:d,width:f,height:i},l[l.length-1]+=f+o}),u}_fitCols(e,t,n,i){const{ctx:a,maxHeight:r,options:{labels:{padding:o}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=r-e;let u=o,d=0,p=0,h=0,f=0;return this.legendItems.forEach((e,r)=>{const{itemWidth:m,itemHeight:g}=function(e,t,n,i,a){const r=function(e,t,n,i){let a=e.text;a&&"string"!=typeof a&&(a=a.reduce((e,t)=>e.length>t.length?e:t));return t+n.size/2+i.measureText(a).width}(i,e,t,n),o=function(e,t,n){let i=e;"string"!=typeof t.text&&(i=rr(t,n));return i}(a,i,t.lineHeight);return{itemWidth:r,itemHeight:o}}(n,t,a,e,i);r>0&&p+g+2*o>c&&(u+=d+o,l.push({width:d,height:p}),h+=d+o,f++,d=p=0),s[r]={left:h,top:p,col:f,width:m,height:g},d=Math.max(d,m),p+=g+o}),u+=d,l.push({width:d,height:p}),u}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:i},rtl:a}}=this,r=qn(a,this.left,this.width);if(this.isHorizontal()){let a=0,o=Mt(n,this.left+i,this.right-this.lineWidths[a]);for(const s of t)a!==s.row&&(a=s.row,o=Mt(n,this.left+i,this.right-this.lineWidths[a])),s.top+=this.top+e+i,s.left=r.leftForLtr(r.x(o),s.width),o+=s.width+i}else{let a=0,o=Mt(n,this.top+e+i,this.bottom-this.columnSizes[a].height);for(const s of t)s.col!==a&&(a=s.col,o=Mt(n,this.top+e+i,this.bottom-this.columnSizes[a].height)),s.top=o,s.left+=this.left+i,s.left=r.leftForLtr(r.x(s.left),s.width),o+=s.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;Qt(e,this),this._draw(),en(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:n,ctx:i}=this,{align:a,labels:r}=e,o=Ut.color,s=qn(e.rtl,this.left,this.width),l=fn(r.font),{padding:c}=r,u=l.size,d=u/2;let p;this.drawTitle(),i.textAlign=s.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:h,boxHeight:f,itemHeight:m}=ir(r,u),g=this.isHorizontal(),v=this._computeTitleHeight();p=g?{x:Mt(a,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:Mt(a,this.top+v+c,this.bottom-t[0].height),line:0},Vn(this.ctx,e.textDirection);const b=m+c;this.legendItems.forEach((x,y)=>{i.strokeStyle=x.fontColor,i.fillStyle=x.fontColor;const _=i.measureText(x.text).width,w=s.textAlign(x.textAlign||(x.textAlign=r.textAlign)),j=h+d+_;let k=p.x,S=p.y;s.setWidth(this.width),g?y>0&&k+j+c>this.right&&(S=p.y+=b,p.line++,k=p.x=Mt(a,this.left+c,this.right-n[p.line])):y>0&&S+b>this.bottom&&(k=p.x=k+t[p.line].width+c,p.line++,S=p.y=Mt(a,this.top+v+c,this.bottom-t[p.line].height));if(function(e,t,n){if(isNaN(h)||h<=0||isNaN(f)||f<0)return;i.save();const a=Ie(n.lineWidth,1);if(i.fillStyle=Ie(n.fillStyle,o),i.lineCap=Ie(n.lineCap,"butt"),i.lineDashOffset=Ie(n.lineDashOffset,0),i.lineJoin=Ie(n.lineJoin,"miter"),i.lineWidth=a,i.strokeStyle=Ie(n.strokeStyle,o),i.setLineDash(Ie(n.lineDash,[])),r.usePointStyle){const o={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:a},l=s.xPlus(e,h/2);Xt(i,o,l,t+d,r.pointStyleWidth&&h)}else{const r=t+Math.max((u-f)/2,0),o=s.leftForLtr(e,h),l=pn(n.borderRadius);i.beginPath(),Object.values(l).some(e=>0!==e)?rn(i,{x:o,y:r,w:h,h:f,radius:l}):i.rect(o,r,h,f),i.fill(),0!==a&&i.stroke()}i.restore()}(s.x(k),S,x),k=((e,t,n,i)=>e===(i?"left":"right")?n:"center"===e?(t+n)/2:t)(w,k+h+d,g?k+j:this.right,e.rtl),function(e,t,n){an(i,n.text,e,t+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(k),S,x),g)p.x+=j+c;else if("string"!=typeof x.text){const e=l.lineHeight;p.y+=rr(x,e)+c}else p.y+=b}),$n(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,n=fn(t.font),i=hn(t.padding);if(!t.display)return;const a=qn(e.rtl,this.left,this.width),r=this.ctx,o=t.position,s=n.size/2,l=i.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=Mt(e.align,u,this.right-d);else{const t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);c=l+Mt(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const p=Mt(o,u,u+d);r.textAlign=a.textAlign(Nt(o)),r.textBaseline="middle",r.strokeStyle=t.color,r.fillStyle=t.color,r.font=n.string,an(r,t.text,p,c,n)}_computeTitleHeight(){const e=this.options.title,t=fn(e.font),n=hn(e.padding);return e.display?t.lineHeight+n.height:0}_getLegendItemAt(e,t){let n,i,a;if(bt(e,this.left,this.right)&&bt(t,this.top,this.bottom))for(a=this.legendHitBoxes,n=0;n<a.length;++n)if(i=a[n],bt(e,i.left,i.left+i.width)&&bt(t,i.top,i.top+i.height))return this.legendItems[n];return null}handleEvent(e){const t=this.options;if(!function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t))return;const n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const r=this._hoveredItem,o=(a=n,null!==(i=r)&&null!==a&&i.datasetIndex===a.datasetIndex&&i.index===a.index);r&&!o&&Le(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!o&&Le(t.onHover,[e,n,this],this)}else n&&Le(t.onClick,[e,n,this],this);var i,a}}function rr(e,t){return t*(e.text?e.text.length:0)}var or={id:"legend",_element:ar,start(e,t,n){const i=e.legend=new ar({ctx:e.ctx,options:n,chart:e});Fi.configure(e,i,n),Fi.addBox(e,i)},stop(e){Fi.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;Fi.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,a=n.chart;a.isDatasetVisible(i)?(a.hide(i),t.hidden=!0):(a.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:a,color:r,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{const l=e.controller.getStyle(n?0:void 0),c=hn(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:r,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:i||l.pointStyle,rotation:l.rotation,textAlign:a||l.textAlign,borderRadius:o&&(s||l.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const sr={average(e){if(!e.length)return!1;let t,n,i=new Set,a=0,r=0;for(t=0,n=e.length;t<n;++t){const n=e[t].element;if(n&&n.hasValue()){const e=n.tooltipPosition();i.add(e.x),a+=e.y,++r}}if(0===r||0===i.size)return!1;return{x:[...i].reduce((e,t)=>e+t)/i.size,y:a/r}},nearest(e,t){if(!e.length)return!1;let n,i,a,r=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){const i=e[n].element;if(i&&i.hasValue()){const e=ft(t,i.getCenterPoint());e<s&&(s=e,a=i)}}if(a){const e=a.tooltipPosition();r=e.x,o=e.y}return{x:r,y:o}}};function lr(e,t){return t&&(Ae(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function cr(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function ur(e,t){const{element:n,datasetIndex:i,index:a}=t,r=e.getDatasetMeta(i).controller,{label:o,value:s}=r.getLabelAndValue(a);return{chart:e,label:o,parsed:r.getParsed(a),raw:e.data.datasets[i].data[a],formattedValue:s,dataset:r.getDataset(),dataIndex:a,datasetIndex:i,element:n}}function dr(e,t){const n=e.chart.ctx,{body:i,footer:a,title:r}=e,{boxWidth:o,boxHeight:s}=t,l=fn(t.bodyFont),c=fn(t.titleFont),u=fn(t.footerFont),d=r.length,p=a.length,h=i.length,f=hn(t.padding);let m=f.height,g=0,v=i.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),v){m+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-h)*l.lineHeight+(v-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*u.lineHeight+(p-1)*t.footerSpacing);let b=0;const x=function(e){g=Math.max(g,n.measureText(e).width+b)};return n.save(),n.font=c.string,Fe(e.title,x),n.font=l.string,Fe(e.beforeBody.concat(e.afterBody),x),b=t.displayColors?o+2+t.boxPadding:0,Fe(i,e=>{Fe(e.before,x),Fe(e.lines,x),Fe(e.after,x)}),b=0,n.font=u.string,Fe(e.footer,x),n.restore(),g+=f.width,{width:g,height:m}}function pr(e,t,n,i){const{x:a,width:r}=n,{width:o,chartArea:{left:s,right:l}}=e;let c="center";return"center"===i?c=a<=(s+l)/2?"left":"right":a<=r/2?c="left":a>=o-r/2&&(c="right"),function(e,t,n,i){const{x:a,width:r}=i,o=n.caretSize+n.caretPadding;return"left"===e&&a+r+o>t.width||"right"===e&&a-r-o<0||void 0}(c,e,t,n)&&(c="center"),c}function hr(e,t,n){const i=n.yAlign||t.yAlign||function(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||pr(e,t,n,i),yAlign:i}}function fr(e,t,n,i){const{caretSize:a,caretPadding:r,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,c=a+r,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=pn(o);let f=function(e,t){let{x:n,width:i}=e;return"right"===t?n-=i:"center"===t&&(n-=i/2),n}(t,s);const m=function(e,t,n){let{y:i,height:a}=e;return"top"===t?i+=n:i-="bottom"===t?a+n:a/2,i}(t,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,p)+a:"right"===s&&(f+=Math.max(d,h)+a),{x:vt(f,0,i.width-t.width),y:vt(m,0,i.height-t.height)}}function mr(e,t,n){const i=hn(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-i.right:e.x+i.left}function gr(e){return lr([],cr(e))}function vr(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const br={beforeTitle:Oe,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:Oe,beforeBody:Oe,beforeLabel:Oe,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return ze(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Oe,afterBody:Oe,beforeFooter:Oe,footer:Oe,afterFooter:Oe};function xr(e,t,n,i){const a=e[t].call(n,i);return void 0===a?br[t].call(n,i):a}class yr extends ia{static positioners=sr;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&t.options.animation&&n.animations,a=new Jn(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=function(e,t,n){return gn(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,t){const{callbacks:n}=t,i=xr(n,"beforeTitle",this,e),a=xr(n,"title",this,e),r=xr(n,"afterTitle",this,e);let o=[];return o=lr(o,cr(i)),o=lr(o,cr(a)),o=lr(o,cr(r)),o}getBeforeBody(e,t){return gr(xr(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:n}=t,i=[];return Fe(e,e=>{const t={before:[],lines:[],after:[]},a=vr(n,e);lr(t.before,cr(xr(a,"beforeLabel",this,e))),lr(t.lines,xr(a,"label",this,e)),lr(t.after,cr(xr(a,"afterLabel",this,e))),i.push(t)}),i}getAfterBody(e,t){return gr(xr(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:n}=t,i=xr(n,"beforeFooter",this,e),a=xr(n,"footer",this,e),r=xr(n,"afterFooter",this,e);let o=[];return o=lr(o,cr(i)),o=lr(o,cr(a)),o=lr(o,cr(r)),o}_createItems(e){const t=this._active,n=this.chart.data,i=[],a=[],r=[];let o,s,l=[];for(o=0,s=t.length;o<s;++o)l.push(ur(this.chart,t[o]));return e.filter&&(l=l.filter((t,i,a)=>e.filter(t,i,a,n))),e.itemSort&&(l=l.sort((t,i)=>e.itemSort(t,i,n))),Fe(l,t=>{const n=vr(e.callbacks,t);i.push(xr(n,"labelColor",this,t)),a.push(xr(n,"labelPointStyle",this,t)),r.push(xr(n,"labelTextColor",this,t))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=r,this.dataPoints=l,l}update(e,t){const n=this.options.setContext(this.getContext()),i=this._active;let a,r=[];if(i.length){const e=sr[n.position].call(this,i,this._eventPosition);r=this._createItems(n),this.title=this.getTitle(r,n),this.beforeBody=this.getBeforeBody(r,n),this.body=this.getBody(r,n),this.afterBody=this.getAfterBody(r,n),this.footer=this.getFooter(r,n);const t=this._size=dr(this,n),o=Object.assign({},e,t),s=hr(this.chart,n,o),l=fr(n,o,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,a={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(a={opacity:0});this._tooltipItems=r,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,n,i){const a=this.getCaretPosition(e,n,i);t.lineTo(a.x1,a.y1),t.lineTo(a.x2,a.y2),t.lineTo(a.x3,a.y3)}getCaretPosition(e,t,n){const{xAlign:i,yAlign:a}=this,{caretSize:r,cornerRadius:o}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=pn(o),{x:d,y:p}=e,{width:h,height:f}=t;let m,g,v,b,x,y;return"center"===a?(x=p+f/2,"left"===i?(m=d,g=m-r,b=x+r,y=x-r):(m=d+h,g=m+r,b=x-r,y=x+r),v=m):(g="left"===i?d+Math.max(s,c)+r:"right"===i?d+h-Math.max(l,u)-r:this.caretX,"top"===a?(b=p,x=b-r,m=g-r,v=g+r):(b=p+f,x=b+r,m=g+r,v=g-r),y=b),{x1:m,x2:g,x3:v,y1:b,y2:x,y3:y}}drawTitle(e,t,n){const i=this.title,a=i.length;let r,o,s;if(a){const l=qn(n.rtl,this.x,this.width);for(e.x=mr(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",r=fn(n.titleFont),o=n.titleSpacing,t.fillStyle=n.titleColor,t.font=r.string,s=0;s<a;++s)t.fillText(i[s],l.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+o,s+1===a&&(e.y+=n.titleMarginBottom-o)}}_drawColorBox(e,t,n,i,a){const r=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=a,c=fn(a.bodyFont),u=mr(this,"left",a),d=i.x(u),p=s<c.lineHeight?(c.lineHeight-s)/2:0,h=t.y+p;if(a.usePointStyle){const t={radius:Math.min(l,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},n=i.leftForLtr(d,l)+l/2,c=h+s/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,Gt(e,t,n,c),e.strokeStyle=r.borderColor,e.fillStyle=r.backgroundColor,Gt(e,t,n,c)}else{e.lineWidth=Ee(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,e.strokeStyle=r.borderColor,e.setLineDash(r.borderDash||[]),e.lineDashOffset=r.borderDashOffset||0;const t=i.leftForLtr(d,l),n=i.leftForLtr(i.xPlus(d,1),l-2),o=pn(r.borderRadius);Object.values(o).some(e=>0!==e)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,rn(e,{x:t,y:h,w:l,h:s,radius:o}),e.fill(),e.stroke(),e.fillStyle=r.backgroundColor,e.beginPath(),rn(e,{x:n,y:h+1,w:l-2,h:s-2,radius:o}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(t,h,l,s),e.strokeRect(t,h,l,s),e.fillStyle=r.backgroundColor,e.fillRect(n,h+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}drawBody(e,t,n){const{body:i}=this,{bodySpacing:a,bodyAlign:r,displayColors:o,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=fn(n.bodyFont);let d=u.lineHeight,p=0;const h=qn(n.rtl,this.x,this.width),f=function(n){t.fillText(n,h.x(e.x+p),e.y+d/2),e.y+=d+a},m=h.textAlign(r);let g,v,b,x,y,_,w;for(t.textAlign=r,t.textBaseline="middle",t.font=u.string,e.x=mr(this,m,n),t.fillStyle=n.bodyColor,Fe(this.beforeBody,f),p=o&&"right"!==m?"center"===r?l/2+c:l+2+c:0,x=0,_=i.length;x<_;++x){for(g=i[x],v=this.labelTextColors[x],t.fillStyle=v,Fe(g.before,f),b=g.lines,o&&b.length&&(this._drawColorBox(t,e,x,h,n),d=Math.max(u.lineHeight,s)),y=0,w=b.length;y<w;++y)f(b[y]),d=u.lineHeight;Fe(g.after,f)}p=0,d=u.lineHeight,Fe(this.afterBody,f),e.y-=a}drawFooter(e,t,n){const i=this.footer,a=i.length;let r,o;if(a){const s=qn(n.rtl,this.x,this.width);for(e.x=mr(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",r=fn(n.footerFont),t.fillStyle=n.footerColor,t.font=r.string,o=0;o<a;++o)t.fillText(i[o],s.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+n.footerSpacing}}drawBackground(e,t,n,i){const{xAlign:a,yAlign:r}=this,{x:o,y:s}=e,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:p,bottomRight:h}=pn(i.cornerRadius);t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.beginPath(),t.moveTo(o+u,s),"top"===r&&this.drawCaret(e,t,n,i),t.lineTo(o+l-d,s),t.quadraticCurveTo(o+l,s,o+l,s+d),"center"===r&&"right"===a&&this.drawCaret(e,t,n,i),t.lineTo(o+l,s+c-h),t.quadraticCurveTo(o+l,s+c,o+l-h,s+c),"bottom"===r&&this.drawCaret(e,t,n,i),t.lineTo(o+p,s+c),t.quadraticCurveTo(o,s+c,o,s+c-p),"center"===r&&"left"===a&&this.drawCaret(e,t,n,i),t.lineTo(o,s+u),t.quadraticCurveTo(o,s,o+u,s),t.closePath(),t.fill(),i.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,n=this.$animations,i=n&&n.x,a=n&&n.y;if(i||a){const n=sr[e.position].call(this,this._active,this._eventPosition);if(!n)return;const r=this._size=dr(this,e),o=Object.assign({},n,this._size),s=hr(t,e,o),l=fr(e,o,s,t);i._to===l.x&&a._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=r.width,this.height=r.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(t);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const r=hn(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(a,e,i,t),Vn(e,t.textDirection),a.y+=r.top,this.drawTitle(a,e,t),this.drawBody(a,e,t),this.drawFooter(a,e,t),$n(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const n=this._active,i=e.map(({datasetIndex:e,index:t})=>{const n=this.chart.getDatasetMeta(e);if(!n)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:n.data[t],index:t}}),a=!Be(n,i),r=this._positionChanged(i,t);(a||r)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,n=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],r=this._getActiveElements(e,a,t,n),o=this._positionChanged(r,e),s=t||!Be(r,a)||o;return s&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,n,i){const a=this.options;if("mouseout"===e.type)return[];if(!i)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index));const r=this.chart.getElementsAtEventForMode(e,a.mode,a,n);return a.reverse&&r.reverse(),r}_positionChanged(e,t){const{caretX:n,caretY:i,options:a}=this,r=sr[a.position].call(this,e,t);return!1!==r&&(n!==r.x||i!==r.y)}}var _r={id:"tooltip",_element:yr,positioners:sr,afterInit(e,t,n){n&&(e.tooltip=new yr({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:br},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function wr(e,t,n,i){const a=e.indexOf(t);if(-1===a)return((e,t,n,i)=>("string"==typeof t?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n))(e,t,n,i);return a!==e.lastIndexOf(t)?n:a}function jr(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}function kr(e,t){const n=[],{bounds:i,step:a,min:r,max:o,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,p=a||1,h=c-1,{min:f,max:m}=t,g=!ze(r),v=!ze(o),b=!ze(l),x=(m-f)/(u+1);let y,_,w,j,k=ct((m-f)/h/p)*p;if(k<1e-14&&!g&&!v)return[{value:f},{value:m}];j=Math.ceil(m/k)-Math.floor(f/k),j>h&&(k=ct(j*k/h/p)*p),ze(s)||(y=Math.pow(10,s),k=Math.ceil(k*y)/y),"ticks"===i?(_=Math.floor(f/k)*k,w=Math.ceil(m/k)*k):(_=f,w=m),g&&v&&a&&function(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}((o-r)/a,k/1e3)?(j=Math.round(Math.min((o-r)/k,c)),k=(o-r)/j,_=r,w=o):b?(_=g?r:_,w=v?o:w,j=l-1,k=(w-_)/j):(j=(w-_)/k,j=lt(j,Math.round(j),k/1e3)?Math.round(j):Math.ceil(j));const S=Math.max(pt(k),pt(_));y=Math.pow(10,ze(s)?S:s),_=Math.round(_*y)/y,w=Math.round(w*y)/y;let C=0;for(g&&(d&&_!==r?(n.push({value:r}),_<r&&C++,lt(Math.round((_+C*k)*y)/y,r,Sr(r,x,e))&&C++):_<r&&C++);C<j;++C){const e=Math.round((_+C*k)*y)/y;if(v&&e>o)break;n.push({value:e})}return v&&d&&w!==o?n.length&<(n[n.length-1].value,o,Sr(o,x,e))?n[n.length-1].value=o:n.push({value:o}):v&&w!==o||n.push({value:w}),n}function Sr(e,t,{horizontal:n,minRotation:i}){const a=dt(i),r=(n?Math.sin(a):Math.cos(a))||.001,o=.75*t*(""+e).length;return Math.min(t/r,o)}class Cr extends ha{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return ze(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:a}=this;const r=e=>i=t?i:e,o=e=>a=n?a:e;if(e){const e=st(i),t=st(a);e<0&&t<0?o(0):e>0&&t>0&&r(0)}if(i===a){let t=0===a?1:Math.abs(.05*a);o(a+t),e||r(i-t)}this.min=i,this.max=a}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:n,stepSize:i}=e;return i?(t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=kr({maxTicks:n,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&function(e,t,n){let i,a,r;for(i=0,a=e.length;i<a;i++)r=e[i][n],isNaN(r)||(t.min=Math.min(t.min,r),t.max=Math.max(t.max,r))}(i,this,"value"),e.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const e=this.ticks;let t=this.min,n=this.max;if(super.configure(),this.options.offset&&e.length){const i=(n-t)/Math.max(e.length-1,1)/2;t-=i,n+=i}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(e){return Ft(e,this.chart.options.locale,this.options.ticks.format)}}class Nr extends Cr{static id="linear";static defaults={ticks:{callback:Bt.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=Pe(e)?e:0,this.max=Pe(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,n=dt(this.options.ticks.minRotation),i=(e?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,a.lineHeight/i))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const Mr=(e,t=1,n="#666666")=>{const i=getComputedStyle(document.documentElement).getPropertyValue(e).trim();if(!i)return console.warn(`CSS variable ${e} not found, using fallback color: ${n}`),n;if(1===t)return i;if(i.startsWith("#")){const e=i.replace("#","");return`rgba(${parseInt(e.substr(0,2),16)}, ${parseInt(e.substr(2,2),16)}, ${parseInt(e.substr(4,2),16)}, ${t})`}return i.startsWith("rgb")?i.startsWith("rgba")?i.replace(/[\d.]+\)$/,`${t})`):i.replace("rgb","rgba").replace(")",`, ${t})`):i};function Or({id:t,className:n,value:i,size:a="medium",type:r="neutral"}){const o=null!=t?t:H.useId(1,"bee-info-label-")[0],s="bee-label "+("neutral"===r?" bee-info-neutral-label":"valid"===r?" bee-info-valid-label":"error"===r?" bee-error-label":"")+("small"===a?" bee-info-label-small":"medium"===a?" bee-info-label-medium":"large"===a?" bee-info-label-large":" bee-info-label-medium")+(n?" "+n:"");return e.jsx("span",{id:o,className:s,children:i})}$a.register(xi,Ga,_r,or),$a.register(class extends xi{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},Ga,_r,or),$a.register(xi,Ga,_r,or),$a.register(class extends ui{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,n,i){return hi(e,t,n,i)}parseArrayData(e,t,n,i){return hi(e,t,n,i)}parseObjectData(e,t,n,i){const{iScale:a,vScale:r}=e,{xAxisKey:o="x",yAxisKey:s="y"}=this._parsing,l="x"===a.axis?o:s,c="x"===r.axis?o:s,u=[];let d,p,h,f;for(d=n,p=n+i;d<p;++d)f=t[d],h={},h[a.axis]=a.parse(Ke(f,l),d),u.push(pi(Ke(f,c),h,r,d));return u}updateRangeFromParsed(e,t,n,i){super.updateRangeFromParsed(e,t,n,i);const a=n._custom;a&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:n,vScale:i}=t,a=this.getParsed(e),r=a._custom,o=fi(r)?"["+r.start+", "+r.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+n.getLabelForValue(a[n.axis]),value:o}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,n,i){const a="reset"===i,{index:r,_cachedMeta:{vScale:o}}=this,s=o.getBasePixel(),l=o.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(t,i);for(let p=t;p<t+n;p++){const t=this.getParsed(p),n=a||ze(t[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(p),h=this._calculateBarIndexPixels(p,c),f=(t._stacks||{})[o.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||fi(t._custom)||r===f._top||r===f._bottom,x:l?n.head:h.center,y:l?h.center:n.head,height:l?h.size:Math.abs(n.size),width:l?Math.abs(n.size):h.size};d&&(m.options=u||this.resolveDataElementOptions(p,e[p].active?"active":i));const g=m.options||e[p].options;mi(m,g,f,r),bi(m,g,c.ratio),this.updateElement(e[p],p,m,i)}}_getStacks(e,t){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter(e=>e.controller.options.grouped),a=n.options.stacked,r=[],o=this._cachedMeta.controller.getParsed(t),s=o&&o[n.axis],l=e=>{const t=e._parsed.find(e=>e[n.axis]===s),i=t&&t[e.vScale.axis];if(ze(i)||isNaN(i))return!0};for(const n of i)if((void 0===t||!l(n))&&((!1===a||-1===r.indexOf(n.stack)||void 0===a&&void 0===n.stack)&&r.push(n.stack),n.index===e))break;return r.length||r.push(void 0),r}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(n=>e[n].axis===t).shift()}_getAxis(){const e={},t=this.getFirstScaleIdForIndexAxis();for(const n of this.chart.data.datasets)e[Ie("x"===this.chart.options.indexAxis?n.xAxisID:n.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,n){const i=this._getStacks(e,n),a=void 0!==t?i.indexOf(t):-1;return-1===a?i.length-1:a}_getRuler(){const e=this.options,t=this._cachedMeta,n=t.iScale,i=[];let a,r;for(a=0,r=t.data.length;a<r;++a)i.push(n.getPixelForValue(this.getParsed(a)[n.axis],a));const o=e.barThickness;return{min:o||di(t),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:e.grouped,ratio:o?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:n,index:i},options:{base:a,minBarLength:r}}=this,o=a||0,s=this.getParsed(e),l=s._custom,c=fi(l);let u,d,p=s[t.axis],h=0,f=n?this.applyStack(t,s,n):p;f!==p&&(h=f-p,f=p),c&&(p=l.barStart,f=l.barEnd-l.barStart,0!==p&&st(p)!==st(l.barEnd)&&(h=0),h+=p);const m=ze(a)||c?h:a;let g=t.getPixelForValue(m);if(u=this.chart.getDataVisibility(e)?t.getPixelForValue(h+f):g,d=u-g,Math.abs(d)<r){d=function(e,t,n){return 0!==e?st(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(d,t,o)*r,p===o&&(g-=d/2);const e=t.getPixelForDecimal(0),a=t.getPixelForDecimal(1),l=Math.min(e,a),h=Math.max(e,a);g=Math.max(Math.min(g,h),l),u=g+d,n&&!c&&(s._stacks[t.axis]._visualValues[i]=t.getValueForPixel(u)-t.getValueForPixel(g))}if(g===t.getPixelForValue(o)){const e=st(d)*t.getLineWidthForValue(o)/2;g+=e,d-=e}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(e,t){const n=t.scale,i=this.options,a=i.skipNull,r=Ie(i.maxBarThickness,1/0);let o,s;const l=this._getAxisCount();if(t.grouped){const n=a?this._getStackCount(e):t.stackCount,c="flex"===i.barThickness?function(e,t,n,i){const a=t.pixels,r=a[e];let o=e>0?a[e-1]:null,s=e<a.length-1?a[e+1]:null;const l=n.categoryPercentage;null===o&&(o=r-(null===s?t.end-t.start:s-r)),null===s&&(s=r+r-o);const c=r-(r-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/i,ratio:n.barPercentage,start:c}}(e,t,i,n*l):function(e,t,n,i){const a=n.barThickness;let r,o;return ze(a)?(r=t.min*n.categoryPercentage,o=n.barPercentage):(r=a*i,o=1),{chunk:r/i,ratio:o,start:t.pixels[e]-r/2}}(e,t,i,n*l),u="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(Ie(u,this.getFirstScaleIdForIndexAxis())),p=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0)+d;o=c.start+c.chunk*p+c.chunk/2,s=Math.min(r,c.chunk*c.ratio)}else o=n.getPixelForValue(this.getParsed(e)[n.axis],e),s=Math.min(r,t.min*t.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}}draw(){const e=this._cachedMeta,t=e.vScale,n=e.data,i=n.length;let a=0;for(;a<i;++a)null===this.getParsed(a)[t.axis]||n[a].hidden||n[a].draw(this._ctx)}},class extends ha{static id="category";static defaults={ticks:{callback:jr}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:n,label:i}of t)e[n]===i&&e.splice(n,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(ze(e))return null;const n=this.getLabels();return((e,t)=>null===e?null:vt(Math.round(e),0,t))(t=isFinite(t)&&n[t]===e?t:wr(n,e,Ie(t,e),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(n=0),t||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const e=this.min,t=this.max,n=this.options.offset,i=[];let a=this.getLabels();a=0===e&&t===a.length-1?a:a.slice(e,t+1),this._valueRange=Math.max(a.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=e;n<=t;n++)i.push({value:n});return i}getLabelForValue(e){return jr.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}},Nr,class extends ia{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:n,backgroundColor:i}}=this,{inner:a,outer:r}=Qa(this),o=(s=r.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?rn:tr;var s;e.save(),r.w===a.w&&r.h===a.h||(e.beginPath(),o(e,nr(r,t,a)),e.clip(),o(e,nr(a,-t,r)),e.fillStyle=n,e.fill("evenodd")),e.beginPath(),o(e,nr(a,t)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,t,n){return er(this,e,t,n)}inXRange(e,t){return er(this,e,null,t)}inYRange(e,t){return er(this,null,e,t)}getCenterPoint(e){const{x:t,y:n,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],e);return{x:a?(t+i)/2:t,y:a?n:(n+i)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}},_r,or);function Dr({id:t,className:n,label:i,value:a,disabled:r,statusLabel:o,formstate:l="neutral",halfRounded:c,readOnly:u,required:d,placeholder:p,tooltip:h,tooltipOptions:f,onChange:m,onFocusOut:g}){var v;const b=null!==(v=null!=t?t:H.useId(1,"bee-txt-input-")[0])&&void 0!==v?v:"bee-txt-input";let x="";u&&(x=" bee-txt-input-readOnly",r=!0);const y="bee-txt-input "+("valid"===l?" bee-txt-input-valid":"error"===l?" bee-txt-input-error":"neutral"===l?" bee-txt-input-neutral":"none"===l?" bee-cur-input-field-neutral":" bee-txt-input-neutral"),_="p-float-label bee-txt-input-container"+x+(c?" half-rounded":"");return e.jsxs(e.Fragment,{children:[e.jsx("div",{id:b,className:_+(n?" "+n:""),children:u&&!a?e.jsx(zr,{id:b,label:i}):e.jsxs(e.Fragment,{children:[e.jsx(s.InputText,{id:b+"input",value:null!=a?a:void 0,disabled:null!=r&&r,className:y,placeholder:p,tooltip:h,tooltipOptions:f,onChange:e=>function(e){!r&&m&&m(e)}(e),onBlur:e=>function(e){!r&&g&&g(e)}(e)}),i?e.jsxs("label",{htmlFor:b+"input",className:"bee-txt-input-label",children:[i,d&&i?e.jsx("span",{className:"bee-txt-input-label-required",children:e.jsx("span",{className:"bee-txt-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=l&&o?(()=>{const t="medium";return e.jsx("div",{className:"bee-text-input-statusLabel",children:"error"===l&&o?e.jsx(Or,{size:t,value:o,type:"error"}):"valid"===l&&o?e.jsx(Or,{size:t,value:o,type:"valid"}):"neutral"===l&&o?e.jsx(Or,{size:t,value:o,type:"neutral"}):null})})():null]})}function zr({id:t,className:n,label:i,disabled:a}){const r=null!=t?t:H.useId(1,"bee-placeholder-")[0];return e.jsx(Dr,{id:r+"input",label:i,value:" — ",className:null!=n?n:"",disabled:null==a||a,readOnly:!0,formstate:"neutral"})}function Ar({id:t,className:n,value:i,headlineType:a="h1",type:r="primary"}){const o=null!=t?t:H.useId(1,"bee-content-headline-")[0],s="primary"===r?"bee-headline bee-headline-primary":"secondary"===r?"bee-headline bee-headline-secondary":"bee-headline bee-headline-primary"+(n?" "+n:"");return"h1"===a?e.jsx("h1",{id:o,className:s,children:i}):"h2"===a?e.jsx("h2",{id:o,className:s,children:i}):"h3"===a?e.jsx("h3",{id:o,className:s,children:i}):"h4"===a?e.jsx("h4",{id:o,className:s,children:i}):"h5"===a?e.jsx("h5",{id:o,className:s,children:i}):e.jsx("h1",{id:o,className:s,children:i})}function Er({id:t,className:n,value:i,size:a="medium",type:r="primary"}){const o=null!=t?t:H.useId(1,"bee-content-paragraph-")[0],s="bee-content-paragraph"+("xSmall"===a?" bee-content-paragraph-xsmall":"small"===a?" bee-content-paragraph-small":"medium"===a?" bee-content-paragraph-medium":"large"===a?" bee-content-paragraph-large":"xLarge"===a?" bee-content-paragraph-xlarge":" bee-content-paragraph-medium")+("primary"===r?" bee-content-paragraph-primary":"secondary"===r?" bee-content-paragraph-secondary":"")+(n?" "+n:"");return e.jsx("p",{id:o,className:s,children:i})}function Pr({id:t,className:n,label:i,value:a,showArrow:r,autoFocus:o,minFractionDigits:s,maxFractionDigits:l,max:c,min:d,locale:p="de-DE",disabled:h,grouping:f,statusLabel:m,formstate:g="neutral",readOnly:v,required:b,placeholder:x,tooltip:y,tooltipOptions:_,onChange:w,onFocusOut:j}){var k;const S=null!==(k=null!=t?t:H.useId(1,"bee-percent-input")[0])&&void 0!==k?k:"bee-percent-input",C="icon icon-right-arrow "+(a&&a>0?"up-arrow":a&&a<0?"down-arrow":"");let N="";v&&(N=" bee-percent-input-readOnly",h=!0);const M=" bee-percentage-input-container "+(r?" bee-percentage-input-container--showArrow":""),O="bee-percent-input "+("valid"===g?"bee-percent-input-valid":"error"===g?"bee-percent-input-error":"bee-percent-input-neutral")+N;return e.jsxs(e.Fragment,{children:[v&&!a&&0!==a?e.jsx("div",{className:null!=n?n:"",children:e.jsx(zr,{id:S,label:i})}):e.jsxs("div",{className:"flex-grow-0 "+M+(n?" "+n:""),children:[r?e.jsx("i",{className:C}):null,e.jsxs("span",{id:S,className:"p-float-label span-container",children:[e.jsx(u.InputNumber,{id:S+"input",value:null!=a?a:null,disabled:null!=h&&h,mode:"decimal",suffix:"%",autoFocus:o,useGrouping:f,minFractionDigits:s,maxFractionDigits:l,max:c,min:d,locale:p,inputClassName:O,placeholder:x,tooltip:y,tooltipOptions:_,onValueChange:e=>function(e){!h&&w&&w(e)}(e),onBlur:e=>function(e){!h&&j&&j(e)}(e)}),i?e.jsxs("label",{htmlFor:S+"input",className:"bee-percent-input-label",children:[i,b&&i?e.jsx("span",{className:"bee-percent-input-label-required",children:e.jsx("span",{className:"bee-percent-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=g&&m?(()=>{const t="medium";return e.jsx("div",{className:"bee-percent-input-statusLabel",children:"error"===g&&m?e.jsx(Or,{size:t,value:m,type:"error"}):"valid"===g&&m?e.jsx(Or,{size:t,value:m,type:"valid"}):"neutral"===g&&m?e.jsx(Or,{size:t,value:m,type:"neutral"}):null})})():null]})}function Rr({id:t,className:n,label:i,value:a,rows:r,disabled:o,autoResize:s,statusLabel:l,formstate:c="neutral",readOnly:u,required:d,placeholder:p,tooltip:h,tooltipOptions:f,onChange:g,onFocusOut:v}){var b;const x=null!==(b=null!=t?t:H.useId(1,"bee-ta-input-")[0])&&void 0!==b?b:"bee-ta-input";let y="";u&&(y=" bee-ta-input-readOnly",o=!0);const _=("valid"===c?"bee-ta-input-valid":"error"===c?"bee-ta-input-error":"neutral"===c?"bee-ta-input-neutral":"none"===c?" bee-cur-input-field-neutral":"bee-ta-input-neutral")+y;return e.jsxs(e.Fragment,{children:[u&&!a?e.jsx("div",{className:null!=n?n:"",children:e.jsx(zr,{id:x,label:i})}):e.jsxs("span",{id:x,className:"p-float-label bee-ta-input-container"+(n?" "+n:""),children:[e.jsx(e.Fragment,{children:e.jsx(m.InputTextarea,{id:x+"input",value:null!=a?a:void 0,rows:r,disabled:null!=o&&o,autoResize:s,className:_,placeholder:p,tooltip:h,tooltipOptions:f,onChange:e=>function(e){!o&&g&&g(e)}(e),onBlur:e=>function(e){!o&&v&&v(e)}(e)})}),i?e.jsxs("label",{htmlFor:x+"input",className:"bee-ta-input-label",children:[i,d&&i?e.jsx("span",{className:"bee-ta-input-label-required",children:e.jsx("span",{className:"bee-ta-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=c&&l?(()=>{const t="medium";return e.jsx("div",{className:"bee-ta-input-statusLabel",children:"error"===c&&l?e.jsx(Or,{size:t,value:l,type:"error"}):"valid"===c&&l?e.jsx(Or,{size:t,value:l,type:"valid"}):"neutral"===c&&l?e.jsx(Or,{size:t,value:l,type:"neutral"}):null})})():null]})}p.addLocale("de",{firstDayOfWeek:1,dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["Son","Mon","Die","Mit","Don","Fre","Sam"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Löschen"});var Ir,Tr={exports:{}};
|
|
19
|
+
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,i,r){const n=t.listeners[r],a=t.duration;n.forEach(r=>r({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(i-t.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const n=i.items;let a,s=n.length-1,o=!1;for(;s>=0;--s)a=n[s],a._active?(a._total>i.duration&&(i.duration=a._total),a.tick(e),o=!0):(n[s]=n[n.length-1],n.pop());o&&(r.draw(),this._notify(r,i,e,"progress")),n.length||(i.running=!1,this._notify(r,i,e,"complete"),i.initial=!1),t+=n.length}),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let i=t.get(e);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,i)),i}listen(e,t,i){this._getAnims(e).listeners[t].push(i)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const i=t.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var animator=new Animator;const transparent="transparent",interpolators={boolean:(e,t,i)=>i>.5?t:e,color(e,t,i){const r=color(e||transparent),n=r.valid&&color(t||transparent);return n&&n.valid?n.mix(r,i).hexString():t},number:(e,t,i)=>e+(t-e)*i};class Animation{constructor(e,t,i,r){const n=t[i];r=resolve([e.to,r,n,e.from]);const a=resolve([e.from,n,r]);this._active=!0,this._fn=e.fn||interpolators[e.type||typeof a],this._easing=effects[e.easing]||effects.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=i,this._from=a,this._to=r,this._promises=void 0}active(){return this._active}update(e,t,i){if(this._active){this._notify(!1);const r=this._target[this._prop],n=i-this._start,a=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=n,this._loop=!!e.loop,this._to=resolve([e.to,t,r,e.from]),this._from=resolve([e.from,r,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,i=this._duration,r=this._prop,n=this._from,a=this._loop,s=this._to;let o;if(this._active=n!==s&&(a||t<i),!this._active)return this._target[r]=s,void this._notify(!0);t<0?this._target[r]=n:(o=t/i%2,o=a&&o>1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[r]=this._fn(n,s,o))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,i)=>{e.push({res:t,rej:i})})}_notify(e){const t=e?"res":"rej",i=this._promises||[];for(let e=0;e<i.length;e++)i[e][t]()}}class Animations{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!isObject$1(e))return;const t=Object.keys(defaults.animation),i=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{const n=e[r];if(!isObject$1(n))return;const a={};for(const e of t)a[e]=n[e];(isArray(n.properties)&&n.properties||[r]).forEach(e=>{e!==r&&i.has(e)||i.set(e,a)})})}_animateOptions(e,t){const i=t.options,r=resolveTargetOptions(e,i);if(!r)return[];const n=this._createAnimations(r,i);return i.$shared&&awaitAll(e.options.$animations,i).then(()=>{e.options=i},()=>{}),n}_createAnimations(e,t){const i=this._properties,r=[],n=e.$animations||(e.$animations={}),a=Object.keys(t),s=Date.now();let o;for(o=a.length-1;o>=0;--o){const l=a[o];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(e,t));continue}const c=t[l];let h=n[l];const p=i.get(l);if(h){if(p&&h.active()){h.update(p,c,s);continue}h.cancel()}p&&p.duration?(n[l]=h=new Animation(p,e,l,c),r.push(h)):e[l]=c}return r}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const i=this._createAnimations(e,t);return i.length?(animator.add(this._chart,i),!0):void 0}}function awaitAll(e,t){const i=[],r=Object.keys(t);for(let t=0;t<r.length;t++){const n=e[r[t]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}function resolveTargetOptions(e,t){if(!t)return;let i=e.options;if(i)return i.$shared&&(e.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;e.options=t}function scaleClip(e,t){const i=e&&e.options||{},r=i.reverse,n=void 0===i.min?t:0,a=void 0===i.max?t:0;return{start:r?a:n,end:r?n:a}}function defaultClip(e,t,i){if(!1===i)return!1;const r=scaleClip(e,i),n=scaleClip(t,i);return{top:n.end,right:r.end,bottom:n.start,left:r.start}}function toClip(e){let t,i,r,n;return isObject$1(e)?(t=e.top,i=e.right,r=e.bottom,n=e.left):t=i=r=n=e,{top:t,right:i,bottom:r,left:n,disabled:!1===e}}function getSortedDatasetIndices(e,t){const i=[],r=e._getSortedDatasetMetas(t);let n,a;for(n=0,a=r.length;n<a;++n)i.push(r[n].index);return i}function applyStack(e,t,i,r={}){const n=e.keys,a="single"===r.mode;let s,o,l,c;if(null===t)return;let h=!1;for(s=0,o=n.length;s<o;++s){if(l=+n[s],l===i){if(h=!0,r.all)continue;break}c=e.values[l],isNumberFinite(c)&&(a||0===t||sign(t)===sign(c))&&(t+=c)}return h||r.all?t:0}function convertObjectDataToArray(e,t){const{iScale:i,vScale:r}=t,n="x"===i.axis?"x":"y",a="x"===r.axis?"x":"y",s=Object.keys(e),o=new Array(s.length);let l,c,h;for(l=0,c=s.length;l<c;++l)h=s[l],o[l]={[n]:h,[a]:e[h]};return o}function isStacked(e,t){const i=e&&e.options.stacked;return i||void 0===i&&void 0!==t.stack}function getStackKey(e,t,i){return`${e.id}.${t.id}.${i.stack||i.type}`}function getUserBounds(e){const{min:t,max:i,minDefined:r,maxDefined:n}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}function getOrCreateStack(e,t,i){const r=e[t]||(e[t]={});return r[i]||(r[i]={})}function getLastIndexInStack(e,t,i,r){for(const n of t.getMatchingVisibleMetas(r).reverse()){const t=e[n.index];if(i&&t>0||!i&&t<0)return n.index}return null}function updateStacks(e,t){const{chart:i,_cachedMeta:r}=e,n=i._stacks||(i._stacks={}),{iScale:a,vScale:s,index:o}=r,l=a.axis,c=s.axis,h=getStackKey(a,s,r),p=t.length;let u;for(let e=0;e<p;++e){const i=t[e],{[l]:a,[c]:p}=i;u=(i._stacks||(i._stacks={}))[c]=getOrCreateStack(n,h,a),u[o]=p,u._top=getLastIndexInStack(u,s,!0,r.type),u._bottom=getLastIndexInStack(u,s,!1,r.type);(u._visualValues||(u._visualValues={}))[o]=p}}function getFirstScaleId(e,t){const i=e.scales;return Object.keys(i).filter(e=>i[e].axis===t).shift()}function createDatasetContext(e,t){return createContext(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function createDataContext(e,t,i){return createContext(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:i,index:t,mode:"default",type:"data"})}function clearStacks(e,t){const i=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[r]||void 0===t[r][i])return;delete t[r][i],void 0!==t[r]._visualValues&&void 0!==t[r]._visualValues[i]&&delete t[r]._visualValues[i]}}}const isDirectUpdateMode=e=>"reset"===e||"none"===e,cloneIfNotShared=(e,t)=>t?e:Object.assign({},e),createStack=(e,t,i)=>e&&!t.hidden&&t._stacked&&{keys:getSortedDatasetIndices(i,!0),values:null};class DatasetController{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=isStacked(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&clearStacks(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,i=this.getDataset(),r=(e,t,i,r)=>"x"===e?t:"r"===e?r:i,n=t.xAxisID=valueOrDefault(i.xAxisID,getFirstScaleId(e,"x")),a=t.yAxisID=valueOrDefault(i.yAxisID,getFirstScaleId(e,"y")),s=t.rAxisID=valueOrDefault(i.rAxisID,getFirstScaleId(e,"r")),o=t.indexAxis,l=t.iAxisID=r(o,n,a,s),c=t.vAxisID=r(o,a,n,s);t.xScale=this.getScaleForId(n),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(s),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&unlistenArrayEvents(this._data,this),e._stacked&&clearStacks(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),i=this._data;if(isObject$1(t)){const e=this._cachedMeta;this._data=convertObjectDataToArray(t,e)}else if(i!==t){if(i){unlistenArrayEvents(i,this);const e=this._cachedMeta;clearStacks(e),e._parsed=[]}t&&Object.isExtensible(t)&&listenArrayEvents(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const n=t._stacked;t._stacked=isStacked(t.vScale,t),t.stack!==i.stack&&(r=!0,clearStacks(t),t.stack=i.stack),this._resyncElements(e),(r||n!==t._stacked)&&(updateStacks(this,t._parsed),t._stacked=isStacked(t.vScale,t))}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),i=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:i,_data:r}=this,{iScale:n,_stacked:a}=i,s=n.axis;let o,l,c,h=0===e&&t===r.length||i._sorted,p=e>0&&i._parsed[e-1];if(!1===this._parsing)i._parsed=r,i._sorted=!0,c=r;else{c=isArray(r[e])?this.parseArrayData(i,r,e,t):isObject$1(r[e])?this.parseObjectData(i,r,e,t):this.parsePrimitiveData(i,r,e,t);const n=()=>null===l[s]||p&&l[s]<p[s];for(o=0;o<t;++o)i._parsed[o+e]=l=c[o],h&&(n()&&(h=!1),p=l);i._sorted=h}a&&updateStacks(this,c)}parsePrimitiveData(e,t,i,r){const{iScale:n,vScale:a}=e,s=n.axis,o=a.axis,l=n.getLabels(),c=n===a,h=new Array(r);let p,u,d;for(p=0,u=r;p<u;++p)d=p+i,h[p]={[s]:c||n.parse(l[d],d),[o]:a.parse(t[d],d)};return h}parseArrayData(e,t,i,r){const{xScale:n,yScale:a}=e,s=new Array(r);let o,l,c,h;for(o=0,l=r;o<l;++o)c=o+i,h=t[c],s[o]={x:n.parse(h[0],c),y:a.parse(h[1],c)};return s}parseObjectData(e,t,i,r){const{xScale:n,yScale:a}=e,{xAxisKey:s="x",yAxisKey:o="y"}=this._parsing,l=new Array(r);let c,h,p,u;for(c=0,h=r;c<h;++c)p=c+i,u=t[p],l[c]={x:n.parse(resolveObjectKey(u,s),p),y:a.parse(resolveObjectKey(u,o),p)};return l}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,i){const r=this.chart,n=this._cachedMeta,a=t[e.axis];return applyStack({keys:getSortedDatasetIndices(r,!0),values:t._stacks[e.axis]._visualValues},a,n.index,{mode:i})}updateRangeFromParsed(e,t,i,r){const n=i[t.axis];let a=null===n?NaN:n;const s=r&&i._stacks[t.axis];r&&s&&(r.values=s,a=applyStack(r,n,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}getMinMax(e,t){const i=this._cachedMeta,r=i._parsed,n=i._sorted&&e===i.iScale,a=r.length,s=this._getOtherScale(e),o=createStack(t,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=getUserBounds(s);let p,u;function d(){u=r[p];const t=u[s.axis];return!isNumberFinite(u[e.axis])||c>t||h<t}for(p=0;p<a&&(d()||(this.updateRangeFromParsed(l,e,u,o),!n));++p);if(n)for(p=a-1;p>=0;--p)if(!d()){this.updateRangeFromParsed(l,e,u,o);break}return l}getAllParsedValues(e){const t=this._cachedMeta._parsed,i=[];let r,n,a;for(r=0,n=t.length;r<n;++r)a=t[r][e.axis],isNumberFinite(a)&&i.push(a);return i}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,i=t.iScale,r=t.vScale,n=this.getParsed(e);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:r?""+r.getLabelForValue(n[r.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=toClip(valueOrDefault(this.options.clip,defaultClip(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,i=this._cachedMeta,r=i.data||[],n=t.chartArea,a=[],s=this._drawStart||0,o=this._drawCount||r.length-s,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(e,n,s,o),c=s;c<s+o;++c){const t=r[c];t.hidden||(t.active&&l?a.push(t):t.draw(e,n))}for(c=0;c<a.length;++c)a[c].draw(e,n)}getStyle(e,t){const i=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(e||0,i)}getContext(e,t,i){const r=this.getDataset();let n;if(e>=0&&e<this._cachedMeta.data.length){const t=this._cachedMeta.data[e];n=t.$context||(t.$context=createDataContext(this.getContext(),e,t)),n.parsed=this.getParsed(e),n.raw=r.data[e],n.index=n.dataIndex=e}else n=this.$context||(this.$context=createDatasetContext(this.chart.getContext(),this.index)),n.dataset=r,n.index=n.datasetIndex=this.index;return n.active=!!t,n.mode=i,n}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",i){const r="active"===t,n=this._cachedDataOpts,a=e+"-"+t,s=n[a],o=this.enableOptionSharing&&defined(i);if(s)return cloneIfNotShared(s,o);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,e),h=r?[`${e}Hover`,"hover",e,""]:[e,""],p=l.getOptionScopes(this.getDataset(),c),u=Object.keys(defaults.elements[e]),d=l.resolveNamedOptions(p,u,()=>this.getContext(i,r,t),h);return d.$shared&&(d.$shared=o,n[a]=Object.freeze(cloneIfNotShared(d,o))),d}_resolveAnimations(e,t,i){const r=this.chart,n=this._cachedDataOpts,a=`animation-${t}`,s=n[a];if(s)return s;let o;if(!1!==r.options.animation){const r=this.chart.config,n=r.datasetAnimationScopeKeys(this._type,t),a=r.getOptionScopes(this.getDataset(),n);o=r.createResolver(a,this.getContext(e,i,t))}const l=new Animations(r,o&&o.animations);return o&&o._cacheable&&(n[a]=Object.freeze(l)),l}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||isDirectUpdateMode(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const i=this.resolveDataElementOptions(e,t),r=this._sharedOptions,n=this.getSharedOptions(i),a=this.includeOptions(t,n)||n!==r;return this.updateSharedOptions(n,t,i),{sharedOptions:n,includeOptions:a}}updateElement(e,t,i,r){isDirectUpdateMode(r)?Object.assign(e,i):this._resolveAnimations(t,r).update(e,i)}updateSharedOptions(e,t,i){e&&!isDirectUpdateMode(t)&&this._resolveAnimations(void 0,t).update(e,i)}_setStyle(e,t,i,r){e.active=r;const n=this.getStyle(t,r);this._resolveAnimations(t,i,r).update(e,{options:!r&&this.getSharedOptions(n)||n})}removeHoverStyle(e,t,i){this._setStyle(e,i,"active",!1)}setHoverStyle(e,t,i){this._setStyle(e,i,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,i=this._cachedMeta.data;for(const[e,t,i]of this._syncList)this[e](t,i);this._syncList=[];const r=i.length,n=t.length,a=Math.min(n,r);a&&this.parse(0,a),n>r?this._insertElements(r,n-r,e):n<r&&this._removeElements(n,r-n)}_insertElements(e,t,i=!0){const r=this._cachedMeta,n=r.data,a=e+t;let s;const o=e=>{for(e.length+=t,s=e.length-1;s>=a;s--)e[s]=e[s-t]};for(o(n),s=e;s<a;++s)n[s]=new this.dataElementType;this._parsing&&o(r._parsed),this.parse(e,t),i&&this.updateElements(n,e,t,"reset")}updateElements(e,t,i,r){}_removeElements(e,t){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(e,t);i._stacked&&clearStacks(i,r)}i.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,i,r]=e;this[t](i,r)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const i=arguments.length-2;i&&this._sync(["_insertElements",e,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function getAllScaleValues(e,t){if(!e._cache.$bar){const i=e.getMatchingVisibleMetas(t);let r=[];for(let t=0,n=i.length;t<n;t++)r=r.concat(i[t].controller.getAllParsedValues(e));e._cache.$bar=_arrayUnique(r.sort((e,t)=>e-t))}return e._cache.$bar}function computeMinSampleSize(e){const t=e.iScale,i=getAllScaleValues(t,e.type);let r,n,a,s,o=t._length;const l=()=>{32767!==a&&-32768!==a&&(defined(s)&&(o=Math.min(o,Math.abs(a-s)||o)),s=a)};for(r=0,n=i.length;r<n;++r)a=t.getPixelForValue(i[r]),l();for(s=void 0,r=0,n=t.ticks.length;r<n;++r)a=t.getPixelForTick(r),l();return o}function computeFitCategoryTraits(e,t,i,r){const n=i.barThickness;let a,s;return isNullOrUndef(n)?(a=t.min*i.categoryPercentage,s=i.barPercentage):(a=n*r,s=1),{chunk:a/r,ratio:s,start:t.pixels[e]-a/2}}function computeFlexCategoryTraits(e,t,i,r){const n=t.pixels,a=n[e];let s=e>0?n[e-1]:null,o=e<n.length-1?n[e+1]:null;const l=i.categoryPercentage;null===s&&(s=a-(null===o?t.end-t.start:o-a)),null===o&&(o=a+a-s);const c=a-(a-Math.min(s,o))/2*l;return{chunk:Math.abs(o-s)/2*l/r,ratio:i.barPercentage,start:c}}function parseFloatBar(e,t,i,r){const n=i.parse(e[0],r),a=i.parse(e[1],r),s=Math.min(n,a),o=Math.max(n,a);let l=s,c=o;Math.abs(s)>Math.abs(o)&&(l=o,c=s),t[i.axis]=c,t._custom={barStart:l,barEnd:c,start:n,end:a,min:s,max:o}}function parseValue(e,t,i,r){return isArray(e)?parseFloatBar(e,t,i,r):t[i.axis]=i.parse(e,r),t}function parseArrayOrPrimitive(e,t,i,r){const n=e.iScale,a=e.vScale,s=n.getLabels(),o=n===a,l=[];let c,h,p,u;for(c=i,h=i+r;c<h;++c)u=t[c],p={},p[n.axis]=o||n.parse(s[c],c),l.push(parseValue(u,p,a,c));return l}function isFloatBar(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function barSign(e,t,i){return 0!==e?sign(e):(t.isHorizontal()?1:-1)*(t.min>=i?1:-1)}function borderProps(e){let t,i,r,n,a;return e.horizontal?(t=e.base>e.x,i="left",r="right"):(t=e.base<e.y,i="bottom",r="top"),t?(n="end",a="start"):(n="start",a="end"),{start:i,end:r,reverse:t,top:n,bottom:a}}function setBorderSkipped(e,t,i,r){let n=t.borderSkipped;const a={};if(!n)return void(e.borderSkipped=a);if(!0===n)return void(e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:o,reverse:l,top:c,bottom:h}=borderProps(e);"middle"===n&&i&&(e.enableBorderRadius=!0,(i._top||0)===r?n=c:(i._bottom||0)===r?n=h:(a[parseEdge(h,s,o,l)]=!0,n=c)),a[parseEdge(n,s,o,l)]=!0,e.borderSkipped=a}function parseEdge(e,t,i,r){return e=r?startEnd(e=swap(e,t,i),i,t):startEnd(e,t,i)}function swap(e,t,i){return e===t?i:e===i?t:e}function startEnd(e,t,i){return"start"===e?t:"end"===e?i:e}function setInflateAmount(e,{inflateAmount:t},i){e.inflateAmount="auto"===t?1===i?.33:0:t}class BarController extends DatasetController{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,i,r){return parseArrayOrPrimitive(e,t,i,r)}parseArrayData(e,t,i,r){return parseArrayOrPrimitive(e,t,i,r)}parseObjectData(e,t,i,r){const{iScale:n,vScale:a}=e,{xAxisKey:s="x",yAxisKey:o="y"}=this._parsing,l="x"===n.axis?s:o,c="x"===a.axis?s:o,h=[];let p,u,d,f;for(p=i,u=i+r;p<u;++p)f=t[p],d={},d[n.axis]=n.parse(resolveObjectKey(f,l),p),h.push(parseValue(resolveObjectKey(f,c),d,a,p));return h}updateRangeFromParsed(e,t,i,r){super.updateRangeFromParsed(e,t,i,r);const n=i._custom;n&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,n.min),e.max=Math.max(e.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:i,vScale:r}=t,n=this.getParsed(e),a=n._custom,s=isFloatBar(a)?"["+a.start+", "+a.end+"]":""+r.getLabelForValue(n[r.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,i,r){const n="reset"===r,{index:a,_cachedMeta:{vScale:s}}=this,o=s.getBasePixel(),l=s.isHorizontal(),c=this._getRuler(),{sharedOptions:h,includeOptions:p}=this._getSharedOptions(t,r);for(let u=t;u<t+i;u++){const t=this.getParsed(u),i=n||isNullOrUndef(t[s.axis])?{base:o,head:o}:this._calculateBarValuePixels(u),d=this._calculateBarIndexPixels(u,c),f=(t._stacks||{})[s.axis],m={horizontal:l,base:i.base,enableBorderRadius:!f||isFloatBar(t._custom)||a===f._top||a===f._bottom,x:l?i.head:d.center,y:l?d.center:i.head,height:l?d.size:Math.abs(i.size),width:l?Math.abs(i.size):d.size};p&&(m.options=h||this.resolveDataElementOptions(u,e[u].active?"active":r));const g=m.options||e[u].options;setBorderSkipped(m,g,f,a),setInflateAmount(m,g,c.ratio),this.updateElement(e[u],u,m,r)}}_getStacks(e,t){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(e=>e.controller.options.grouped),n=i.options.stacked,a=[],s=this._cachedMeta.controller.getParsed(t),o=s&&s[i.axis],l=e=>{const t=e._parsed.find(e=>e[i.axis]===o),r=t&&t[e.vScale.axis];if(isNullOrUndef(r)||isNaN(r))return!0};for(const i of r)if((void 0===t||!l(i))&&((!1===n||-1===a.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&a.push(i.stack),i.index===e))break;return a.length||a.push(void 0),a}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,t=this.chart.options.indexAxis;return Object.keys(e).filter(i=>e[i].axis===t).shift()}_getAxis(){const e={},t=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)e[valueOrDefault("x"===this.chart.options.indexAxis?i.xAxisID:i.yAxisID,t)]=!0;return Object.keys(e)}_getStackIndex(e,t,i){const r=this._getStacks(e,i),n=void 0!==t?r.indexOf(t):-1;return-1===n?r.length-1:n}_getRuler(){const e=this.options,t=this._cachedMeta,i=t.iScale,r=[];let n,a;for(n=0,a=t.data.length;n<a;++n)r.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const s=e.barThickness;return{min:s||computeMinSampleSize(t),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:e.grouped,ratio:s?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:i,index:r},options:{base:n,minBarLength:a}}=this,s=n||0,o=this.getParsed(e),l=o._custom,c=isFloatBar(l);let h,p,u=o[t.axis],d=0,f=i?this.applyStack(t,o,i):u;f!==u&&(d=f-u,f=u),c&&(u=l.barStart,f=l.barEnd-l.barStart,0!==u&&sign(u)!==sign(l.barEnd)&&(d=0),d+=u);const m=isNullOrUndef(n)||c?d:n;let g=t.getPixelForValue(m);if(h=this.chart.getDataVisibility(e)?t.getPixelForValue(d+f):g,p=h-g,Math.abs(p)<a){p=barSign(p,t,s)*a,u===s&&(g-=p/2);const e=t.getPixelForDecimal(0),n=t.getPixelForDecimal(1),l=Math.min(e,n),d=Math.max(e,n);g=Math.max(Math.min(g,d),l),h=g+p,i&&!c&&(o._stacks[t.axis]._visualValues[r]=t.getValueForPixel(h)-t.getValueForPixel(g))}if(g===t.getPixelForValue(s)){const e=sign(p)*t.getLineWidthForValue(s)/2;g+=e,p-=e}return{size:p,base:g,head:h,center:h+p/2}}_calculateBarIndexPixels(e,t){const i=t.scale,r=this.options,n=r.skipNull,a=valueOrDefault(r.maxBarThickness,1/0);let s,o;const l=this._getAxisCount();if(t.grouped){const i=n?this._getStackCount(e):t.stackCount,c="flex"===r.barThickness?computeFlexCategoryTraits(e,t,r,i*l):computeFitCategoryTraits(e,t,r,i*l),h="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,p=this._getAxis().indexOf(valueOrDefault(h,this.getFirstScaleIdForIndexAxis())),u=this._getStackIndex(this.index,this._cachedMeta.stack,n?e:void 0)+p;s=c.start+c.chunk*u+c.chunk/2,o=Math.min(a,c.chunk*c.ratio)}else s=i.getPixelForValue(this.getParsed(e)[i.axis],e),o=Math.min(a,t.min*t.ratio);return{base:s-o/2,head:s+o/2,center:s,size:o}}draw(){const e=this._cachedMeta,t=e.vScale,i=e.data,r=i.length;let n=0;for(;n<r;++n)null===this.getParsed(n)[t.axis]||i[n].hidden||i[n].draw(this._ctx)}}function getRatioAndOffset(e,t,i){let r=1,n=1,a=0,s=0;if(t<TAU){const o=e,l=o+t,c=Math.cos(o),h=Math.sin(o),p=Math.cos(l),u=Math.sin(l),d=(e,t,r)=>_angleBetween(e,o,l,!0)?1:Math.max(t,t*i,r,r*i),f=(e,t,r)=>_angleBetween(e,o,l,!0)?-1:Math.min(t,t*i,r,r*i),m=d(0,c,p),g=d(HALF_PI,h,u),v=f(PI,c,p),y=f(PI+HALF_PI,h,u);r=(m-v)/2,n=(g-y)/2,a=-(m+v)/2,s=-(g+y)/2}return{ratioX:r,ratioY:n,offsetX:a,offsetY:s}}class DoughnutController extends DatasetController{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>"spacing"!==e,_indexable:e=>"spacing"!==e&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data,{labels:{pointStyle:i,textAlign:r,color:n,useBorderRadius:a,borderRadius:s}}=e.legend.options;return t.labels.length&&t.datasets.length?t.labels.map((t,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:t,fillStyle:l.backgroundColor,fontColor:n,hidden:!e.getDataVisibility(o),lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:l.borderWidth,strokeStyle:l.borderColor,textAlign:r,pointStyle:i,borderRadius:a&&(s||l.borderRadius),index:o}}):[]}},onClick(e,t,i){i.chart.toggleDataVisibility(t.index),i.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const i=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=i;else{let n,a,s=e=>+i[e];if(isObject$1(i[e])){const{key:e="value"}=this._parsing;s=t=>+resolveObjectKey(i[t],e)}for(n=e,a=e+t;n<a;++n)r._parsed[n]=s(n)}}_getRotation(){return toRadians(this.options.rotation-90)}_getCircumference(){return toRadians(this.options.circumference)}_getRotationExtents(){let e=TAU,t=-TAU;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const r=this.chart.getDatasetMeta(i).controller,n=r._getRotation(),a=r._getCircumference();e=Math.min(e,n),t=Math.max(t,n+a)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:i}=t,r=this._cachedMeta,n=r.data,a=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,s=Math.max((Math.min(i.width,i.height)-a)/2,0),o=Math.min(toPercentage(this.options.cutout,s),1),l=this._getRingWeight(this.index),{circumference:c,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:u,offsetX:d,offsetY:f}=getRatioAndOffset(h,c,o),m=(i.width-a)/p,g=(i.height-a)/u,v=Math.max(Math.min(m,g)/2,0),y=toDimension(this.options.radius,v),b=(y-Math.max(y*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=d*y,this.offsetY=f*y,r.total=this.calculateTotal(),this.outerRadius=y-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*l,0),this.updateElements(n,0,n.length,e)}_circumference(e,t){const i=this.options,r=this._cachedMeta,n=this._getCircumference();return t&&i.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*n/TAU)}updateElements(e,t,i,r){const n="reset"===r,a=this.chart,s=a.chartArea,o=a.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,h=n&&o.animateScale,p=h?0:this.innerRadius,u=h?0:this.outerRadius,{sharedOptions:d,includeOptions:f}=this._getSharedOptions(t,r);let m,g=this._getRotation();for(m=0;m<t;++m)g+=this._circumference(m,n);for(m=t;m<t+i;++m){const t=this._circumference(m,n),i=e[m],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+t,circumference:t,outerRadius:u,innerRadius:p};f&&(a.options=d||this.resolveDataElementOptions(m,i.active?"active":r)),g+=t,this.updateElement(i,m,a,r)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let i,r=0;for(i=0;i<t.length;i++){const n=e._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||t[i].hidden||(r+=Math.abs(n))}return r}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?TAU*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,i=this.chart,r=i.data.labels||[],n=formatNumber(t._parsed[e],i.options.locale);return{label:r[e]||"",value:n}}getMaxBorderWidth(e){let t=0;const i=this.chart;let r,n,a,s,o;if(!e)for(r=0,n=i.data.datasets.length;r<n;++r)if(i.isDatasetVisible(r)){a=i.getDatasetMeta(r),e=a.data,s=a.controller;break}if(!e)return 0;for(r=0,n=e.length;r<n;++r)o=s.resolveDataElementOptions(r),"inner"!==o.borderAlign&&(t=Math.max(t,o.borderWidth||0,o.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let i=0,r=e.length;i<r;++i){const e=this.resolveDataElementOptions(i);t=Math.max(t,e.offset||0,e.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let i=0;i<e;++i)this.chart.isDatasetVisible(i)&&(t+=this._getRingWeight(i));return t}_getRingWeight(e){return Math.max(valueOrDefault(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class PieController extends DoughnutController{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}function abstract(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class DateAdapterBase{static override(e){Object.assign(DateAdapterBase.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return abstract()}parse(){return abstract()}format(){return abstract()}add(){return abstract()}diff(){return abstract()}startOf(){return abstract()}endOf(){return abstract()}}var adapters={_date:DateAdapterBase};function binarySearch(e,t,i,r){const{controller:n,data:a,_sorted:s}=e,o=n._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(o&&t===o.axis&&"r"!==t&&s&&a.length){const s=o._reversePixels?_rlookupByKey:_lookupByKey;if(!r){const r=s(a,t,i);if(l){const{vScale:t}=n._cachedMeta,{_parsed:i}=e,a=i.slice(0,r.lo+1).reverse().findIndex(e=>!isNullOrUndef(e[t.axis]));r.lo-=Math.max(0,a);const s=i.slice(r.hi).findIndex(e=>!isNullOrUndef(e[t.axis]));r.hi+=Math.max(0,s)}return r}if(n._sharedOptions){const e=a[0],r="function"==typeof e.getRange&&e.getRange(t);if(r){const e=s(a,t,i-r),n=s(a,t,i+r);return{lo:e.lo,hi:n.hi}}}}return{lo:0,hi:a.length-1}}function evaluateInteractionItems(e,t,i,r,n){const a=e.getSortedVisibleDatasetMetas(),s=i[t];for(let e=0,i=a.length;e<i;++e){const{index:i,data:o}=a[e],{lo:l,hi:c}=binarySearch(a[e],t,s,n);for(let e=l;e<=c;++e){const t=o[e];t.skip||r(t,i,e)}}}function getDistanceMetricForAxis(e){const t=-1!==e.indexOf("x"),i=-1!==e.indexOf("y");return function(e,r){const n=t?Math.abs(e.x-r.x):0,a=i?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(a,2))}}function getIntersectItems(e,t,i,r,n){const a=[];if(!n&&!e.isPointInArea(t))return a;return evaluateInteractionItems(e,i,t,function(i,s,o){(n||_isPointInArea(i,e.chartArea,0))&&i.inRange(t.x,t.y,r)&&a.push({element:i,datasetIndex:s,index:o})},!0),a}function getNearestRadialItems(e,t,i,r){let n=[];return evaluateInteractionItems(e,i,t,function(e,i,a){const{startAngle:s,endAngle:o}=e.getProps(["startAngle","endAngle"],r),{angle:l}=getAngleFromPoint(e,{x:t.x,y:t.y});_angleBetween(l,s,o)&&n.push({element:e,datasetIndex:i,index:a})}),n}function getNearestCartesianItems(e,t,i,r,n,a){let s=[];const o=getDistanceMetricForAxis(i);let l=Number.POSITIVE_INFINITY;return evaluateInteractionItems(e,i,t,function(i,c,h){const p=i.inRange(t.x,t.y,n);if(r&&!p)return;const u=i.getCenterPoint(n);if(!(!!a||e.isPointInArea(u))&&!p)return;const d=o(t,u);d<l?(s=[{element:i,datasetIndex:c,index:h}],l=d):d===l&&s.push({element:i,datasetIndex:c,index:h})}),s}function getNearestItems(e,t,i,r,n,a){return a||e.isPointInArea(t)?"r"!==i||r?getNearestCartesianItems(e,t,i,r,n,a):getNearestRadialItems(e,t,i,n):[]}function getAxisItems(e,t,i,r,n){const a=[],s="x"===i?"inXRange":"inYRange";let o=!1;return evaluateInteractionItems(e,i,t,(e,r,l)=>{e[s]&&e[s](t[i],n)&&(a.push({element:e,datasetIndex:r,index:l}),o=o||e.inRange(t.x,t.y,n))}),r&&!o?[]:a}var Interaction={modes:{index(e,t,i,r){const n=getRelativePosition(t,e),a=i.axis||"x",s=i.includeInvisible||!1,o=i.intersect?getIntersectItems(e,n,a,r,s):getNearestItems(e,n,a,!1,r,s),l=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const t=o[0].index,i=e.data[t];i&&!i.skip&&l.push({element:i,datasetIndex:e.index,index:t})}),l):[]},dataset(e,t,i,r){const n=getRelativePosition(t,e),a=i.axis||"xy",s=i.includeInvisible||!1;let o=i.intersect?getIntersectItems(e,n,a,r,s):getNearestItems(e,n,a,!1,r,s);if(o.length>0){const t=o[0].datasetIndex,i=e.getDatasetMeta(t).data;o=[];for(let e=0;e<i.length;++e)o.push({element:i[e],datasetIndex:t,index:e})}return o},point:(e,t,i,r)=>getIntersectItems(e,getRelativePosition(t,e),i.axis||"xy",r,i.includeInvisible||!1),nearest(e,t,i,r){const n=getRelativePosition(t,e),a=i.axis||"xy",s=i.includeInvisible||!1;return getNearestItems(e,n,a,i.intersect,r,s)},x:(e,t,i,r)=>getAxisItems(e,getRelativePosition(t,e),"x",i.intersect,r),y:(e,t,i,r)=>getAxisItems(e,getRelativePosition(t,e),"y",i.intersect,r)}};const STATIC_POSITIONS=["left","top","right","bottom"];function filterByPosition(e,t){return e.filter(e=>e.pos===t)}function filterDynamicPositionByAxis(e,t){return e.filter(e=>-1===STATIC_POSITIONS.indexOf(e.pos)&&e.box.axis===t)}function sortByWeight(e,t){return e.sort((e,i)=>{const r=t?i:e,n=t?e:i;return r.weight===n.weight?r.index-n.index:r.weight-n.weight})}function wrapBoxes(e){const t=[];let i,r,n,a,s,o;for(i=0,r=(e||[]).length;i<r;++i)n=e[i],({position:a,options:{stack:s,stackWeight:o=1}}=n),t.push({index:i,box:n,pos:a,horizontal:n.isHorizontal(),weight:n.weight,stack:s&&a+s,stackWeight:o});return t}function buildStacks(e){const t={};for(const i of e){const{stack:e,pos:r,stackWeight:n}=i;if(!e||!STATIC_POSITIONS.includes(r))continue;const a=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=n}return t}function setLayoutDims(e,t){const i=buildStacks(e),{vBoxMaxWidth:r,hBoxMaxHeight:n}=t;let a,s,o;for(a=0,s=e.length;a<s;++a){o=e[a];const{fullSize:s}=o.box,l=i[o.stack],c=l&&o.stackWeight/l.weight;o.horizontal?(o.width=c?c*r:s&&t.availableWidth,o.height=n):(o.width=r,o.height=c?c*n:s&&t.availableHeight)}return i}function buildLayoutBoxes(e){const t=wrapBoxes(e),i=sortByWeight(t.filter(e=>e.box.fullSize),!0),r=sortByWeight(filterByPosition(t,"left"),!0),n=sortByWeight(filterByPosition(t,"right")),a=sortByWeight(filterByPosition(t,"top"),!0),s=sortByWeight(filterByPosition(t,"bottom")),o=filterDynamicPositionByAxis(t,"x"),l=filterDynamicPositionByAxis(t,"y");return{fullSize:i,leftAndTop:r.concat(a),rightAndBottom:n.concat(l).concat(s).concat(o),chartArea:filterByPosition(t,"chartArea"),vertical:r.concat(n).concat(l),horizontal:a.concat(s).concat(o)}}function getCombinedMax(e,t,i,r){return Math.max(e[i],t[i])+Math.max(e[r],t[r])}function updateMaxPadding(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function updateDims(e,t,i,r){const{pos:n,box:a}=i,s=e.maxPadding;if(!isObject$1(n)){i.size&&(e[n]-=i.size);const t=r[i.stack]||{size:0,count:1};t.size=Math.max(t.size,i.horizontal?a.height:a.width),i.size=t.size/t.count,e[n]+=i.size}a.getPadding&&updateMaxPadding(s,a.getPadding());const o=Math.max(0,t.outerWidth-getCombinedMax(s,e,"left","right")),l=Math.max(0,t.outerHeight-getCombinedMax(s,e,"top","bottom")),c=o!==e.w,h=l!==e.h;return e.w=o,e.h=l,i.horizontal?{same:c,other:h}:{same:h,other:c}}function handleMaxPadding(e){const t=e.maxPadding;function i(i){const r=Math.max(t[i]-e[i],0);return e[i]+=r,r}e.y+=i("top"),e.x+=i("left"),i("right"),i("bottom")}function getMargins(e,t){const i=t.maxPadding;function r(e){const r={left:0,top:0,right:0,bottom:0};return e.forEach(e=>{r[e]=Math.max(t[e],i[e])}),r}return r(e?["left","right"]:["top","bottom"])}function fitBoxes(e,t,i,r){const n=[];let a,s,o,l,c,h;for(a=0,s=e.length,c=0;a<s;++a){o=e[a],l=o.box,l.update(o.width||t.w,o.height||t.h,getMargins(o.horizontal,t));const{same:s,other:p}=updateDims(t,i,o,r);c|=s&&n.length,h=h||p,l.fullSize||n.push(o)}return c&&fitBoxes(n,t,i,r)||h}function setBoxDims(e,t,i,r,n){e.top=i,e.left=t,e.right=t+r,e.bottom=i+n,e.width=r,e.height=n}function placeBoxes(e,t,i,r){const n=i.padding;let{x:a,y:s}=t;for(const o of e){const e=o.box,l=r[o.stack]||{placed:0,weight:1},c=o.stackWeight/l.weight||1;if(o.horizontal){const r=t.w*c,a=l.size||e.height;defined(l.start)&&(s=l.start),e.fullSize?setBoxDims(e,n.left,s,i.outerWidth-n.right-n.left,a):setBoxDims(e,t.left+l.placed,s,r,a),l.start=s,l.placed+=r,s=e.bottom}else{const r=t.h*c,s=l.size||e.width;defined(l.start)&&(a=l.start),e.fullSize?setBoxDims(e,a,n.top,s,i.outerHeight-n.bottom-n.top):setBoxDims(e,a,t.top+l.placed,s,r),l.start=a,l.placed+=r,a=e.right}}t.x=a,t.y=s}var layouts={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},e.boxes.push(t)},removeBox(e,t){const i=e.boxes?e.boxes.indexOf(t):-1;-1!==i&&e.boxes.splice(i,1)},configure(e,t,i){t.fullSize=i.fullSize,t.position=i.position,t.weight=i.weight},update(e,t,i,r){if(!e)return;const n=toPadding(e.options.layout.padding),a=Math.max(t-n.width,0),s=Math.max(i-n.height,0),o=buildLayoutBoxes(e.boxes),l=o.vertical,c=o.horizontal;each(e.boxes,e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()});const h=l.reduce((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1,0)||1,p=Object.freeze({outerWidth:t,outerHeight:i,padding:n,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/h,hBoxMaxHeight:s/2}),u=Object.assign({},n);updateMaxPadding(u,toPadding(r));const d=Object.assign({maxPadding:u,w:a,h:s,x:n.left,y:n.top},n),f=setLayoutDims(l.concat(c),p);fitBoxes(o.fullSize,d,p,f),fitBoxes(l,d,p,f),fitBoxes(c,d,p,f)&&fitBoxes(l,d,p,f),handleMaxPadding(d),placeBoxes(o.leftAndTop,d,p,f),d.x+=d.w,d.y+=d.h,placeBoxes(o.rightAndBottom,d,p,f),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},each(o.chartArea,t=>{const i=t.box;Object.assign(i,e.chartArea),i.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})})}};class BasePlatform{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,i){}removeEventListener(e,t,i){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,i,r){return t=Math.max(0,t||e.width),i=i||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):i)}}isAttached(e){return!0}updateConfig(e){}}class BasicPlatform extends BasePlatform{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const EXPANDO_KEY="$chartjs",EVENT_TYPES={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},isNullOrEmpty=e=>null===e||""===e;function initCanvas(e,t){const i=e.style,r=e.getAttribute("height"),n=e.getAttribute("width");if(e[EXPANDO_KEY]={initial:{height:r,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",isNullOrEmpty(n)){const t=readUsedSize(e,"width");void 0!==t&&(e.width=t)}if(isNullOrEmpty(r))if(""===e.style.height)e.height=e.width/(t||2);else{const t=readUsedSize(e,"height");void 0!==t&&(e.height=t)}return e}const eventListenerOptions=!!supportsEventListenerOptions&&{passive:!0};function addListener(e,t,i){e&&e.addEventListener(t,i,eventListenerOptions)}function removeListener(e,t,i){e&&e.canvas&&e.canvas.removeEventListener(t,i,eventListenerOptions)}function fromNativeEvent(e,t){const i=EVENT_TYPES[e.type]||e.type,{x:r,y:n}=getRelativePosition(e,t);return{type:i,chart:t,native:e,x:void 0!==r?r:null,y:void 0!==n?n:null}}function nodeListContains(e,t){for(const i of e)if(i===t||i.contains(t))return!0}function createAttachObserver(e,t,i){const r=e.canvas,n=new MutationObserver(e=>{let t=!1;for(const i of e)t=t||nodeListContains(i.addedNodes,r),t=t&&!nodeListContains(i.removedNodes,r);t&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}function createDetachObserver(e,t,i){const r=e.canvas,n=new MutationObserver(e=>{let t=!1;for(const i of e)t=t||nodeListContains(i.removedNodes,r),t=t&&!nodeListContains(i.addedNodes,r);t&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}const drpListeningCharts=new Map;let oldDevicePixelRatio=0;function onWindowResize(){const e=window.devicePixelRatio;e!==oldDevicePixelRatio&&(oldDevicePixelRatio=e,drpListeningCharts.forEach((t,i)=>{i.currentDevicePixelRatio!==e&&t()}))}function listenDevicePixelRatioChanges(e,t){drpListeningCharts.size||window.addEventListener("resize",onWindowResize),drpListeningCharts.set(e,t)}function unlistenDevicePixelRatioChanges(e){drpListeningCharts.delete(e),drpListeningCharts.size||window.removeEventListener("resize",onWindowResize)}function createResizeObserver(e,t,i){const r=e.canvas,n=r&&_getParentNode(r);if(!n)return;const a=throttled((e,t)=>{const r=n.clientWidth;i(e,t),r<n.clientWidth&&i()},window),s=new ResizeObserver(e=>{const t=e[0],i=t.contentRect.width,r=t.contentRect.height;0===i&&0===r||a(i,r)});return s.observe(n),listenDevicePixelRatioChanges(e,a),s}function releaseObserver(e,t,i){i&&i.disconnect(),"resize"===t&&unlistenDevicePixelRatioChanges(e)}function createProxyAndListen(e,t,i){const r=e.canvas,n=throttled(t=>{null!==e.ctx&&i(fromNativeEvent(t,e))},e);return addListener(r,t,n),n}class DomPlatform extends BasePlatform{acquireContext(e,t){const i=e&&e.getContext&&e.getContext("2d");return i&&i.canvas===e?(initCanvas(e,t),i):null}releaseContext(e){const t=e.canvas;if(!t[EXPANDO_KEY])return!1;const i=t[EXPANDO_KEY].initial;["height","width"].forEach(e=>{const r=i[e];isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)});const r=i.style||{};return Object.keys(r).forEach(e=>{t.style[e]=r[e]}),t.width=t.width,delete t[EXPANDO_KEY],!0}addEventListener(e,t,i){this.removeEventListener(e,t);const r=e.$proxies||(e.$proxies={}),n={attach:createAttachObserver,detach:createDetachObserver,resize:createResizeObserver}[t]||createProxyAndListen;r[t]=n(e,t,i)}removeEventListener(e,t){const i=e.$proxies||(e.$proxies={}),r=i[t];if(!r)return;({attach:releaseObserver,detach:releaseObserver,resize:releaseObserver}[t]||removeListener)(e,t,r),i[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,i,r){return getMaximumSize(e,t,i,r)}isAttached(e){const t=e&&_getParentNode(e);return!(!t||!t.isConnected)}}function _detectPlatform(e){return!_isDomSupported()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?BasicPlatform:DomPlatform}class Element{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:i}=this.getProps(["x","y"],e);return{x:t,y:i}}hasValue(){return isNumber(this.x)&&isNumber(this.y)}getProps(e,t){const i=this.$animations;if(!t||!i)return this;const r={};return e.forEach(e=>{r[e]=i[e]&&i[e].active()?i[e]._to:this[e]}),r}}function autoSkip(e,t){const i=e.options.ticks,r=determineMaxTicks(e),n=Math.min(i.maxTicksLimit||r,r),a=i.major.enabled?getMajorIndices(t):[],s=a.length,o=a[0],l=a[s-1],c=[];if(s>n)return skipMajors(t,c,a,s/n),c;const h=calculateSpacing(a,t,n);if(s>0){let e,i;const r=s>1?Math.round((l-o)/(s-1)):null;for(skip(t,c,h,isNullOrUndef(r)?0:o-r,o),e=0,i=s-1;e<i;e++)skip(t,c,h,a[e],a[e+1]);return skip(t,c,h,l,isNullOrUndef(r)?t.length:l+r),c}return skip(t,c,h),c}function determineMaxTicks(e){const t=e.options.offset,i=e._tickSize(),r=e._length/i+(t?0:1),n=e._maxLength/i;return Math.floor(Math.min(r,n))}function calculateSpacing(e,t,i){const r=getEvenSpacing(e),n=t.length/i;if(!r)return Math.max(n,1);const a=_factorize(r);for(let e=0,t=a.length-1;e<t;e++){const t=a[e];if(t>n)return t}return Math.max(n,1)}function getMajorIndices(e){const t=[];let i,r;for(i=0,r=e.length;i<r;i++)e[i].major&&t.push(i);return t}function skipMajors(e,t,i,r){let n,a=0,s=i[0];for(r=Math.ceil(r),n=0;n<e.length;n++)n===s&&(t.push(e[n]),a++,s=i[a*r])}function skip(e,t,i,r,n){const a=valueOrDefault(r,0),s=Math.min(valueOrDefault(n,e.length),e.length);let o,l,c,h=0;for(i=Math.ceil(i),n&&(o=n-r,i=o/Math.floor(o/i)),c=a;c<0;)h++,c=Math.round(a+h*i);for(l=Math.max(a,0);l<s;l++)l===c&&(t.push(e[l]),h++,c=Math.round(a+h*i))}function getEvenSpacing(e){const t=e.length;let i,r;if(t<2)return!1;for(r=e[0],i=1;i<t;++i)if(e[i]-e[i-1]!==r)return!1;return r}const reverseAlign=e=>"left"===e?"right":"right"===e?"left":e,offsetFromEdge=(e,t,i)=>"top"===t||"left"===t?e[t]+i:e[t]-i,getTicksLimit=(e,t)=>Math.min(t||e,e);function sample(e,t){const i=[],r=e.length/t,n=e.length;let a=0;for(;a<n;a+=r)i.push(e[Math.floor(a)]);return i}function getPixelForGridLine(e,t,i){const r=e.ticks.length,n=Math.min(t,r-1),a=e._startPixel,s=e._endPixel,o=1e-6;let l,c=e.getPixelForTick(n);if(!(i&&(l=1===r?Math.max(c-a,s-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(n-1))/2,c+=n<t?l:-l,c<a-o||c>s+o)))return c}function garbageCollect(e,t){each(e,e=>{const i=e.gc,r=i.length/2;let n;if(r>t){for(n=0;n<r;++n)delete e.data[i[n]];i.splice(0,r)}})}function getTickMarkLength(e){return e.drawTicks?e.tickLength:0}function getTitleHeight(e,t){if(!e.display)return 0;const i=toFont(e.font,t),r=toPadding(e.padding);return(isArray(e.text)?e.text.length:1)*i.lineHeight+r.height}function createScaleContext(e,t){return createContext(e,{scale:t,type:"scale"})}function createTickContext(e,t,i){return createContext(e,{tick:i,index:t,type:"tick"})}function titleAlign(e,t,i){let r=_toLeftRightCenter(e);return(i&&"right"!==t||!i&&"right"===t)&&(r=reverseAlign(r)),r}function titleArgs(e,t,i,r){const{top:n,left:a,bottom:s,right:o,chart:l}=e,{chartArea:c,scales:h}=l;let p,u,d,f=0;const m=s-n,g=o-a;if(e.isHorizontal()){if(u=_alignStartEnd(r,a,o),isObject$1(i)){const e=Object.keys(i)[0],r=i[e];d=h[e].getPixelForValue(r)+m-t}else d="center"===i?(c.bottom+c.top)/2+m-t:offsetFromEdge(e,i,t);p=o-a}else{if(isObject$1(i)){const e=Object.keys(i)[0],r=i[e];u=h[e].getPixelForValue(r)-g+t}else u="center"===i?(c.left+c.right)/2-g+t:offsetFromEdge(e,i,t);d=_alignStartEnd(r,s,n),f="left"===i?-HALF_PI:HALF_PI}return{titleX:u,titleY:d,maxWidth:p,rotation:f}}class Scale extends Element{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:i,_suggestedMax:r}=this;return e=finiteOrDefault(e,Number.POSITIVE_INFINITY),t=finiteOrDefault(t,Number.NEGATIVE_INFINITY),i=finiteOrDefault(i,Number.POSITIVE_INFINITY),r=finiteOrDefault(r,Number.NEGATIVE_INFINITY),{min:finiteOrDefault(e,i),max:finiteOrDefault(t,r),minDefined:isNumberFinite(e),maxDefined:isNumberFinite(t)}}getMinMax(e){let t,{min:i,max:r,minDefined:n,maxDefined:a}=this.getUserBounds();if(n&&a)return{min:i,max:r};const s=this.getMatchingVisibleMetas();for(let o=0,l=s.length;o<l;++o)t=s[o].controller.getMinMax(this,e),n||(i=Math.min(i,t.min)),a||(r=Math.max(r,t.max));return i=a&&i>r?r:i,r=n&&i>r?i:r,{min:finiteOrDefault(i,finiteOrDefault(r,i)),max:finiteOrDefault(r,finiteOrDefault(i,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){callback(this.options.beforeUpdate,[this])}update(e,t,i){const{beginAtZero:r,grace:n,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_addGrace(this,n,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=s<this.ticks.length;this._convertTicksToLabels(o?sample(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=autoSkip(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),o&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,t,i=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,i=!i),this._startPixel=e,this._endPixel=t,this._reversePixels=i,this._length=t-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){callback(this.options.afterUpdate,[this])}beforeSetDimensions(){callback(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){callback(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),callback(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){callback(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let i,r,n;for(i=0,r=e.length;i<r;i++)n=e[i],n.label=callback(t.callback,[n.value,i,e],this)}afterTickToLabelConversion(){callback(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){callback(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,i=getTicksLimit(this.ticks.length,e.ticks.maxTicksLimit),r=t.minRotation||0,n=t.maxRotation;let a,s,o,l=r;if(!this._isVisible()||!t.display||r>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),h=c.widest.width,p=c.highest.height,u=_limitValue(this.chart.width-h,0,this.maxWidth);a=e.offset?this.maxWidth/i:u/(i-1),h+6>a&&(a=u/(i-(e.offset?.5:1)),s=this.maxHeight-getTickMarkLength(e.grid)-t.padding-getTitleHeight(e.title,this.chart.options.font),o=Math.sqrt(h*h+p*p),l=toDegrees(Math.min(Math.asin(_limitValue((c.highest.height+6)/a,-1,1)),Math.asin(_limitValue(s/o,-1,1))-Math.asin(_limitValue(p/o,-1,1)))),l=Math.max(r,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){callback(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){callback(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:i,title:r,grid:n}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const a=getTitleHeight(r,t.options.font);if(s?(e.width=this.maxWidth,e.height=getTickMarkLength(n)+a):(e.height=this.maxHeight,e.width=getTickMarkLength(n)+a),i.display&&this.ticks.length){const{first:t,last:r,widest:n,highest:a}=this._getLabelSizes(),o=2*i.padding,l=toRadians(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(s){const t=i.mirror?0:h*n.width+c*a.height;e.height=Math.min(this.maxHeight,e.height+t+o)}else{const t=i.mirror?0:c*n.width+h*a.height;e.width=Math.min(this.maxWidth,e.width+t+o)}this._calculatePadding(t,r,h,c)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,i,r){const{ticks:{align:n,padding:a},position:s}=this.options,o=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,p=0;o?l?(h=r*e.width,p=i*t.height):(h=i*e.height,p=r*t.width):"start"===n?p=t.width:"end"===n?h=e.width:"inner"!==n&&(h=e.width/2,p=t.width/2),this.paddingLeft=Math.max((h-s+a)*this.width/(this.width-s),0),this.paddingRight=Math.max((p-c+a)*this.width/(this.width-c),0)}else{let i=t.height/2,r=e.height/2;"start"===n?(i=0,r=e.height):"end"===n&&(i=t.height,r=0),this.paddingTop=i+a,this.paddingBottom=r+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){callback(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,i=e.length;t<i;t++)isNullOrUndef(e[t].label)&&(e.splice(t,1),i--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let i=this.ticks;t<i.length&&(i=sample(i,t)),this._labelSizes=e=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,i){const{ctx:r,_longestTextCache:n}=this,a=[],s=[],o=Math.floor(t/getTicksLimit(t,i));let l,c,h,p,u,d,f,m,g,v,y,b=0,x=0;for(l=0;l<t;l+=o){if(p=e[l].label,u=this._resolveTickFontOptions(l),r.font=d=u.string,f=n[d]=n[d]||{data:{},gc:[]},m=u.lineHeight,g=v=0,isNullOrUndef(p)||isArray(p)){if(isArray(p))for(c=0,h=p.length;c<h;++c)y=p[c],isNullOrUndef(y)||isArray(y)||(g=_measureText(r,f.data,f.gc,g,y),v+=m)}else g=_measureText(r,f.data,f.gc,g,p),v=m;a.push(g),s.push(v),b=Math.max(g,b),x=Math.max(v,x)}garbageCollect(n,t);const _=a.indexOf(b),S=s.indexOf(x),w=e=>({width:a[e]||0,height:s[e]||0});return{first:w(0),last:w(t-1),widest:w(_),highest:w(S),widths:a,heights:s}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return _int16Range(this._alignToPixels?_alignPixel(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const i=t[e];return i.$context||(i.$context=createTickContext(this.getContext(),e,i))}return this.$context||(this.$context=createScaleContext(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,t=toRadians(this.labelRotation),i=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),n=this._getLabelSizes(),a=e.autoSkipPadding||0,s=n?n.widest.width+a:0,o=n?n.highest.height+a:0;return this.isHorizontal()?o*i>s*r?s/i:o/r:o*r<s*i?o/i:s/r}_isVisible(){const e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,i=this.chart,r=this.options,{grid:n,position:a,border:s}=r,o=n.offset,l=this.isHorizontal(),c=this.ticks.length+(o?1:0),h=getTickMarkLength(n),p=[],u=s.setContext(this.getContext()),d=u.display?u.width:0,f=d/2,m=function(e){return _alignPixel(i,e,d)};let g,v,y,b,x,_,S,w,C,P,E,k;if("top"===a)g=m(this.bottom),_=this.bottom-h,w=g-f,P=m(e.top)+f,k=e.bottom;else if("bottom"===a)g=m(this.top),P=e.top,k=m(e.bottom)-f,_=g+f,w=this.top+h;else if("left"===a)g=m(this.right),x=this.right-h,S=g-f,C=m(e.left)+f,E=e.right;else if("right"===a)g=m(this.left),C=e.left,E=m(e.right)-f,x=g+f,S=this.left+h;else if("x"===t){if("center"===a)g=m((e.top+e.bottom)/2+.5);else if(isObject$1(a)){const e=Object.keys(a)[0],t=a[e];g=m(this.chart.scales[e].getPixelForValue(t))}P=e.top,k=e.bottom,_=g+f,w=_+h}else if("y"===t){if("center"===a)g=m((e.left+e.right)/2);else if(isObject$1(a)){const e=Object.keys(a)[0],t=a[e];g=m(this.chart.scales[e].getPixelForValue(t))}x=g-f,S=x-h,C=e.left,E=e.right}const $=valueOrDefault(r.ticks.maxTicksLimit,c),A=Math.max(1,Math.ceil(c/$));for(v=0;v<c;v+=A){const e=this.getContext(v),t=n.setContext(e),r=s.setContext(e),a=t.lineWidth,c=t.color,h=r.dash||[],u=r.dashOffset,d=t.tickWidth,f=t.tickColor,m=t.tickBorderDash||[],g=t.tickBorderDashOffset;y=getPixelForGridLine(this,v,o),void 0!==y&&(b=_alignPixel(i,y,a),l?x=S=C=E=b:_=w=P=k=b,p.push({tx1:x,ty1:_,tx2:S,ty2:w,x1:C,y1:P,x2:E,y2:k,width:a,color:c,borderDash:h,borderDashOffset:u,tickWidth:d,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,p}_computeLabelItems(e){const t=this.axis,i=this.options,{position:r,ticks:n}=i,a=this.isHorizontal(),s=this.ticks,{align:o,crossAlign:l,padding:c,mirror:h}=n,p=getTickMarkLength(i.grid),u=p+c,d=h?-c:u,f=-toRadians(this.labelRotation),m=[];let g,v,y,b,x,_,S,w,C,P,E,k,$="middle";if("top"===r)_=this.bottom-d,S=this._getXAxisLabelAlignment();else if("bottom"===r)_=this.top+d,S=this._getXAxisLabelAlignment();else if("left"===r){const e=this._getYAxisLabelAlignment(p);S=e.textAlign,x=e.x}else if("right"===r){const e=this._getYAxisLabelAlignment(p);S=e.textAlign,x=e.x}else if("x"===t){if("center"===r)_=(e.top+e.bottom)/2+u;else if(isObject$1(r)){const e=Object.keys(r)[0],t=r[e];_=this.chart.scales[e].getPixelForValue(t)+u}S=this._getXAxisLabelAlignment()}else if("y"===t){if("center"===r)x=(e.left+e.right)/2-u;else if(isObject$1(r)){const e=Object.keys(r)[0],t=r[e];x=this.chart.scales[e].getPixelForValue(t)}S=this._getYAxisLabelAlignment(p).textAlign}"y"===t&&("start"===o?$="top":"end"===o&&($="bottom"));const A=this._getLabelSizes();for(g=0,v=s.length;g<v;++g){y=s[g],b=y.label;const e=n.setContext(this.getContext(g));w=this.getPixelForTick(g)+n.labelOffset,C=this._resolveTickFontOptions(g),P=C.lineHeight,E=isArray(b)?b.length:1;const t=E/2,i=e.color,o=e.textStrokeColor,c=e.textStrokeWidth;let p,u=S;if(a?(x=w,"inner"===S&&(u=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),k="top"===r?"near"===l||0!==f?-E*P+P/2:"center"===l?-A.highest.height/2-t*P+P:-A.highest.height+P/2:"near"===l||0!==f?P/2:"center"===l?A.highest.height/2-t*P:A.highest.height-E*P,h&&(k*=-1),0===f||e.showLabelBackdrop||(x+=P/2*Math.sin(f))):(_=w,k=(1-E)*P/2),e.showLabelBackdrop){const t=toPadding(e.backdropPadding),i=A.heights[g],r=A.widths[g];let n=k-t.top,a=0-t.left;switch($){case"middle":n-=i/2;break;case"bottom":n-=i}switch(S){case"center":a-=r/2;break;case"right":a-=r;break;case"inner":g===v-1?a-=r:g>0&&(a-=r/2)}p={left:a,top:n,width:r+t.width,height:i+t.height,color:e.backdropColor}}m.push({label:b,font:C,textOffset:k,options:{rotation:f,color:i,strokeColor:o,strokeWidth:c,textAlign:u,textBaseline:$,translation:[x,_],backdrop:p}})}return m}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-toRadians(this.labelRotation))return"top"===e?"left":"right";let i="center";return"start"===t.align?i="left":"end"===t.align?i="right":"inner"===t.align&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:i,mirror:r,padding:n}}=this.options,a=e+n,s=this._getLabelSizes().widest.width;let o,l;return"left"===t?r?(l=this.right+n,"near"===i?o="left":"center"===i?(o="center",l+=s/2):(o="right",l+=s)):(l=this.right-a,"near"===i?o="right":"center"===i?(o="center",l-=s/2):(o="left",l=this.left)):"right"===t?r?(l=this.left+n,"near"===i?o="right":"center"===i?(o="center",l-=s/2):(o="left",l-=s)):(l=this.left+a,"near"===i?o="left":"center"===i?(o="center",l+=s/2):(o="right",l=this.right)):o="right",{textAlign:o,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:i,top:r,width:n,height:a}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(i,r,n,a),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const i=this.ticks.findIndex(t=>t.value===e);if(i>=0){return t.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let n,a;const s=(e,t,r)=>{r.width&&r.color&&(i.save(),i.lineWidth=r.width,i.strokeStyle=r.color,i.setLineDash(r.borderDash||[]),i.lineDashOffset=r.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(t.display)for(n=0,a=r.length;n<a;++n){const e=r[n];t.drawOnChartArea&&s({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},e),t.drawTicks&&s({x:e.tx1,y:e.ty1},{x:e.tx2,y:e.ty2},{color:e.tickColor,width:e.tickWidth,borderDash:e.tickBorderDash,borderDashOffset:e.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:i,grid:r}}=this,n=i.setContext(this.getContext()),a=i.display?n.width:0;if(!a)return;const s=r.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let l,c,h,p;this.isHorizontal()?(l=_alignPixel(e,this.left,a)-a/2,c=_alignPixel(e,this.right,s)+s/2,h=p=o):(h=_alignPixel(e,this.top,a)-a/2,p=_alignPixel(e,this.bottom,s)+s/2,l=c=o),t.save(),t.lineWidth=n.width,t.strokeStyle=n.color,t.beginPath(),t.moveTo(l,h),t.lineTo(c,p),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const t=this.ctx,i=this._computeLabelArea();i&&clipArea(t,i);const r=this.getLabelItems(e);for(const e of r){const i=e.options,r=e.font;renderText(t,e.label,0,e.textOffset,r,i)}i&&unclipArea(t)}drawTitle(){const{ctx:e,options:{position:t,title:i,reverse:r}}=this;if(!i.display)return;const n=toFont(i.font),a=toPadding(i.padding),s=i.align;let o=n.lineHeight/2;"bottom"===t||"center"===t||isObject$1(t)?(o+=a.bottom,isArray(i.text)&&(o+=n.lineHeight*(i.text.length-1))):o+=a.top;const{titleX:l,titleY:c,maxWidth:h,rotation:p}=titleArgs(this,o,t,s);renderText(e,i.text,0,0,n,{color:i.color,maxWidth:h,rotation:p,textAlign:titleAlign(s,t,r),textBaseline:"middle",translation:[l,c]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,i=valueOrDefault(e.grid&&e.grid.z,-1),r=valueOrDefault(e.border&&e.border.z,0);return this._isVisible()&&this.draw===Scale.prototype.draw?[{z:i,draw:e=>{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let n,a;for(n=0,a=t.length;n<a;++n){const a=t[n];a[i]!==this.id||e&&a.type!==e||r.push(a)}return r}_resolveTickFontOptions(e){return toFont(this.options.ticks.setContext(this.getContext(e)).font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class TypedRegistry{constructor(e,t,i){this.type=e,this.scope=t,this.override=i,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let i;isIChartComponent(t)&&(i=this.register(t));const r=this.items,n=e.id,a=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+e);return n in r||(r[n]=e,registerDefaults(e,a,i),this.override&&defaults.override(e.id,e.overrides)),a}get(e){return this.items[e]}unregister(e){const t=this.items,i=e.id,r=this.scope;i in t&&delete t[i],r&&i in defaults[r]&&(delete defaults[r][i],this.override&&delete overrides[i])}}function registerDefaults(e,t,i){const r=merge(Object.create(null),[i?defaults.get(i):{},defaults.get(t),e.defaults]);defaults.set(t,r),e.defaultRoutes&&routeDefaults(t,e.defaultRoutes),e.descriptors&&defaults.describe(t,e.descriptors)}function routeDefaults(e,t){Object.keys(t).forEach(i=>{const r=i.split("."),n=r.pop(),a=[e].concat(r).join("."),s=t[i].split("."),o=s.pop(),l=s.join(".");defaults.route(a,n,l,o)})}function isIChartComponent(e){return"id"in e&&"defaults"in e}class Registry{constructor(){this.controllers=new TypedRegistry(DatasetController,"datasets",!0),this.elements=new TypedRegistry(Element,"elements"),this.plugins=new TypedRegistry(Object,"plugins"),this.scales=new TypedRegistry(Scale,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,i){[...t].forEach(t=>{const r=i||this._getRegistryForType(t);i||r.isForType(t)||r===this.plugins&&t.id?this._exec(e,r,t):each(t,t=>{const r=i||this._getRegistryForType(t);this._exec(e,r,t)})})}_exec(e,t,i){const r=_capitalize(e);callback(i["before"+r],[],i),t[e](i),callback(i["after"+r],[],i)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const i=this._typedRegistries[t];if(i.isForType(e))return i}return this.plugins}_get(e,t,i){const r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+i+".");return r}}var registry=new Registry;class PluginService{constructor(){this._init=void 0}notify(e,t,i,r){if("beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),void 0===this._init)return;const n=r?this._descriptors(e).filter(r):this._descriptors(e),a=this._notify(n,e,t,i);return"afterDestroy"===t&&(this._notify(n,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),a}_notify(e,t,i,r){r=r||{};for(const n of e){const e=n.plugin;if(!1===callback(e[i],[t,r,n.options],e)&&r.cancelable)return!1}return!0}invalidate(){isNullOrUndef(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const i=e&&e.config,r=valueOrDefault(i.options&&i.options.plugins,{}),n=allPlugins(i);return!1!==r||t?createDescriptors(e,n,r,t):[]}_notifyStateChanges(e){const t=this._oldCache||[],i=this._cache,r=(e,t)=>e.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(r(t,i),e,"stop"),this._notify(r(i,t),e,"start")}}function allPlugins(e){const t={},i=[],r=Object.keys(registry.plugins.items);for(let e=0;e<r.length;e++)i.push(registry.getPlugin(r[e]));const n=e.plugins||[];for(let e=0;e<n.length;e++){const r=n[e];-1===i.indexOf(r)&&(i.push(r),t[r.id]=!0)}return{plugins:i,localIds:t}}function getOpts(e,t){return t||!1!==e?!0===e?{}:e:null}function createDescriptors(e,{plugins:t,localIds:i},r,n){const a=[],s=e.getContext();for(const o of t){const t=o.id,l=getOpts(r[t],n);null!==l&&a.push({plugin:o,options:pluginOpts(e.config,{plugin:o,local:i[t]},l,s)})}return a}function pluginOpts(e,{plugin:t,local:i},r,n){const a=e.pluginScopeKeys(t),s=e.getOptionScopes(r,a);return i&&t.defaults&&s.push(t.defaults),e.createResolver(s,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function getIndexAxis(e,t){const i=defaults.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||i.indexAxis||"x"}function getAxisFromDefaultScaleID(e,t){let i=e;return"_index_"===e?i=t:"_value_"===e&&(i="x"===t?"y":"x"),i}function getDefaultScaleIDFromAxis(e,t){return e===t?"_index_":"_value_"}function idMatchesAxis(e){if("x"===e||"y"===e||"r"===e)return e}function axisFromPosition(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}function determineAxis(e,...t){if(idMatchesAxis(e))return e;for(const i of t){const t=i.axis||axisFromPosition(i.position)||e.length>1&&idMatchesAxis(e[0].toLowerCase());if(t)return t}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function getAxisFromDataset(e,t,i){if(i[t+"AxisID"]===e)return{axis:t}}function retrieveAxisFromDatasets(e,t){if(t.data&&t.data.datasets){const i=t.data.datasets.filter(t=>t.xAxisID===e||t.yAxisID===e);if(i.length)return getAxisFromDataset(e,"x",i[0])||getAxisFromDataset(e,"y",i[0])}return{}}function mergeScaleConfig(e,t){const i=overrides[e.type]||{scales:{}},r=t.scales||{},n=getIndexAxis(e.type,t),a=Object.create(null);return Object.keys(r).forEach(t=>{const s=r[t];if(!isObject$1(s))return console.error(`Invalid scale configuration for scale: ${t}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const o=determineAxis(t,s,retrieveAxisFromDatasets(t,e),defaults.scales[s.type]),l=getDefaultScaleIDFromAxis(o,n),c=i.scales||{};a[t]=mergeIf(Object.create(null),[{axis:o},s,c[o],c[l]])}),e.data.datasets.forEach(i=>{const n=i.type||e.type,s=i.indexAxis||getIndexAxis(n,t),o=(overrides[n]||{}).scales||{};Object.keys(o).forEach(e=>{const t=getAxisFromDefaultScaleID(e,s),n=i[t+"AxisID"]||t;a[n]=a[n]||Object.create(null),mergeIf(a[n],[{axis:t},r[n],o[e]])})}),Object.keys(a).forEach(e=>{const t=a[e];mergeIf(t,[defaults.scales[t.type],defaults.scale])}),a}function initOptions(e){const t=e.options||(e.options={});t.plugins=valueOrDefault(t.plugins,{}),t.scales=mergeScaleConfig(e,t)}function initData(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}function initConfig(e){return(e=e||{}).data=initData(e.data),initOptions(e),e}const keyCache=new Map,keysCached=new Set;function cachedKeys(e,t){let i=keyCache.get(e);return i||(i=t(),keyCache.set(e,i),keysCached.add(i)),i}const addIfFound=(e,t,i)=>{const r=resolveObjectKey(t,i);void 0!==r&&e.add(r)};class Config{constructor(e){this._config=initConfig(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=initData(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),initOptions(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return cachedKeys(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return cachedKeys(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return cachedKeys(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}pluginScopeKeys(e){const t=e.id;return cachedKeys(`${this.type}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const i=this._scopeCache;let r=i.get(e);return r&&!t||(r=new Map,i.set(e,r)),r}getOptionScopes(e,t,i){const{options:r,type:n}=this,a=this._cachedScopes(e,i),s=a.get(t);if(s)return s;const o=new Set;t.forEach(t=>{e&&(o.add(e),t.forEach(t=>addIfFound(o,e,t))),t.forEach(e=>addIfFound(o,r,e)),t.forEach(e=>addIfFound(o,overrides[n]||{},e)),t.forEach(e=>addIfFound(o,defaults,e)),t.forEach(e=>addIfFound(o,descriptors,e))});const l=Array.from(o);return 0===l.length&&l.push(Object.create(null)),keysCached.has(t)&&a.set(t,l),l}chartOptionScopes(){const{options:e,type:t}=this;return[e,overrides[t]||{},defaults.datasets[t]||{},{type:t},defaults,descriptors]}resolveNamedOptions(e,t,i,r=[""]){const n={$shared:!0},{resolver:a,subPrefixes:s}=getResolver(this._resolverCache,e,r);let o=a;if(needContext(a,t)){n.$shared=!1;o=_attachContext(a,i=isFunction(i)?i():i,this.createResolver(e,i,s))}for(const e of t)n[e]=o[e];return n}createResolver(e,t,i=[""],r){const{resolver:n}=getResolver(this._resolverCache,e,i);return isObject$1(t)?_attachContext(n,t,void 0,r):n}}function getResolver(e,t,i){let r=e.get(t);r||(r=new Map,e.set(t,r));const n=i.join();let a=r.get(n);if(!a){a={resolver:_createResolver(t,i),subPrefixes:i.filter(e=>!e.toLowerCase().includes("hover"))},r.set(n,a)}return a}const hasFunction=e=>isObject$1(e)&&Object.getOwnPropertyNames(e).some(t=>isFunction(e[t]));function needContext(e,t){const{isScriptable:i,isIndexable:r}=_descriptors(e);for(const n of t){const t=i(n),a=r(n),s=(a||t)&&e[n];if(t&&(isFunction(s)||hasFunction(s))||a&&isArray(s))return!0}return!1}var version="4.5.1";const KNOWN_POSITIONS=["top","bottom","left","right","chartArea"];function positionIsHorizontal(e,t){return"top"===e||"bottom"===e||-1===KNOWN_POSITIONS.indexOf(e)&&"x"===t}function compare2Level(e,t){return function(i,r){return i[e]===r[e]?i[t]-r[t]:i[e]-r[e]}}function onAnimationsComplete(e){const t=e.chart,i=t.options.animation;t.notifyPlugins("afterRender"),callback(i&&i.onComplete,[e],t)}function onAnimationProgress(e){const t=e.chart,i=t.options.animation;callback(i&&i.onProgress,[e],t)}function getCanvas(e){return _isDomSupported()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const instances={},getChart=e=>{const t=getCanvas(e);return Object.values(instances).filter(e=>e.canvas===t).pop()};function moveNumericKeys(e,t,i){const r=Object.keys(e);for(const n of r){const r=+n;if(r>=t){const a=e[n];delete e[n],(i>0||r>t)&&(e[r+i]=a)}}}function determineLastEvent(e,t,i,r){return i&&"mouseout"!==e.type?r?t:e:null}class Chart{static defaults=defaults;static instances=instances;static overrides=overrides;static registry=registry;static version=version;static getChart=getChart;static register(...e){registry.add(...e),invalidatePlugins()}static unregister(...e){registry.remove(...e),invalidatePlugins()}constructor(e,t){const i=this.config=new Config(t),r=getCanvas(e),n=getChart(r);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||_detectPlatform(r)),this.platform.updateConfig(i);const s=this.platform.acquireContext(r,a.aspectRatio),o=s&&s.canvas,l=o&&o.height,c=o&&o.width;this.id=uid(),this.ctx=s,this.canvas=o,this.width=c,this.height=l,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PluginService,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=debounce(e=>this.update(e),a.resizeDelay||0),this._dataChanges=[],instances[this.id]=this,s&&o?(animator.listen(this,"complete",onAnimationsComplete),animator.listen(this,"progress",onAnimationProgress),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:i,height:r,_aspectRatio:n}=this;return isNullOrUndef(e)?t&&n?n:r?i/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return registry}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():retinaScale(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return clearCanvas(this.canvas,this.ctx),this}stop(){return animator.stop(this),this}resize(e,t){animator.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const i=this.options,r=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,n),s=i.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,retinaScale(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),callback(i.onResize,[this,a],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){each(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){const e=this.options,t=e.scales,i=this.scales,r=Object.keys(i).reduce((e,t)=>(e[t]=!1,e),{});let n=[];t&&(n=n.concat(Object.keys(t).map(e=>{const i=t[e],r=determineAxis(e,i),n="r"===r,a="x"===r;return{options:i,dposition:n?"chartArea":a?"bottom":"left",dtype:n?"radialLinear":a?"category":"linear"}}))),each(n,t=>{const n=t.options,a=n.id,s=determineAxis(a,n),o=valueOrDefault(n.type,t.dtype);void 0!==n.position&&positionIsHorizontal(n.position,s)===positionIsHorizontal(t.dposition)||(n.position=t.dposition),r[a]=!0;let l=null;if(a in i&&i[a].type===o)l=i[a];else{l=new(registry.getScale(o))({id:a,type:o,ctx:this.ctx,chart:this}),i[l.id]=l}l.init(n,e)}),each(r,(e,t)=>{e||delete i[t]}),each(i,e=>{layouts.configure(this,e,e.options),layouts.addBox(this,e)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,i=e.length;if(e.sort((e,t)=>e.index-t.index),i>t){for(let e=t;e<i;++e)this._destroyDatasetMeta(e);e.splice(t,i-t)}this._sortedMetasets=e.slice(0).sort(compare2Level("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((e,i)=>{0===t.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=t.length;i<r;i++){const r=t[i];let n=this.getDatasetMeta(i);const a=r.type||this.config.type;if(n.type&&n.type!==a&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=a,n.indexAxis=r.indexAxis||getIndexAxis(a,this.options),n.order=r.order||0,n.index=i,n.label=""+r.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const t=registry.getController(a),{datasetElementType:r,dataElementType:s}=defaults.datasets[a];Object.assign(t,{dataElementType:registry.getElement(s),datasetElementType:r&®istry.getElement(r)}),n.controller=new t(this,i),e.push(n.controller)}}return this._updateMetasets(),e}_resetElements(){each(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const i=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let e=0,t=this.data.datasets.length;e<t;e++){const{controller:t}=this.getDatasetMeta(e),i=!r&&-1===n.indexOf(t);t.buildOrUpdateElements(i),a=Math.max(+t.getMaxOverflow(),a)}a=this._minPadding=i.layout.autoPadding?a:0,this._updateLayout(a),r||each(n,e=>{e.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(compare2Level("z","_idx"));const{_active:s,_lastEvent:o}=this;o?this._eventHandler(o,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){each(this.scales,e=>{layouts.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),i=new Set(e.events);setsEqual(t,i)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:n}of t){moveNumericKeys(e,r,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,i=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+","+e.splice(1).join(","))),r=i(0);for(let e=1;e<t;e++)if(!setsEqual(r,i(e)))return;return Array.from(r).map(e=>e.split(",")).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;layouts.update(this,this.width,this.height,e);const t=this.chartArea,i=t.width<=0||t.height<=0;this._layers=[],each(this.boxes,e=>{i&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e<t;++e)this.getDatasetMeta(e).controller.configure();for(let t=0,i=this.data.datasets.length;t<i;++t)this._updateDataset(t,isFunction(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const i=this.getDatasetMeta(e),r={meta:i,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(i.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(animator.has(this)?this.attached&&!animator.running(this)&&animator.start(this):(this.draw(),onAnimationsComplete({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:e,height:t}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(e,t)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,i=[];let r,n;for(r=0,n=t.length;r<n;++r){const n=t[r];e&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,i={meta:e,index:e.index,cancelable:!0},r=getDatasetClipArea(this,e);!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(r&&clipArea(t,r),e.controller.draw(),r&&unclipArea(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return _isPointInArea(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,i,r){const n=Interaction.modes[t];return"function"==typeof n?n(this,e,i,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],i=this._metasets;let r=i.filter(e=>e&&e._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=createContext(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const i=this.getDatasetMeta(e);return"boolean"==typeof i.hidden?!i.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,i){const r=i?"show":"hide",n=this.getDatasetMeta(e),a=n.controller._resolveAnimations(void 0,r);defined(t)?(n.data[t].hidden=!i,this.update()):(this.setDatasetVisibility(e,i),a.update(n,{visible:i}),this.update(t=>t.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),animator.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),clearCanvas(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete instances[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,i=(i,r)=>{t.addEventListener(this,i,r),e[i]=r},r=(e,t,i)=>{e.offsetX=t,e.offsetY=i,this._eventHandler(e)};each(this.options.events,e=>i(e,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,i=(i,r)=>{t.addEventListener(this,i,r),e[i]=r},r=(i,r)=>{e[i]&&(t.removeEventListener(this,i,r),delete e[i])},n=(e,t)=>{this.canvas&&this.resize(e,t)};let a;const s=()=>{r("attach",s),this.attached=!0,this.resize(),i("resize",n),i("detach",a)};a=()=>{this.attached=!1,r("resize",n),this._stop(),this._resize(0,0),i("attach",s)},t.isAttached(this.canvas)?s():a()}unbindEvents(){each(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},each(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,i){const r=i?"set":"remove";let n,a,s,o;for("dataset"===t&&(n=this.getDatasetMeta(e[0].datasetIndex),n.controller["_"+r+"DatasetHoverStyle"]()),s=0,o=e.length;s<o;++s){a=e[s];const t=a&&this.getDatasetMeta(a.datasetIndex).controller;t&&t[r+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],i=e.map(({datasetIndex:e,index:t})=>{const i=this.getDatasetMeta(e);if(!i)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:i.data[t],index:t}});!_elementsEqual(i,t)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,t))}notifyPlugins(e,t,i){return this._plugins.notify(this,e,t,i)}isPluginEnabled(e){return 1===this._plugins._cache.filter(t=>t.plugin.id===e).length}_updateHoverStyles(e,t,i){const r=this.options.hover,n=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),a=n(t,e),s=i?e:n(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),s.length&&r.mode&&this.updateHoverStyle(s,r.mode,!0)}_eventHandler(e,t){const i={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",i,r))return;const n=this._handleEvent(e,t,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(n||i.changed)&&this.render(),this}_handleEvent(e,t,i){const{_active:r=[],options:n}=this,a=t,s=this._getActiveElements(e,r,i,a),o=_isClickEvent(e),l=determineLastEvent(e,this._lastEvent,i,o);i&&(this._lastEvent=null,callback(n.onHover,[e,s,this],this),o&&callback(n.onClick,[e,s,this],this));const c=!_elementsEqual(s,r);return(c||t)&&(this._active=s,this._updateHoverStyles(s,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,i,r){if("mouseout"===e.type)return[];if(!i)return t;const n=this.options.hover;return this.getElementsAtEventForMode(e,n.mode,n,r)}}function invalidatePlugins(){return each(Chart.instances,e=>e._plugins.invalidate())}function clipSelf(e,t,i){const{startAngle:r,x:n,y:a,outerRadius:s,innerRadius:o,options:l}=t,{borderWidth:c,borderJoinStyle:h}=l,p=Math.min(c/s,_normalizeAngle(r-i));if(e.beginPath(),e.arc(n,a,s-c/2,r+p/2,i-p/2),o>0){const t=Math.min(c/o,_normalizeAngle(r-i));e.arc(n,a,o+c/2,i-t/2,r+t/2,!0)}else{const t=Math.min(c/2,s*_normalizeAngle(r-i));if("round"===h)e.arc(n,a,t,i-PI/2,r+PI/2,!0);else if("bevel"===h){const s=2*t*t,o=-s*Math.cos(i+PI/2)+n,l=-s*Math.sin(i+PI/2)+a,c=s*Math.cos(r+PI/2)+n,h=s*Math.sin(r+PI/2)+a;e.lineTo(o,l),e.lineTo(c,h)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function clipArc(e,t,i){const{startAngle:r,pixelMargin:n,x:a,y:s,outerRadius:o,innerRadius:l}=t;let c=n/o;e.beginPath(),e.arc(a,s,o,r-c,i+c),l>n?(c=n/l,e.arc(a,s,l,i+c,r-c,!0)):e.arc(a,s,n,i+HALF_PI,r-HALF_PI),e.closePath(),e.clip()}function toRadiusCorners(e){return _readValueToProps(e,["outerStart","outerEnd","innerStart","innerEnd"])}function parseBorderRadius$1(e,t,i,r){const n=toRadiusCorners(e.options.borderRadius),a=(i-t)/2,s=Math.min(a,r*t/2),o=e=>{const t=(i-Math.min(a,e))*r/2;return _limitValue(e,0,Math.min(a,t))};return{outerStart:o(n.outerStart),outerEnd:o(n.outerEnd),innerStart:_limitValue(n.innerStart,0,s),innerEnd:_limitValue(n.innerEnd,0,s)}}function rThetaToXY(e,t,i,r){return{x:i+e*Math.cos(t),y:r+e*Math.sin(t)}}function pathArc(e,t,i,r,n,a){const{x:s,y:o,startAngle:l,pixelMargin:c,innerRadius:h}=t,p=Math.max(t.outerRadius+r+i-c,0),u=h>0?h+r+i+c:0;let d=0;const f=n-l;if(r){const e=((h>0?h-r:0)+(p>0?p-r:0))/2;d=(f-(0!==e?f*e/(e+r):f))/2}const m=(f-Math.max(.001,f*p-i/PI)/p)/2,g=l+m+d,v=n-m-d,{outerStart:y,outerEnd:b,innerStart:x,innerEnd:_}=parseBorderRadius$1(t,u,p,v-g),S=p-y,w=p-b,C=g+y/S,P=v-b/w,E=u+x,k=u+_,$=g+x/E,A=v-_/k;if(e.beginPath(),a){const t=(C+P)/2;if(e.arc(s,o,p,C,t),e.arc(s,o,p,t,P),b>0){const t=rThetaToXY(w,P,s,o);e.arc(t.x,t.y,b,P,v+HALF_PI)}const i=rThetaToXY(k,v,s,o);if(e.lineTo(i.x,i.y),_>0){const t=rThetaToXY(k,A,s,o);e.arc(t.x,t.y,_,v+HALF_PI,A+Math.PI)}const r=(v-_/u+(g+x/u))/2;if(e.arc(s,o,u,v-_/u,r,!0),e.arc(s,o,u,r,g+x/u,!0),x>0){const t=rThetaToXY(E,$,s,o);e.arc(t.x,t.y,x,$+Math.PI,g-HALF_PI)}const n=rThetaToXY(S,g,s,o);if(e.lineTo(n.x,n.y),y>0){const t=rThetaToXY(S,C,s,o);e.arc(t.x,t.y,y,g-HALF_PI,C)}}else{e.moveTo(s,o);const t=Math.cos(C)*p+s,i=Math.sin(C)*p+o;e.lineTo(t,i);const r=Math.cos(P)*p+s,n=Math.sin(P)*p+o;e.lineTo(r,n)}e.closePath()}function drawArc(e,t,i,r,n){const{fullCircles:a,startAngle:s,circumference:o}=t;let l=t.endAngle;if(a){pathArc(e,t,i,r,l,n);for(let t=0;t<a;++t)e.fill();isNaN(o)||(l=s+(o%TAU||TAU))}return pathArc(e,t,i,r,l,n),e.fill(),l}function drawBorder(e,t,i,r,n){const{fullCircles:a,startAngle:s,circumference:o,options:l}=t,{borderWidth:c,borderJoinStyle:h,borderDash:p,borderDashOffset:u,borderRadius:d}=l,f="inner"===l.borderAlign;if(!c)return;e.setLineDash(p||[]),e.lineDashOffset=u,f?(e.lineWidth=2*c,e.lineJoin=h||"round"):(e.lineWidth=c,e.lineJoin=h||"bevel");let m=t.endAngle;if(a){pathArc(e,t,i,r,m,n);for(let t=0;t<a;++t)e.stroke();isNaN(o)||(m=s+(o%TAU||TAU))}f&&clipArc(e,t,m),l.selfJoin&&m-s>=PI&&0===d&&"miter"!==h&&clipSelf(e,t,m),a||(pathArc(e,t,i,r,m,n),e.stroke())}class ArcElement extends Element{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>"borderDash"!==e};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,i){const r=this.getProps(["x","y"],i),{angle:n,distance:a}=getAngleFromPoint(r,{x:e,y:t}),{startAngle:s,endAngle:o,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),p=(this.options.spacing+this.options.borderWidth)/2,u=valueOrDefault(h,o-s),d=_angleBetween(n,s,o)&&s!==o,f=u>=TAU||d,m=_isBetween(a,l+p,c+p);return f&&m}getCenterPoint(e){const{x:t,y:i,startAngle:r,endAngle:n,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:o,spacing:l}=this.options,c=(r+n)/2,h=(a+s+l+o)/2;return{x:t+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:i}=this,r=(t.offset||0)/4,n=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=i>TAU?Math.floor(i/TAU):0,0===i||this.innerRadius<0||this.outerRadius<0)return;e.save();const s=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(s)*r,Math.sin(s)*r);const o=r*(1-Math.sin(Math.min(PI,i||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,drawArc(e,this,o,n,a),drawBorder(e,this,o,n,a),e.restore()}}function getBarBounds(e,t){const{x:i,y:r,base:n,width:a,height:s}=e.getProps(["x","y","base","width","height"],t);let o,l,c,h,p;return e.horizontal?(p=s/2,o=Math.min(i,n),l=Math.max(i,n),c=r-p,h=r+p):(p=a/2,o=i-p,l=i+p,c=Math.min(r,n),h=Math.max(r,n)),{left:o,top:c,right:l,bottom:h}}function skipOrLimit(e,t,i,r){return e?0:_limitValue(t,i,r)}function parseBorderWidth(e,t,i){const r=e.options.borderWidth,n=e.borderSkipped,a=toTRBL(r);return{t:skipOrLimit(n.top,a.top,0,i),r:skipOrLimit(n.right,a.right,0,t),b:skipOrLimit(n.bottom,a.bottom,0,i),l:skipOrLimit(n.left,a.left,0,t)}}function parseBorderRadius(e,t,i){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),n=e.options.borderRadius,a=toTRBLCorners(n),s=Math.min(t,i),o=e.borderSkipped,l=r||isObject$1(n);return{topLeft:skipOrLimit(!l||o.top||o.left,a.topLeft,0,s),topRight:skipOrLimit(!l||o.top||o.right,a.topRight,0,s),bottomLeft:skipOrLimit(!l||o.bottom||o.left,a.bottomLeft,0,s),bottomRight:skipOrLimit(!l||o.bottom||o.right,a.bottomRight,0,s)}}function boundingRects(e){const t=getBarBounds(e),i=t.right-t.left,r=t.bottom-t.top,n=parseBorderWidth(e,i/2,r/2),a=parseBorderRadius(e,i/2,r/2);return{outer:{x:t.left,y:t.top,w:i,h:r,radius:a},inner:{x:t.left+n.l,y:t.top+n.t,w:i-n.l-n.r,h:r-n.t-n.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,a.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(n.b,n.r))}}}}function inRange(e,t,i,r){const n=null===t,a=null===i,s=e&&!(n&&a)&&getBarBounds(e,r);return s&&(n||_isBetween(t,s.left,s.right))&&(a||_isBetween(i,s.top,s.bottom))}function hasRadius(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function addNormalRectPath(e,t){e.rect(t.x,t.y,t.w,t.h)}function inflateRect(e,t,i={}){const r=e.x!==i.x?-t:0,n=e.y!==i.y?-t:0,a=(e.x+e.w!==i.x+i.w?t:0)-r,s=(e.y+e.h!==i.y+i.h?t:0)-n;return{x:e.x+r,y:e.y+n,w:e.w+a,h:e.h+s,radius:e.radius}}class BarElement extends Element{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:i,backgroundColor:r}}=this,{inner:n,outer:a}=boundingRects(this),s=hasRadius(a.radius)?addRoundedRectPath:addNormalRectPath;e.save(),a.w===n.w&&a.h===n.h||(e.beginPath(),s(e,inflateRect(a,t,n)),e.clip(),s(e,inflateRect(n,-t,a)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),s(e,inflateRect(n,t)),e.fillStyle=r,e.fill(),e.restore()}inRange(e,t,i){return inRange(this,e,t,i)}inXRange(e,t){return inRange(this,e,null,t)}inYRange(e,t){return inRange(this,null,e,t)}getCenterPoint(e){const{x:t,y:i,base:r,horizontal:n}=this.getProps(["x","y","base","horizontal"],e);return{x:n?(t+r)/2:t,y:n?i:(i+r)/2}}getRange(e){return"x"===e?this.width/2:this.height/2}}const getBoxSize=(e,t)=>{let{boxHeight:i=t,boxWidth:r=t}=e;return e.usePointStyle&&(i=Math.min(i,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:i,itemHeight:Math.max(t,i)}},itemsEqual=(e,t)=>null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Legend extends Element{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,i){this.maxWidth=e,this.maxHeight=t,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=callback(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(t=>e.filter(t,this.chart.data))),e.sort&&(t=t.sort((t,i)=>e.sort(t,i,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display)return void(this.width=this.height=0);const i=e.labels,r=toFont(i.font),n=r.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:o}=getBoxSize(i,n);let l,c;t.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,n,s,o)+10):(c=this.maxHeight,l=this._fitCols(a,r,s,o)+10),this.width=Math.min(l,e.maxWidth||this.maxWidth),this.height=Math.min(c,e.maxHeight||this.maxHeight)}_fitRows(e,t,i,r){const{ctx:n,maxWidth:a,options:{labels:{padding:s}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+s;let h=e;n.textAlign="left",n.textBaseline="middle";let p=-1,u=-c;return this.legendItems.forEach((e,d)=>{const f=i+t/2+n.measureText(e.text).width;(0===d||l[l.length-1]+f+2*s>a)&&(h+=c,l[l.length-(d>0?0:1)]=0,u+=c,p++),o[d]={left:0,top:u,row:p,width:f,height:r},l[l.length-1]+=f+s}),h}_fitCols(e,t,i,r){const{ctx:n,maxHeight:a,options:{labels:{padding:s}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-e;let h=s,p=0,u=0,d=0,f=0;return this.legendItems.forEach((e,a)=>{const{itemWidth:m,itemHeight:g}=calculateItemSize(i,t,n,e,r);a>0&&u+g+2*s>c&&(h+=p+s,l.push({width:p,height:u}),d+=p+s,f++,p=u=0),o[a]={left:d,top:u,col:f,width:m,height:g},p=Math.max(p,m),u+=g+s}),h+=p,l.push({width:p,height:u}),h}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:i,labels:{padding:r},rtl:n}}=this,a=getRtlAdapter(n,this.left,this.width);if(this.isHorizontal()){let n=0,s=_alignStartEnd(i,this.left+r,this.right-this.lineWidths[n]);for(const o of t)n!==o.row&&(n=o.row,s=_alignStartEnd(i,this.left+r,this.right-this.lineWidths[n])),o.top+=this.top+e+r,o.left=a.leftForLtr(a.x(s),o.width),s+=o.width+r}else{let n=0,s=_alignStartEnd(i,this.top+e+r,this.bottom-this.columnSizes[n].height);for(const o of t)o.col!==n&&(n=o.col,s=_alignStartEnd(i,this.top+e+r,this.bottom-this.columnSizes[n].height)),o.top=s,o.left+=this.left+r,o.left=a.leftForLtr(a.x(o.left),o.width),s+=o.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const e=this.ctx;clipArea(e,this),this._draw(),unclipArea(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:i,ctx:r}=this,{align:n,labels:a}=e,s=defaults.color,o=getRtlAdapter(e.rtl,this.left,this.width),l=toFont(a.font),{padding:c}=a,h=l.size,p=h/2;let u;this.drawTitle(),r.textAlign=o.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:d,boxHeight:f,itemHeight:m}=getBoxSize(a,h),g=this.isHorizontal(),v=this._computeTitleHeight();u=g?{x:_alignStartEnd(n,this.left+c,this.right-i[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:_alignStartEnd(n,this.top+v+c,this.bottom-t[0].height),line:0},overrideTextDirection(this.ctx,e.textDirection);const y=m+c;this.legendItems.forEach((b,x)=>{r.strokeStyle=b.fontColor,r.fillStyle=b.fontColor;const _=r.measureText(b.text).width,S=o.textAlign(b.textAlign||(b.textAlign=a.textAlign)),w=d+p+_;let C=u.x,P=u.y;o.setWidth(this.width),g?x>0&&C+w+c>this.right&&(P=u.y+=y,u.line++,C=u.x=_alignStartEnd(n,this.left+c,this.right-i[u.line])):x>0&&P+y>this.bottom&&(C=u.x=C+t[u.line].width+c,u.line++,P=u.y=_alignStartEnd(n,this.top+v+c,this.bottom-t[u.line].height));if(function(e,t,i){if(isNaN(d)||d<=0||isNaN(f)||f<0)return;r.save();const n=valueOrDefault(i.lineWidth,1);if(r.fillStyle=valueOrDefault(i.fillStyle,s),r.lineCap=valueOrDefault(i.lineCap,"butt"),r.lineDashOffset=valueOrDefault(i.lineDashOffset,0),r.lineJoin=valueOrDefault(i.lineJoin,"miter"),r.lineWidth=n,r.strokeStyle=valueOrDefault(i.strokeStyle,s),r.setLineDash(valueOrDefault(i.lineDash,[])),a.usePointStyle){const s={radius:f*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=o.xPlus(e,d/2);drawPointLegend(r,s,l,t+p,a.pointStyleWidth&&d)}else{const a=t+Math.max((h-f)/2,0),s=o.leftForLtr(e,d),l=toTRBLCorners(i.borderRadius);r.beginPath(),Object.values(l).some(e=>0!==e)?addRoundedRectPath(r,{x:s,y:a,w:d,h:f,radius:l}):r.rect(s,a,d,f),r.fill(),0!==n&&r.stroke()}r.restore()}(o.x(C),P,b),C=_textX(S,C+d+p,g?C+w:this.right,e.rtl),function(e,t,i){renderText(r,i.text,e,t+m/2,l,{strikethrough:i.hidden,textAlign:o.textAlign(i.textAlign)})}(o.x(C),P,b),g)u.x+=w+c;else if("string"!=typeof b.text){const e=l.lineHeight;u.y+=calculateLegendItemHeight(b,e)+c}else u.y+=y}),restoreTextDirection(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,i=toFont(t.font),r=toPadding(t.padding);if(!t.display)return;const n=getRtlAdapter(e.rtl,this.left,this.width),a=this.ctx,s=t.position,o=i.size/2,l=r.top+o;let c,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),c=this.top+l,h=_alignStartEnd(e.align,h,this.right-p);else{const t=this.columnSizes.reduce((e,t)=>Math.max(e,t.height),0);c=l+_alignStartEnd(e.align,this.top,this.bottom-t-e.labels.padding-this._computeTitleHeight())}const u=_alignStartEnd(s,h,h+p);a.textAlign=n.textAlign(_toLeftRightCenter(s)),a.textBaseline="middle",a.strokeStyle=t.color,a.fillStyle=t.color,a.font=i.string,renderText(a,t.text,u,c,i)}_computeTitleHeight(){const e=this.options.title,t=toFont(e.font),i=toPadding(e.padding);return e.display?t.lineHeight+i.height:0}_getLegendItemAt(e,t){let i,r,n;if(_isBetween(e,this.left,this.right)&&_isBetween(t,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(r=n[i],_isBetween(e,r.left,r.left+r.width)&&_isBetween(t,r.top,r.top+r.height))return this.legendItems[i];return null}handleEvent(e){const t=this.options;if(!isListened(e.type,t))return;const i=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){const r=this._hoveredItem,n=itemsEqual(r,i);r&&!n&&callback(t.onLeave,[e,r,this],this),this._hoveredItem=i,i&&!n&&callback(t.onHover,[e,i,this],this)}else i&&callback(t.onClick,[e,i,this],this)}}function calculateItemSize(e,t,i,r,n){return{itemWidth:calculateItemWidth(r,e,t,i),itemHeight:calculateItemHeight(n,r,t.lineHeight)}}function calculateItemWidth(e,t,i,r){let n=e.text;return n&&"string"!=typeof n&&(n=n.reduce((e,t)=>e.length>t.length?e:t)),t+i.size/2+r.measureText(n).width}function calculateItemHeight(e,t,i){let r=e;return"string"!=typeof t.text&&(r=calculateLegendItemHeight(t,i)),r}function calculateLegendItemHeight(e,t){return t*(e.text?e.text.length:0)}function isListened(e,t){return!("mousemove"!==e&&"mouseout"!==e||!t.onHover&&!t.onLeave)||!(!t.onClick||"click"!==e&&"mouseup"!==e)}var plugin_legend={id:"legend",_element:Legend,start(e,t,i){const r=e.legend=new Legend({ctx:e.ctx,options:i,chart:e});layouts.configure(e,r,i),layouts.addBox(e,r)},stop(e){layouts.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,i){const r=e.legend;layouts.configure(e,r,i),r.options=i},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,i){const r=t.datasetIndex,n=i.chart;n.isDatasetVisible(r)?(n.hide(r),t.hidden=!0):(n.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:i,pointStyle:r,textAlign:n,color:a,useBorderRadius:s,borderRadius:o}}=e.legend.options;return e._getSortedDatasetMetas().map(e=>{const l=e.controller.getStyle(i?0:void 0),c=toPadding(l.borderWidth);return{text:t[e.index].label,fillStyle:l.backgroundColor,fontColor:a,hidden:!e.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:n||l.textAlign,borderRadius:s&&(o||l.borderRadius),datasetIndex:e.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};const positioners={average(e){if(!e.length)return!1;let t,i,r=new Set,n=0,a=0;for(t=0,i=e.length;t<i;++t){const i=e[t].element;if(i&&i.hasValue()){const e=i.tooltipPosition();r.add(e.x),n+=e.y,++a}}if(0===a||0===r.size)return!1;return{x:[...r].reduce((e,t)=>e+t)/r.size,y:n/a}},nearest(e,t){if(!e.length)return!1;let i,r,n,a=t.x,s=t.y,o=Number.POSITIVE_INFINITY;for(i=0,r=e.length;i<r;++i){const r=e[i].element;if(r&&r.hasValue()){const e=distanceBetweenPoints(t,r.getCenterPoint());e<o&&(o=e,n=r)}}if(n){const e=n.tooltipPosition();a=e.x,s=e.y}return{x:a,y:s}}};function pushOrConcat(e,t){return t&&(isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function splitNewlines(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function createTooltipItem(e,t){const{element:i,datasetIndex:r,index:n}=t,a=e.getDatasetMeta(r).controller,{label:s,value:o}=a.getLabelAndValue(n);return{chart:e,label:s,parsed:a.getParsed(n),raw:e.data.datasets[r].data[n],formattedValue:o,dataset:a.getDataset(),dataIndex:n,datasetIndex:r,element:i}}function getTooltipSize(e,t){const i=e.chart.ctx,{body:r,footer:n,title:a}=e,{boxWidth:s,boxHeight:o}=t,l=toFont(t.bodyFont),c=toFont(t.titleFont),h=toFont(t.footerFont),p=a.length,u=n.length,d=r.length,f=toPadding(t.padding);let m=f.height,g=0,v=r.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(v+=e.beforeBody.length+e.afterBody.length,p&&(m+=p*c.lineHeight+(p-1)*t.titleSpacing+t.titleMarginBottom),v){m+=d*(t.displayColors?Math.max(o,l.lineHeight):l.lineHeight)+(v-d)*l.lineHeight+(v-1)*t.bodySpacing}u&&(m+=t.footerMarginTop+u*h.lineHeight+(u-1)*t.footerSpacing);let y=0;const b=function(e){g=Math.max(g,i.measureText(e).width+y)};return i.save(),i.font=c.string,each(e.title,b),i.font=l.string,each(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?s+2+t.boxPadding:0,each(r,e=>{each(e.before,b),each(e.lines,b),each(e.after,b)}),y=0,i.font=h.string,each(e.footer,b),i.restore(),g+=f.width,{width:g,height:m}}function determineYAlign(e,t){const{y:i,height:r}=t;return i<r/2?"top":i>e.height-r/2?"bottom":"center"}function doesNotFitWithAlign(e,t,i,r){const{x:n,width:a}=r,s=i.caretSize+i.caretPadding;return"left"===e&&n+a+s>t.width||("right"===e&&n-a-s<0||void 0)}function determineXAlign(e,t,i,r){const{x:n,width:a}=i,{width:s,chartArea:{left:o,right:l}}=e;let c="center";return"center"===r?c=n<=(o+l)/2?"left":"right":n<=a/2?c="left":n>=s-a/2&&(c="right"),doesNotFitWithAlign(c,e,t,i)&&(c="center"),c}function determineAlignment(e,t,i){const r=i.yAlign||t.yAlign||determineYAlign(e,i);return{xAlign:i.xAlign||t.xAlign||determineXAlign(e,t,i,r),yAlign:r}}function alignX(e,t){let{x:i,width:r}=e;return"right"===t?i-=r:"center"===t&&(i-=r/2),i}function alignY(e,t,i){let{y:r,height:n}=e;return"top"===t?r+=i:r-="bottom"===t?n+i:n/2,r}function getBackgroundPoint(e,t,i,r){const{caretSize:n,caretPadding:a,cornerRadius:s}=e,{xAlign:o,yAlign:l}=i,c=n+a,{topLeft:h,topRight:p,bottomLeft:u,bottomRight:d}=toTRBLCorners(s);let f=alignX(t,o);const m=alignY(t,l,c);return"center"===l?"left"===o?f+=c:"right"===o&&(f-=c):"left"===o?f-=Math.max(h,u)+n:"right"===o&&(f+=Math.max(p,d)+n),{x:_limitValue(f,0,r.width-t.width),y:_limitValue(m,0,r.height-t.height)}}function getAlignedX(e,t,i){const r=toPadding(i.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function getBeforeAfterBodyLines(e){return pushOrConcat([],splitNewlines(e))}function createTooltipContext(e,t,i){return createContext(e,{tooltip:t,tooltipItems:i,type:"tooltip"})}function overrideCallbacks(e,t){const i=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return i?e.override(i):e}const defaultCallbacks={beforeTitle:noop$1,title(e){if(e.length>0){const t=e[0],i=t.chart.data.labels,r=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return i[t.dataIndex]}return""},afterTitle:noop$1,beforeBody:noop$1,beforeLabel:noop$1,label(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const i=e.formattedValue;return isNullOrUndef(i)||(t+=i),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:noop$1,afterBody:noop$1,beforeFooter:noop$1,footer:noop$1,afterFooter:noop$1};function invokeCallbackWithFallback(e,t,i,r){const n=e[t].call(i,r);return void 0===n?defaultCallbacks[t].call(i,r):n}class Tooltip extends Element{static positioners=positioners;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&t.options.animation&&i.animations,n=new Animations(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=createTooltipContext(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,t){const{callbacks:i}=t,r=invokeCallbackWithFallback(i,"beforeTitle",this,e),n=invokeCallbackWithFallback(i,"title",this,e),a=invokeCallbackWithFallback(i,"afterTitle",this,e);let s=[];return s=pushOrConcat(s,splitNewlines(r)),s=pushOrConcat(s,splitNewlines(n)),s=pushOrConcat(s,splitNewlines(a)),s}getBeforeBody(e,t){return getBeforeAfterBodyLines(invokeCallbackWithFallback(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:i}=t,r=[];return each(e,e=>{const t={before:[],lines:[],after:[]},n=overrideCallbacks(i,e);pushOrConcat(t.before,splitNewlines(invokeCallbackWithFallback(n,"beforeLabel",this,e))),pushOrConcat(t.lines,invokeCallbackWithFallback(n,"label",this,e)),pushOrConcat(t.after,splitNewlines(invokeCallbackWithFallback(n,"afterLabel",this,e))),r.push(t)}),r}getAfterBody(e,t){return getBeforeAfterBodyLines(invokeCallbackWithFallback(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:i}=t,r=invokeCallbackWithFallback(i,"beforeFooter",this,e),n=invokeCallbackWithFallback(i,"footer",this,e),a=invokeCallbackWithFallback(i,"afterFooter",this,e);let s=[];return s=pushOrConcat(s,splitNewlines(r)),s=pushOrConcat(s,splitNewlines(n)),s=pushOrConcat(s,splitNewlines(a)),s}_createItems(e){const t=this._active,i=this.chart.data,r=[],n=[],a=[];let s,o,l=[];for(s=0,o=t.length;s<o;++s)l.push(createTooltipItem(this.chart,t[s]));return e.filter&&(l=l.filter((t,r,n)=>e.filter(t,r,n,i))),e.itemSort&&(l=l.sort((t,r)=>e.itemSort(t,r,i))),each(l,t=>{const i=overrideCallbacks(e.callbacks,t);r.push(invokeCallbackWithFallback(i,"labelColor",this,t)),n.push(invokeCallbackWithFallback(i,"labelPointStyle",this,t)),a.push(invokeCallbackWithFallback(i,"labelTextColor",this,t))}),this.labelColors=r,this.labelPointStyles=n,this.labelTextColors=a,this.dataPoints=l,l}update(e,t){const i=this.options.setContext(this.getContext()),r=this._active;let n,a=[];if(r.length){const e=positioners[i.position].call(this,r,this._eventPosition);a=this._createItems(i),this.title=this.getTitle(a,i),this.beforeBody=this.getBeforeBody(a,i),this.body=this.getBody(a,i),this.afterBody=this.getAfterBody(a,i),this.footer=this.getFooter(a,i);const t=this._size=getTooltipSize(this,i),s=Object.assign({},e,t),o=determineAlignment(this.chart,i,s),l=getBackgroundPoint(i,s,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,n={opacity:1,x:l.x,y:l.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=a,this.$context=void 0,n&&this._resolveAnimations().update(this,n),e&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,i,r){const n=this.getCaretPosition(e,i,r);t.lineTo(n.x1,n.y1),t.lineTo(n.x2,n.y2),t.lineTo(n.x3,n.y3)}getCaretPosition(e,t,i){const{xAlign:r,yAlign:n}=this,{caretSize:a,cornerRadius:s}=i,{topLeft:o,topRight:l,bottomLeft:c,bottomRight:h}=toTRBLCorners(s),{x:p,y:u}=e,{width:d,height:f}=t;let m,g,v,y,b,x;return"center"===n?(b=u+f/2,"left"===r?(m=p,g=m-a,y=b+a,x=b-a):(m=p+d,g=m+a,y=b-a,x=b+a),v=m):(g="left"===r?p+Math.max(o,c)+a:"right"===r?p+d-Math.max(l,h)-a:this.caretX,"top"===n?(y=u,b=y-a,m=g-a,v=g+a):(y=u+f,b=y+a,m=g+a,v=g-a),x=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:x}}drawTitle(e,t,i){const r=this.title,n=r.length;let a,s,o;if(n){const l=getRtlAdapter(i.rtl,this.x,this.width);for(e.x=getAlignedX(this,i.titleAlign,i),t.textAlign=l.textAlign(i.titleAlign),t.textBaseline="middle",a=toFont(i.titleFont),s=i.titleSpacing,t.fillStyle=i.titleColor,t.font=a.string,o=0;o<n;++o)t.fillText(r[o],l.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+s,o+1===n&&(e.y+=i.titleMarginBottom-s)}}_drawColorBox(e,t,i,r,n){const a=this.labelColors[i],s=this.labelPointStyles[i],{boxHeight:o,boxWidth:l}=n,c=toFont(n.bodyFont),h=getAlignedX(this,"left",n),p=r.x(h),u=o<c.lineHeight?(c.lineHeight-o)/2:0,d=t.y+u;if(n.usePointStyle){const t={radius:Math.min(l,o)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},i=r.leftForLtr(p,l)+l/2,c=d+o/2;e.strokeStyle=n.multiKeyBackground,e.fillStyle=n.multiKeyBackground,drawPoint(e,t,i,c),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,drawPoint(e,t,i,c)}else{e.lineWidth=isObject$1(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const t=r.leftForLtr(p,l),i=r.leftForLtr(r.xPlus(p,1),l-2),s=toTRBLCorners(a.borderRadius);Object.values(s).some(e=>0!==e)?(e.beginPath(),e.fillStyle=n.multiKeyBackground,addRoundedRectPath(e,{x:t,y:d,w:l,h:o,radius:s}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),addRoundedRectPath(e,{x:i,y:d+1,w:l-2,h:o-2,radius:s}),e.fill()):(e.fillStyle=n.multiKeyBackground,e.fillRect(t,d,l,o),e.strokeRect(t,d,l,o),e.fillStyle=a.backgroundColor,e.fillRect(i,d+1,l-2,o-2))}e.fillStyle=this.labelTextColors[i]}drawBody(e,t,i){const{body:r}=this,{bodySpacing:n,bodyAlign:a,displayColors:s,boxHeight:o,boxWidth:l,boxPadding:c}=i,h=toFont(i.bodyFont);let p=h.lineHeight,u=0;const d=getRtlAdapter(i.rtl,this.x,this.width),f=function(i){t.fillText(i,d.x(e.x+u),e.y+p/2),e.y+=p+n},m=d.textAlign(a);let g,v,y,b,x,_,S;for(t.textAlign=a,t.textBaseline="middle",t.font=h.string,e.x=getAlignedX(this,m,i),t.fillStyle=i.bodyColor,each(this.beforeBody,f),u=s&&"right"!==m?"center"===a?l/2+c:l+2+c:0,b=0,_=r.length;b<_;++b){for(g=r[b],v=this.labelTextColors[b],t.fillStyle=v,each(g.before,f),y=g.lines,s&&y.length&&(this._drawColorBox(t,e,b,d,i),p=Math.max(h.lineHeight,o)),x=0,S=y.length;x<S;++x)f(y[x]),p=h.lineHeight;each(g.after,f)}u=0,p=h.lineHeight,each(this.afterBody,f),e.y-=n}drawFooter(e,t,i){const r=this.footer,n=r.length;let a,s;if(n){const o=getRtlAdapter(i.rtl,this.x,this.width);for(e.x=getAlignedX(this,i.footerAlign,i),e.y+=i.footerMarginTop,t.textAlign=o.textAlign(i.footerAlign),t.textBaseline="middle",a=toFont(i.footerFont),t.fillStyle=i.footerColor,t.font=a.string,s=0;s<n;++s)t.fillText(r[s],o.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+i.footerSpacing}}drawBackground(e,t,i,r){const{xAlign:n,yAlign:a}=this,{x:s,y:o}=e,{width:l,height:c}=i,{topLeft:h,topRight:p,bottomLeft:u,bottomRight:d}=toTRBLCorners(r.cornerRadius);t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(s+h,o),"top"===a&&this.drawCaret(e,t,i,r),t.lineTo(s+l-p,o),t.quadraticCurveTo(s+l,o,s+l,o+p),"center"===a&&"right"===n&&this.drawCaret(e,t,i,r),t.lineTo(s+l,o+c-d),t.quadraticCurveTo(s+l,o+c,s+l-d,o+c),"bottom"===a&&this.drawCaret(e,t,i,r),t.lineTo(s+u,o+c),t.quadraticCurveTo(s,o+c,s,o+c-u),"center"===a&&"left"===n&&this.drawCaret(e,t,i,r),t.lineTo(s,o+h),t.quadraticCurveTo(s,o,s+h,o),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,i=this.$animations,r=i&&i.x,n=i&&i.y;if(r||n){const i=positioners[e.position].call(this,this._active,this._eventPosition);if(!i)return;const a=this._size=getTooltipSize(this,e),s=Object.assign({},i,this._size),o=determineAlignment(t,e,s),l=getBackgroundPoint(e,s,o,t);r._to===l.x&&n._to===l.y||(this.xAlign=o.xAlign,this.yAlign=o.yAlign,this.width=a.width,this.height=a.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(t);const r={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=toPadding(t.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&s&&(e.save(),e.globalAlpha=i,this.drawBackground(n,e,r,t),overrideTextDirection(e,t.textDirection),n.y+=a.top,this.drawTitle(n,e,t),this.drawBody(n,e,t),this.drawFooter(n,e,t),restoreTextDirection(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const i=this._active,r=e.map(({datasetIndex:e,index:t})=>{const i=this.chart.getDatasetMeta(e);if(!i)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:i.data[t],index:t}}),n=!_elementsEqual(i,r),a=this._positionChanged(r,t);(n||a)&&(this._active=r,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,i=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,n=this._active||[],a=this._getActiveElements(e,n,t,i),s=this._positionChanged(a,e),o=t||!_elementsEqual(a,n)||s;return o&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),o}_getActiveElements(e,t,i,r){const n=this.options;if("mouseout"===e.type)return[];if(!r)return t.filter(e=>this.chart.data.datasets[e.datasetIndex]&&void 0!==this.chart.getDatasetMeta(e.datasetIndex).controller.getParsed(e.index));const a=this.chart.getElementsAtEventForMode(e,n.mode,n,i);return n.reverse&&a.reverse(),a}_positionChanged(e,t){const{caretX:i,caretY:r,options:n}=this,a=positioners[n.position].call(this,e,t);return!1!==a&&(i!==a.x||r!==a.y)}}var plugin_tooltip={id:"tooltip",_element:Tooltip,positioners:positioners,afterInit(e,t,i){i&&(e.tooltip=new Tooltip({chart:e,options:i}))},beforeUpdate(e,t,i){e.tooltip&&e.tooltip.initialize(i)},reset(e,t,i){e.tooltip&&e.tooltip.initialize(i)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const i={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",i)}},afterEvent(e,t){if(e.tooltip){const i=t.replay;e.tooltip.handleEvent(t.event,i,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:defaultCallbacks},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const addIfString=(e,t,i,r)=>("string"==typeof t?(i=e.push(t)-1,r.unshift({index:i,label:t})):isNaN(t)&&(i=null),i);function findOrAddLabel(e,t,i,r){const n=e.indexOf(t);if(-1===n)return addIfString(e,t,i,r);return n!==e.lastIndexOf(t)?i:n}const validIndex=(e,t)=>null===e?null:_limitValue(Math.round(e),0,t);function _getLabelForValue(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class CategoryScale extends Scale{static id="category";static defaults={ticks:{callback:_getLabelForValue}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:i,label:r}of t)e[i]===r&&e.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(isNullOrUndef(e))return null;const i=this.getLabels();return t=isFinite(t)&&i[t]===e?t:findOrAddLabel(i,e,valueOrDefault(t,e),this._addedLabels),validIndex(t,i.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(i=0),t||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const e=this.min,t=this.max,i=this.options.offset,r=[];let n=this.getLabels();n=0===e&&t===n.length-1?n:n.slice(e,t+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=e;i<=t;i++)r.push({value:i});return r}getLabelForValue(e){return _getLabelForValue.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return"number"!=typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function generateTicks$1(e,t){const i=[],{bounds:r,step:n,min:a,max:s,precision:o,count:l,maxTicks:c,maxDigits:h,includeBounds:p}=e,u=n||1,d=c-1,{min:f,max:m}=t,g=!isNullOrUndef(a),v=!isNullOrUndef(s),y=!isNullOrUndef(l),b=(m-f)/(h+1);let x,_,S,w,C=niceNum((m-f)/d/u)*u;if(C<1e-14&&!g&&!v)return[{value:f},{value:m}];w=Math.ceil(m/C)-Math.floor(f/C),w>d&&(C=niceNum(w*C/d/u)*u),isNullOrUndef(o)||(x=Math.pow(10,o),C=Math.ceil(C*x)/x),"ticks"===r?(_=Math.floor(f/C)*C,S=Math.ceil(m/C)*C):(_=f,S=m),g&&v&&n&&almostWhole((s-a)/n,C/1e3)?(w=Math.round(Math.min((s-a)/C,c)),C=(s-a)/w,_=a,S=s):y?(_=g?a:_,S=v?s:S,w=l-1,C=(S-_)/w):(w=(S-_)/C,w=almostEquals(w,Math.round(w),C/1e3)?Math.round(w):Math.ceil(w));const P=Math.max(_decimalPlaces(C),_decimalPlaces(_));x=Math.pow(10,isNullOrUndef(o)?P:o),_=Math.round(_*x)/x,S=Math.round(S*x)/x;let E=0;for(g&&(p&&_!==a?(i.push({value:a}),_<a&&E++,almostEquals(Math.round((_+E*C)*x)/x,a,relativeLabelSize(a,b,e))&&E++):_<a&&E++);E<w;++E){const e=Math.round((_+E*C)*x)/x;if(v&&e>s)break;i.push({value:e})}return v&&p&&S!==s?i.length&&almostEquals(i[i.length-1].value,s,relativeLabelSize(s,b,e))?i[i.length-1].value=s:i.push({value:s}):v&&S!==s||i.push({value:S}),i}function relativeLabelSize(e,t,{horizontal:i,minRotation:r}){const n=toRadians(r),a=(i?Math.sin(n):Math.cos(n))||.001,s=.75*t*(""+e).length;return Math.min(t/a,s)}class LinearScaleBase extends Scale{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return isNullOrUndef(e)||("number"==typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:i}=this.getUserBounds();let{min:r,max:n}=this;const a=e=>r=t?r:e,s=e=>n=i?n:e;if(e){const e=sign(r),t=sign(n);e<0&&t<0?s(0):e>0&&t>0&&a(0)}if(r===n){let t=0===n?1:Math.abs(.05*n);s(n+t),e||a(r-t)}this.min=r,this.max=n}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:i,stepSize:r}=e;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r=generateTicks$1({maxTicks:i,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&_setMinAndMaxByKey(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const e=this.ticks;let t=this.min,i=this.max;if(super.configure(),this.options.offset&&e.length){const r=(i-t)/Math.max(e.length-1,1)/2;t-=r,i+=r}this._startValue=t,this._endValue=i,this._valueRange=i-t}getLabelForValue(e){return formatNumber(e,this.chart.options.locale,this.options.ticks.format)}}class LinearScale extends LinearScaleBase{static id="linear";static defaults={ticks:{callback:Ticks.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=isNumberFinite(e)?e:0,this.max=isNumberFinite(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,i=toRadians(this.options.ticks.minRotation),r=(e?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,n.lineHeight/r))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const INTERVALS={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},UNITS=Object.keys(INTERVALS);function sorter(e,t){return e-t}function parse(e,t){if(isNullOrUndef(t))return null;const i=e._adapter,{parser:r,round:n,isoWeekday:a}=e._parseOpts;let s=t;return"function"==typeof r&&(s=r(s)),isNumberFinite(s)||(s="string"==typeof r?i.parse(s,r):i.parse(s)),null===s?null:(n&&(s="week"!==n||!isNumber(a)&&!0!==a?i.startOf(s,n):i.startOf(s,"isoWeek",a)),+s)}function determineUnitForAutoTicks(e,t,i,r){const n=UNITS.length;for(let a=UNITS.indexOf(e);a<n-1;++a){const e=INTERVALS[UNITS[a]],n=e.steps?e.steps:Number.MAX_SAFE_INTEGER;if(e.common&&Math.ceil((i-t)/(n*e.size))<=r)return UNITS[a]}return UNITS[n-1]}function determineUnitForFormatting(e,t,i,r,n){for(let a=UNITS.length-1;a>=UNITS.indexOf(i);a--){const i=UNITS[a];if(INTERVALS[i].common&&e._adapter.diff(n,r,i)>=t-1)return i}return UNITS[i?UNITS.indexOf(i):0]}function determineMajorUnit(e){for(let t=UNITS.indexOf(e)+1,i=UNITS.length;t<i;++t)if(INTERVALS[UNITS[t]].common)return UNITS[t]}function addTick(e,t,i){if(i){if(i.length){const{lo:r,hi:n}=_lookup(i,t);e[i[r]>=t?i[r]:i[n]]=!0}}else e[t]=!0}function setMajorTicks(e,t,i,r){const n=e._adapter,a=+n.startOf(t[0].value,r),s=t[t.length-1].value;let o,l;for(o=a;o<=s;o=+n.add(o,1,r))l=i[o],l>=0&&(t[l].major=!0);return t}function ticksFromTimestamps(e,t,i){const r=[],n={},a=t.length;let s,o;for(s=0;s<a;++s)o=t[s],n[o]=s,r.push({value:o,major:!1});return 0!==a&&i?setMajorTicks(e,r,n,i):r}class TimeScale extends Scale{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const i=e.time||(e.time={}),r=this._adapter=new adapters._date(e.adapters.date);r.init(t),mergeIf(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:parse(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,i=e.time.unit||"day";let{min:r,max:n,minDefined:a,maxDefined:s}=this.getUserBounds();function o(e){a||isNaN(e.min)||(r=Math.min(r,e.min)),s||isNaN(e.max)||(n=Math.max(n,e.max))}a&&s||(o(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||o(this.getMinMax(!1))),r=isNumberFinite(r)&&!isNaN(r)?r:+t.startOf(Date.now(),i),n=isNumberFinite(n)&&!isNaN(n)?n:+t.endOf(Date.now(),i)+1,this.min=Math.min(r,n-1),this.max=Math.max(r+1,n)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],i=e[e.length-1]),{min:t,max:i}}buildTicks(){const e=this.options,t=e.time,i=e.ticks,r="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const n=this.min,a=_filterBetween(r,n,this.max);return this._unit=t.unit||(i.autoSkip?determineUnitForAutoTicks(t.minUnit,this.min,this.max,this._getLabelCapacity(n)):determineUnitForFormatting(this,a.length,t.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?determineMajorUnit(this._unit):void 0,this.initOffsets(r),e.reverse&&a.reverse(),ticksFromTimestamps(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let t,i,r=0,n=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),r=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,i=this.getDecimalForValue(e[e.length-1]),n=1===e.length?i:(i-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;r=_limitValue(r,0,a),n=_limitValue(n,0,a),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const e=this._adapter,t=this.min,i=this.max,r=this.options,n=r.time,a=n.unit||determineUnitForAutoTicks(n.minUnit,t,i,this._getLabelCapacity(t)),s=valueOrDefault(r.ticks.stepSize,1),o="week"===a&&n.isoWeekday,l=isNumber(o)||!0===o,c={};let h,p,u=t;if(l&&(u=+e.startOf(u,"isoWeek",o)),u=+e.startOf(u,l?"day":a),e.diff(i,t,a)>1e5*s)throw new Error(t+" and "+i+" are too far apart with stepSize of "+s+" "+a);const d="data"===r.ticks.source&&this.getDataTimestamps();for(h=u,p=0;h<i;h=+e.add(h,s,a),p++)addTick(c,h,d);return h!==i&&"ticks"!==r.bounds&&1!==p||addTick(c,h,d),Object.keys(c).sort(sorter).map(e=>+e)}getLabelForValue(e){const t=this._adapter,i=this.options.time;return i.tooltipFormat?t.format(e,i.tooltipFormat):t.format(e,i.displayFormats.datetime)}format(e,t){const i=this.options.time.displayFormats,r=this._unit,n=t||i[r];return this._adapter.format(e,n)}_tickFormatFunction(e,t,i,r){const n=this.options,a=n.ticks.callback;if(a)return callback(a,[e,t,i],this);const s=n.time.displayFormats,o=this._unit,l=this._majorUnit,c=o&&s[o],h=l&&s[l],p=i[t],u=l&&h&&p&&p.major;return this._adapter.format(e,r||(u?h:c))}generateTickLabels(e){let t,i,r;for(t=0,i=e.length;t<i;++t)r=e[t],r.label=this._tickFormatFunction(r.value,t,e)}getDecimalForValue(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,i=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+i)*t.factor)}getValueForPixel(e){const t=this._offsets,i=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+i*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,i=this.ctx.measureText(e).width,r=toRadians(this.isHorizontal()?t.maxRotation:t.minRotation),n=Math.cos(r),a=Math.sin(r),s=this._resolveTickFontOptions(0).size;return{w:i*n+s*a,h:i*a+s*n}}_getLabelCapacity(e){const t=this.options.time,i=t.displayFormats,r=i[t.unit]||i.millisecond,n=this._tickFormatFunction(e,0,ticksFromTimestamps(this,[e],this._majorUnit),r),a=this._getLabelSize(n),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let e,t,i=this._cache.data||[];if(i.length)return i;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)i=i.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const e=this._cache.labels||[];let t,i;if(e.length)return e;const r=this.getLabels();for(t=0,i=r.length;t<i;++t)e.push(parse(this,r[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return _arrayUnique(e.sort(sorter))}}function interpolate(e,t,i){let r,n,a,s,o=0,l=e.length-1;i?(t>=e[o].pos&&t<=e[l].pos&&({lo:o,hi:l}=_lookupByKey(e,"pos",t)),({pos:r,time:a}=e[o]),({pos:n,time:s}=e[l])):(t>=e[o].time&&t<=e[l].time&&({lo:o,hi:l}=_lookupByKey(e,"time",t)),({time:r,pos:a}=e[o]),({time:n,pos:s}=e[l]));const c=n-r;return c?a+(s-a)*(t-r)/c:a}class TimeSeriesScale extends TimeScale{static id="timeseries";static defaults=TimeScale.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=interpolate(t,this.min),this._tableRange=interpolate(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:i}=this,r=[],n=[];let a,s,o,l,c;for(a=0,s=e.length;a<s;++a)l=e[a],l>=t&&l<=i&&r.push(l);if(r.length<2)return[{time:t,pos:0},{time:i,pos:1}];for(a=0,s=r.length;a<s;++a)c=r[a+1],o=r[a-1],l=r[a],Math.round((c+o)/2)!==l&&n.push({time:l,pos:a/(s-1)});return n}_generate(){const e=this.min,t=this.max;let i=super.getDataTimestamps();return i.includes(e)&&i.length||i.splice(0,0,e),i.includes(t)&&1!==i.length||i.push(t),i.sort((e,t)=>e-t)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),i=this.getLabelTimestamps();return e=t.length&&i.length?this.normalize(t.concat(i)):t.length?t:i,e=this._cache.all=e,e}getDecimalForValue(e){return(interpolate(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,i=this.getDecimalForPixel(e)/t.factor-t.end;return interpolate(this._table,i*this._tableRange+this._minPos,!0)}}const getCSSVariable=(e,t=1,i="#666666")=>{const r=getComputedStyle(document.documentElement).getPropertyValue(e).trim();if(!r)return console.warn(`CSS variable ${e} not found, using fallback color: ${i}`),i;if(1===t)return r;if(r.startsWith("#")){const e=r.replace("#","");return`rgba(${parseInt(e.substr(0,2),16)}, ${parseInt(e.substr(2,2),16)}, ${parseInt(e.substr(4,2),16)}, ${t})`}return r.startsWith("rgb")?r.startsWith("rgba")?r.replace(/[\d.]+\)$/,`${t})`):r.replace("rgb","rgba").replace(")",`, ${t})`):r};function BasicPriceChart({legend:e,chartOptions:t,noChartDisplay:i,id:r,className:n}){var a;const s=React.useRef(null),o=React.useRef(null);return React.useLayoutEffect(()=>{var e,i;if(!s.current)return;const r=s.current.getContext("2d");if(!r)return;const n=null==r?void 0:r.createLinearGradient(0,0,300,0);return null==n||n.addColorStop(0,getCSSVariable("--secondary-color")),null==n||n.addColorStop(.3,getCSSVariable("--secondary-dark-color")),null==n||n.addColorStop(.7,getCSSVariable("--primary-color")),o.current&&o.current.destroy(),(null===(e=t.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(t.data.datasets[0].backgroundColor=[n,"rgba(0, 0, 0, 0.2)"]),(null===(i=t.data.datasets[0])||void 0===i?void 0:i.borderColor)&&(t.data.datasets[0].borderColor=[n,"rgba(0, 0, 0, 0.2)"]),o.current=new Chart(r,t),()=>{var e;null===(e=o.current)||void 0===e||e.destroy()}},[t]),require$$0.jsx("div",{id:r,className:"basic-price-chart"+(n?" "+n:""),children:require$$0.jsx("div",{className:"basic-price-chart__content",children:(null===(a=t.data.datasets[0])||void 0===a?void 0:a.data.every(e=>0===e))?require$$0.jsx("div",{className:"basic-price-chart__empty",children:null!=i?i:require$$0.jsx("div",{children:"Kein Chart verfügbar"})}):require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("div",{className:"basic-price-chart__chart",children:require$$0.jsx("canvas",{ref:s})}),e]})})})}function LvEditingStatusChart({chartOptions:e,legend:t,noChartDisplay:i,id:r,className:n}){var a;const s=React.useRef(null),o=React.useRef(null);return React.useLayoutEffect(()=>{var t,i;if(!s.current)return;const r=s.current.getContext("2d");return r?(o.current&&o.current.destroy(),(null===(t=e.data.datasets[0])||void 0===t?void 0:t.backgroundColor)&&(e.data.datasets[0].backgroundColor=[getCSSVariable("--warning-color",.6),getCSSVariable("--valid-color",.6),getCSSVariable("--error-color",.6)]),(null===(i=e.data.datasets[0])||void 0===i?void 0:i.borderColor)&&(e.data.datasets[0].borderColor=[getCSSVariable("--warning-color",.6),getCSSVariable("--valid-color",.6),getCSSVariable("--error-color",.6)]),o.current=new Chart(r,e),()=>{var e;null===(e=o.current)||void 0===e||e.destroy()}):void 0},[]),require$$0.jsx("div",{id:r,className:"lv-editing-status-chart"+(n?" "+n:""),children:require$$0.jsx("div",{className:"lv-editing-status-chart__content",children:(null===(a=e.data.datasets[0])||void 0===a?void 0:a.data.every(e=>0===e))?require$$0.jsx("div",{className:"lv-editing-status-chart__empty",children:null!=i?i:require$$0.jsx("div",{children:"Kein Chart verfügbar"})}):require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("div",{className:"lv-editing-status-chart__chart",children:require$$0.jsx("canvas",{ref:s})}),t]})})})}function LvInsightsChart({chartOptions:e,legend:t,noChartDisplay:i,id:r,className:n}){var a;const s=React.useRef(null),o=React.useRef(null),l=[getCSSVariable("--secondary-color",.7),getCSSVariable("--primary-color",.7),getCSSVariable("--info-color",.7),getCSSVariable("--diagram-color-5",.7)],c=[getCSSVariable("--secondary-color",1),getCSSVariable("--primary-color",1),getCSSVariable("--info-color",1),getCSSVariable("--diagram-color-5",1)];return React.useLayoutEffect(()=>{var t,i;if(!s.current)return;const r=s.current.getContext("2d");return r?(o.current&&o.current.destroy(),(null===(t=e.data.datasets[0])||void 0===t?void 0:t.backgroundColor)&&(e.data.datasets[0].backgroundColor=l),(null===(i=e.data.datasets[0])||void 0===i?void 0:i.hoverBackgroundColor)&&(e.data.datasets[0].hoverBackgroundColor=c),o.current=new Chart(r,e),()=>{var e;null===(e=o.current)||void 0===e||e.destroy()}):void 0},[]),require$$0.jsx("div",{id:r,className:"lv-insights"+(n?" "+n:""),children:require$$0.jsx("div",{className:"lv-insights__content",children:(null===(a=e.data.datasets[0])||void 0===a?void 0:a.data.every(e=>0===e))?require$$0.jsx("div",{className:"lv-insights__empty",children:null!=i?i:require$$0.jsx("div",{children:"Kein Chart verfügbar"})}):require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("div",{className:"lv-insights__chart",children:require$$0.jsx("canvas",{ref:s})}),t]})})})}function ContractPotentialsChart({chartOptions:e,legend:t,noChartDisplay:i,id:r,className:n}){var a,s;const o=React.useRef(null),l=React.useRef(null);return React.useLayoutEffect(()=>{var t,i;if(!o.current)return;const r=o.current.getContext("2d");return r?(l.current&&l.current.destroy(),(null===(t=e.data.datasets[0])||void 0===t?void 0:t.backgroundColor)&&(e.data.datasets[0].backgroundColor=[getCSSVariable("--secondary-color-50")]),(null===(i=e.data.datasets[1])||void 0===i?void 0:i.backgroundColor)&&(e.data.datasets[1].backgroundColor=[getCSSVariable("--primary-color-68",1)]),l.current=new Chart(r,e),()=>{var e;null===(e=l.current)||void 0===e||e.destroy()}):void 0},[e]),require$$0.jsx("div",{id:r,className:"contract-potentials"+(n?" "+n:""),children:require$$0.jsx("div",{className:"contract-potentials__content",children:(null===(a=e.data.datasets[0])||void 0===a?void 0:a.data.every(e=>0===e))&&(null===(s=e.data.datasets[1])||void 0===s?void 0:s.data.every(e=>0===e))?require$$0.jsx("div",{className:"contract-potentials__empty",children:null!=i?i:require$$0.jsx("div",{children:"Kein Chart verfügbar"})}):require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("div",{className:"contract-potentials__chart",children:require$$0.jsx("canvas",{ref:o})}),t]})})})}function BeeLabel({id:e,className:t,value:i,size:r="medium",type:n="neutral"}){const a=null!=e?e:libExports.useId(1,"bee-info-label-")[0],s="bee-label "+("neutral"===n?" bee-info-neutral-label":"valid"===n?" bee-info-valid-label":"error"===n?" bee-error-label":"")+("small"===r?" bee-info-label-small":"medium"===r?" bee-info-label-medium":"large"===r?" bee-info-label-large":" bee-info-label-medium")+(t?" "+t:"");return require$$0.jsx("span",{id:a,className:s,children:i})}Chart.register(DoughnutController,ArcElement,plugin_tooltip,plugin_legend),Chart.register(PieController,ArcElement,plugin_tooltip,plugin_legend),Chart.register(DoughnutController,ArcElement,plugin_tooltip,plugin_legend),Chart.register(BarController,CategoryScale,LinearScale,BarElement,plugin_tooltip,plugin_legend);const EMPTY_FIELD_PLACEHOLDER=" — ";function BeeTextInput({id:e,className:t,label:i,value:r,disabled:n,statusLabel:a,formstate:s="neutral",halfRounded:o,readOnly:l,required:c,placeholder:h,tooltip:p,tooltipOptions:u,onChange:d,onFocusOut:f}){var m;const g=null!==(m=null!=e?e:libExports.useId(1,"bee-txt-input-")[0])&&void 0!==m?m:"bee-txt-input";let v="";l&&(v=" bee-txt-input-readOnly",n=!0);const y="bee-txt-input "+("valid"===s?" bee-txt-input-valid":"error"===s?" bee-txt-input-error":"neutral"===s?" bee-txt-input-neutral":"none"===s?" bee-cur-input-field-neutral":" bee-txt-input-neutral"),b="p-float-label bee-txt-input-container"+v+(o?" half-rounded":"");return require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("div",{id:g,className:b+(t?" "+t:""),children:l&&!r?require$$0.jsx(BeePlaceholder,{id:g,label:i}):require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx(inputtext.InputText,{id:g+"input",value:null!=r?r:void 0,disabled:null!=n&&n,className:y,placeholder:h,tooltip:p,tooltipOptions:u,onChange:e=>function(e){!n&&d&&d(e)}(e),onBlur:e=>function(e){!n&&f&&f(e)}(e)}),i?require$$0.jsxs("label",{htmlFor:g+"input",className:"bee-txt-input-label",children:[i,c&&i?require$$0.jsx("span",{className:"bee-txt-input-label-required",children:require$$0.jsx("span",{className:"bee-txt-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=s&&a?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-text-input-statusLabel",children:"error"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"error"}):"valid"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"valid"}):"neutral"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"neutral"}):null})})():null]})}function BeePlaceholder({id:e,className:t,label:i,disabled:r}){const n=null!=e?e:libExports.useId(1,"bee-placeholder-")[0];return require$$0.jsx(BeeTextInput,{id:n+"input",label:i,value:EMPTY_FIELD_PLACEHOLDER,className:null!=t?t:"",disabled:null==r||r,readOnly:!0,formstate:"neutral"})}function BeeAutocompleteDropdown({id:e,className:t,label:i,value:r,suggestions:n,disabled:a,statusLabel:s,formstate:o="neutral",readOnly:l,required:c,placeholder:h,tooltip:p,tooltipOptions:u,onChange:d,onFocusOut:f}){const m=null!=e?e:libExports.useId(1,"bee-autocomplete-dropdown-")[0],[g,v]=React.useState(null!=n?n:[]),y="bee-autocomplete-dropdown "+("valid"===o?" bee-autocomplete-dropdown-valid":"error"===o?" bee-autocomplete-dropdown-error":"neutral"===o?" bee-autocomplete-dropdown-neutral":"none"===o?" bee-autocomplete-dropdodown-none":" bee-autocomplete-dropdown-neutral"),b="p-float-label bee-autocomplete-dropdown-container"+(l?" bee-autocomplete-dropdown-readOnly":"")+(a?" bee-autocomplete-dropdown-disabled":"");return require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("span",{id:m,className:b+(t?" "+t:""),children:l&&!r?require$$0.jsx(BeePlaceholder,{id:m,label:i}):require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx(autocomplete.AutoComplete,{id:m+"input",value:null!=r?r:void 0,dropdown:!0,suggestions:g,disabled:null!=a&&a,className:y,placeholder:h,tooltip:p,tooltipOptions:u,onChange:e=>function(e){!a&&d&&d(e)}(e),onBlur:e=>function(e){!a&&f&&f(e)}(e),completeMethod:e=>{const t=(null!=n?n:[]).filter(t=>String(t).toLowerCase().startsWith(e.query.toLowerCase()));v(t)}}),i?require$$0.jsxs("label",{htmlFor:m+"input",className:"bee-autocomplete-dropdown-label",children:[i,c&&i?require$$0.jsx("span",{className:"bee-autocomplete-dropdown-label-required",children:require$$0.jsx("span",{className:"bee-autocomplete-dropdown-label-required-star",children:" *"})}):null]}):null]})}),"none"!=o&&s?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-autocomplete-dropdown-statusLabel",children:"error"===o&&s?require$$0.jsx(BeeLabel,{size:e,value:s,type:"error"}):"valid"===o&&s?require$$0.jsx(BeeLabel,{size:e,value:s,type:"valid"}):"neutral"===o&&s?require$$0.jsx(BeeLabel,{size:e,value:s,type:"neutral"}):null})})():null]})}function BeeAutocompleteTag({id:e,className:t,label:i,value:r,suggestions:n,disabled:a,statusLabel:s,formstate:o="neutral",readOnly:l,required:c,placeholder:h,tooltip:p,tooltipOptions:u,onChange:d,onFocusOut:f}){const m=null!=e?e:libExports.useId(1,"bee-autocomplete-tag-")[0],[g,v]=React.useState(null!=n?n:[]);let y="";l&&(y=" bee-autocomplete-tag-readOnly",a=!0);const b="bee-autocomplete-tag "+("valid"===o?" bee-autocomplete-tag-valid":"error"===o?" bee-autocomplete-tag-error":"neutral"===o?" bee-autocomplete-tag-neutral":"none"===o?" bee-cur-input-field-neutral":" bee-autocomplete-tag-neutral"),x="p-float-label bee-autocomplete-tag-container"+y;const _=void 0===r?[]:Array.isArray(r)?r.map(String):[String(r)];return require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("div",{id:m,className:x+(t?" "+t:""),children:l&&!r?require$$0.jsx(BeePlaceholder,{id:m,label:i}):require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx(autocomplete.AutoComplete,{id:m+"input",value:_,multiple:!0,suggestions:g,disabled:null!=a&&a,className:b,placeholder:h,tooltip:p,tooltipOptions:u,onChange:e=>function(e){!a&&d&&d(e)}(e),onBlur:e=>function(e){!a&&f&&f(e)}(e),completeMethod:e=>{const t=(null!=n?n:[]).filter(t=>String(t).toLowerCase().startsWith(e.query.toLowerCase()));v(t)}}),i?require$$0.jsxs("label",{htmlFor:m+"input",className:"bee-autocomplete-tag-label",children:[i,c&&i?require$$0.jsx("span",{className:"bee-autocomplete-tag-label-required",children:require$$0.jsx("span",{className:"bee-autocomplete-tag-label-required-star",children:" *"})}):null]}):null]})}),"none"!=o&&s?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-autocomplete-tag-statusLabel",children:"error"===o&&s?require$$0.jsx(BeeLabel,{size:e,value:s,type:"error"}):"valid"===o&&s?require$$0.jsx(BeeLabel,{size:e,value:s,type:"valid"}):"neutral"===o&&s?require$$0.jsx(BeeLabel,{size:e,value:s,type:"neutral"}):null})})():null]})}function BeeBadge({id:e,className:t,label:i,type:r="primary",size:n="normal"}){const a=null!=e?e:libExports.useId(1,"bee-badge-")[0],s="primary"===r?"bee-badge bee-badge-primary":"secondary"===r?"bee-badge bee-badge-secondary":"danger"===r?"bee-badge bee-badge-danger":"bee-badge bee-badge-primary"+(t?" "+t:"");return require$$0.jsx(badge.Badge,{id:a,value:i,className:s,size:n})}function BeeContentHeadline({id:e,className:t,value:i,headlineType:r="h1",type:n="primary"}){const a=null!=e?e:libExports.useId(1,"bee-content-headline-")[0],s="primary"===n?"bee-headline bee-headline-primary":"secondary"===n?"bee-headline bee-headline-secondary":"bee-headline bee-headline-primary"+(t?" "+t:"");return"h1"===r?require$$0.jsx("h1",{id:a,className:s,children:i}):"h2"===r?require$$0.jsx("h2",{id:a,className:s,children:i}):"h3"===r?require$$0.jsx("h3",{id:a,className:s,children:i}):"h4"===r?require$$0.jsx("h4",{id:a,className:s,children:i}):"h5"===r?require$$0.jsx("h5",{id:a,className:s,children:i}):require$$0.jsx("h1",{id:a,className:s,children:i})}function BeeContentParagraph({id:e,className:t,value:i,size:r="medium",type:n="primary"}){const a=null!=e?e:libExports.useId(1,"bee-content-paragraph-")[0],s="bee-content-paragraph"+("xSmall"===r?" bee-content-paragraph-xsmall":"small"===r?" bee-content-paragraph-small":"medium"===r?" bee-content-paragraph-medium":"large"===r?" bee-content-paragraph-large":"xLarge"===r?" bee-content-paragraph-xlarge":" bee-content-paragraph-medium")+("primary"===n?" bee-content-paragraph-primary":"secondary"===n?" bee-content-paragraph-secondary":"")+(t?" "+t:"");return require$$0.jsx("p",{id:a,className:s,children:i})}function BeeLink({id:e,className:t,value:i,href:r,type:n="primary",size:a="medium",onClick:s}){const o=null!=e?e:libExports.useId(1,"bee-link-")[0],l="bee-link"+("primary"===n?" bee-link-primary":"secondary"===n?" bee-link-secondary":" bee-link-default")+("xSmall"===a?" bee-link-size-xSmall":"small"===a?" bee-link-size-small":"medium"===a?" bee-link-size-medium":"large"===a?" bee-link-size-large":"xLarge"===a?" bee-link-size-xLarge":" bee-link-size-medium");return require$$0.jsx(require$$0.Fragment,{children:r?require$$0.jsx("a",{id:o,className:l+(t?" "+t:""),href:r,children:i}):require$$0.jsx("a",{id:o,className:l+(t?" "+t:""),onClick:e=>function(e){s&&s(e)}(e),children:i})})}function BeeSequencePosition({id:e,className:t,data:i,type:r="primary"}){const n=null!=e?e:libExports.useId(1,"bee-seq-pos-")[0],a="bee-seq-pos"+("primary"===r?" bee-seq-pos-primary":"secondary"===r?" bee-seq-pos-secondary":"default"===r?" bee-seq-pos-default":" bee-seq-pos-primary")+(t?" "+t:"");return require$$0.jsx("div",{id:n,className:a,children:(()=>{if(i){let e=[];return i.forEach((t,i)=>{e.push(((e,t)=>{const i=(null==e?void 0:e.bold)?"bee-seq-pos-bold":void 0;return require$$0.jsxs("span",{children:[(null==e?void 0:e.icon)?require$$0.jsx("i",{className:e.icon}):null,null!=(null==e?void 0:e.label)?require$$0.jsx("span",{className:i,children:e.label}):null]},`SeqPos_${t}`)})(t,i)),e.push(require$$0.jsx("i",{className:"pi pi-chevron-right bee-seq-pos-separator"},">_"+i))}),e.pop(),e}})()})}function BeeChipInput({id:e,className:t,label:i,type:r="primary",data:n=[],statusLabel:a,formstate:s="neutral",required:o,disabled:l,readOnly:c,placeholder:h,tooltip:p,tooltipOptions:u,itemTemplate:d,onChange:f}){var m;const g=null!==(m=null!=e?e:libExports.useId(1,"bee-chip-input-")[0])&&void 0!==m?m:"bee-chip-input",v="bee-chip-input p-float-label"+("primary"===r?" bee-chip-input-primary":"secondary"===r?" bee-chip-input-secondary":" bee-chip-input-primary")+(c?" bee-chip-input-readOnly":"")+(l?" bee-chip-input-disabled":"")+("valid"===s?" bee-chip-input-field-valid":"error"===s?" bee-chip-input-field-error":" bee-chip-input-field-neutral")+(t?" "+t:""),y=o?"bee-chip-input-label-required":"",b=o?"bee-chip-input-label-required-star":"";return require$$0.jsxs("div",{id:g,className:v,children:[require$$0.jsx(require$$0.Fragment,{children:c&&!n||c&&n.length<1?require$$0.jsx(BeePlaceholder,{id:g,label:i}):require$$0.jsx(require$$0.Fragment,{children:require$$0.jsx(chips.Chips,Object.assign({value:n},void 0!==d?{itemTemplate:d}:{},{onChange:e=>function(e){!l&&f&&f(e)}(e),separator:",",addOnBlur:!0,removable:!c,readOnly:null!=c&&c,placeholder:h,tooltip:p,tooltipOptions:u}))})}),i?require$$0.jsxs("label",{className:"bee-chip-input-label",children:[i,o?require$$0.jsx("span",{className:y,children:require$$0.jsx("span",{className:b,children:" *"})}):null]}):null,"none"!=s&&a?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-chip-input-statusLabel",children:"error"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"error"}):"valid"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"valid"}):"neutral"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"neutral"}):null})})():null]})}function BeeCurrencyInput({id:e,className:t,label:i,value:r,showArrow:n,disabled:a,autoFocus:s,minFractionDigits:o,maxFractionDigits:l,max:c,min:h,currency:p="EUR",locale:u="de-DE",statusLabel:d,formstate:f="neutral",readOnly:m,required:g,placeholder:v,name:y,tooltip:b,tooltipOptions:x,onChange:_,onFocusOut:S}){var w;const C=null!==(w=null!=e?e:libExports.useId(1,"bee-cur-input-")[0])&&void 0!==w?w:"bee-cur-input",P=null!=o?o:2,E=null!=l?l:2;let k="";m&&(k=" bee-cur-input-field-readOnly",a=!0);const $=" bee-cur-input-container "+(n?" bee-cur-input-container--showArrow ":""),A="bee-cur-input-field"+("valid"===f?" bee-cur-input-field-valid":"error"===f?" bee-cur-input-field-error":" bee-cur-input-field-neutral")+k,T="icon icon-right-arrow "+(r&&r>0?"up-arrow":r&&r<0?"down-arrow":"");return require$$0.jsxs("div",{children:[m&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:C,label:i})}):require$$0.jsxs("div",{className:$+(t?" "+t:""),children:[n?require$$0.jsx("i",{className:T}):null,require$$0.jsxs("span",{id:C,className:"p-float-label ",children:[require$$0.jsx(inputnumber.InputNumber,{id:C+"input",value:null!=r?r:null,disabled:null!=a&&a,minFractionDigits:P,maxFractionDigits:E,max:c,min:h,autoFocus:s,mode:"currency",currency:p,inputId:C+"_input",inputClassName:A,locale:u,placeholder:v,name:y,tooltip:b,tooltipOptions:x,onValueChange:e=>function(e){!a&&_&&_(e)}(e),onBlur:e=>function(e){!a&&S&&S(e)}(e)}),i?require$$0.jsxs("label",{htmlFor:C+"input",className:"bee-cur-input-label",children:[i,g&&i?require$$0.jsx("span",{className:"bee-cur-input-label-required",children:require$$0.jsx("span",{className:"bee-cur-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=f&&d?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-cur-input-statusLabel",children:"error"===f&&d?require$$0.jsx(BeeLabel,{size:e,value:d,type:"error"}):"valid"===f&&d?require$$0.jsx(BeeLabel,{size:e,value:d,type:"valid"}):"neutral"===f&&d?require$$0.jsx(BeeLabel,{size:e,value:d,type:"neutral"}):null})})():null]})}function BeeDateInput({id:e,className:t,label:i,value:r,statusLabel:n,formstate:a="neutral",disabled:s,readOnly:o,required:l,showButtonBar:c,dateFormat:h,view:p,minDate:u,maxDate:d,showMinMaxRange:f,showUTCDate:m,placeholder:g,tooltip:v,tooltipOptions:y,onChange:b,onFocusOut:x,panelClassName:_,locale:S="de"}){var w;const C=null!==(w=null!=e?e:libExports.useId(1,"bee-date-input-")[0])&&void 0!==w?w:"bee-date-input";let P="";o&&(P=" bee-date-input-readOnly",s=!0);const E=`bee-date-input ${"valid"===a?" bee-date-input-valid":"error"===a?" bee-date-input-error":" bee-date-input-neutral"} ${P} ${_||""}`;function k(e){if(!e||Array.isArray(e))return null;let t=new Date(e);return new Date(t.getTime()-6e4*t.getTimezoneOffset())}function $(e){if(!e||Array.isArray(e))return;let t=new Date(e);return new Date(t.getTime()+6e4*t.getTimezoneOffset())}function A(e){if(e&&!Array.isArray(e))return e instanceof Date?e:new Date(e)}return require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("div",{id:C,className:"p-float-label bee-date-input-container"+(t?" "+t:""),children:o&&!r?require$$0.jsx(BeePlaceholder,{id:C,label:i}):require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx(calendar.Calendar,{id:C+"input",value:m&&r?$(r):A(r),disabled:null!=s&&s,className:E,showIcon:!0,showButtonBar:null!=c&&c,dateFormat:null!=h?h:"dd.mm.y",view:null!=p?p:"date",minDate:u?m?$(u):A(u):void 0,maxDate:d?m?$(d):A(d):void 0,showMinMaxRange:null!=f&&f,placeholder:g,tooltip:v,tooltipOptions:y,onChange:e=>function(e){var t;!s&&b&&(m?(e.value=null!==(t=k(e.value))&&void 0!==t?t:new Date,b(e)):b(e))}(e),onBlur:e=>function(e){var t,i;!s&&x&&(m?(e.target.value=null!==(i=null===(t=k(e.target.value))||void 0===t?void 0:t.toString())&&void 0!==i?i:e.target.value,x(e)):x(e))}(e),locale:S}),i?require$$0.jsxs("label",{htmlFor:C+"input",className:"bee-date-input-label",children:[i,l&&i?require$$0.jsx("span",{className:"bee-date-input-label-required",children:require$$0.jsx("span",{className:"bee-date-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=a&&n?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-date-input-statusLabel",children:"error"===a&&n?require$$0.jsx(BeeLabel,{size:e,value:n,type:"error"}):"valid"===a&&n?require$$0.jsx(BeeLabel,{size:e,value:n,type:"valid"}):"neutral"===a&&n?require$$0.jsx(BeeLabel,{size:e,value:n,type:"neutral"}):null})})():null]})}function BeeDateTimeInput({id:e,className:t,label:i,value:r,disabled:n,statusLabel:a,formstate:s="neutral",readOnly:o,required:l,minDate:c,maxDate:h,showMinMaxRange:p,placeholder:u,tooltip:d,tooltipOptions:f,onChange:m,onFocusOut:g}){var v;const y=null!==(v=null!=e?e:libExports.useId(1,"bee-date-time-input-")[0])&&void 0!==v?v:"bee-date-time-input";let b="";o&&(b=" bee-date-time-input-readOnly",n=!0);const x="bee-date-time-input"+("valid"===s?" bee-date-time-input-valid":"error"===s?" bee-date-time-input-error":"neutral"===s?" bee-date-time-input-neutral":"none"===s?" bee-date-time-field-neutral":" bee-date-time-input-neutral")+b;return require$$0.jsxs(require$$0.Fragment,{children:[o&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:y,label:i})}):require$$0.jsxs("span",{id:y,className:"p-float-label bee-date-time-input-container"+(t?" "+t:""),children:[require$$0.jsx(calendar.Calendar,{showTime:!0,showSeconds:!0,hourFormat:"24",dateFormat:"dd.mm.yy",value:r,disabled:null!=n&&n,className:x,minDate:c?new Date(c):void 0,maxDate:h?new Date(h):void 0,showMinMaxRange:null!=p&&p,placeholder:u,tooltip:d,tooltipOptions:f,onChange:e=>function(e){!n&&m&&m(e)}(e),onBlur:e=>function(e){!n&&g&&g(e)}(e)}),i?require$$0.jsxs("label",{htmlFor:y+"input",className:"bee-date-time-input-label",children:[i,l&&i?require$$0.jsx("span",{className:"bee-date-time-input-label-required",children:require$$0.jsx("span",{className:"bee-date-time-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=s&&a?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-date-time-input-statusLabel",children:"error"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"error"}):"valid"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"valid"}):"neutral"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"neutral"}):null})})():null]})}function BeeNumberInput({id:e,className:t,label:i,value:r,showArrow:n,autoFocus:a,minFractionDigits:s,maxFractionDigits:o,max:l,min:c,disabled:h,grouping:p,locale:u="de-DE",statusLabel:d,formstate:f="neutral",readOnly:m,required:g,placeholder:v,tooltip:y,tooltipOptions:b,onChange:x,onFocusOut:_}){var S;const w=null!==(S=null!=e?e:libExports.useId(1,"bee-num-input")[0])&&void 0!==S?S:"bee-num-input";let C="";m&&(C=" bee-num-input-readOnly",h=!0);const P=" bee-num-input-container"+(n?" bee-num-input-container--showArrow":""),E="bee-num-input "+("valid"===f?"bee-num-input-valid":"error"===f?"bee-num-input-error":"bee-num-input-neutral")+C,k="icon icon-right-arrow "+(r&&r>0?"up-arrow":r&&r<0?"down-arrow":"");return require$$0.jsxs(require$$0.Fragment,{children:[m&&!r&&0!==r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:w,label:i})}):require$$0.jsxs("div",{className:"flex-grow-0"+P+(t?" "+t:""),children:[n?require$$0.jsx("i",{className:k}):null,require$$0.jsxs("span",{id:w,className:"p-float-label",children:[require$$0.jsx(inputnumber.InputNumber,{id:w+"input",value:null!=r?r:null,disabled:null!=h&&h,mode:"decimal",autoFocus:a,useGrouping:p,minFractionDigits:s,maxFractionDigits:o,max:l,min:c,locale:u,inputClassName:E,placeholder:v,tooltip:y,tooltipOptions:b,onValueChange:e=>function(e){!h&&x&&x(e)}(e),onBlur:e=>function(e){!h&&_&&_(e)}(e)}),i?require$$0.jsxs("label",{htmlFor:w+"input",className:"bee-num-input-label",children:[i,g&&i?require$$0.jsx("span",{className:"bee-num-input-label-required",children:require$$0.jsx("span",{className:"bee-num-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=f&&d?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-num-input-statusLabel",children:"error"===f&&d?require$$0.jsx(BeeLabel,{size:e,value:d,type:"error"}):"valid"===f&&d?require$$0.jsx(BeeLabel,{size:e,value:d,type:"valid"}):"neutral"===f&&d?require$$0.jsx(BeeLabel,{size:e,value:d,type:"neutral"}):null})})():null]})}function BeePasswordInput({id:e,className:t,label:i,value:r,disabled:n,showPwStrength:a,showHint:s,statusLabel:o,formstate:l="neutral",readOnly:c,required:h,placeholder:p,tooltip:u,tooltipOptions:d,onChange:f,onFocusOut:m}){var g;const v=null!==(g=null!=e?e:libExports.useId(1,"bee-pw-input")[0])&&void 0!==g?g:"bee-pw-input";let y="";c&&(y=" bee-pw-input-readOnly",n=!0);const b="bee-pw-input "+("valid"===l?"bee-pw-input-valid":"error"===l?"bee-pw-input-error":"bee-pw-input-neutral"),x="p-float-label bee-pw-container"+y,_=require$$0.jsx("h6",{children:"Passwort wählen"});const S=require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx(divider.Divider,{}),require$$0.jsx("p",{className:"mt-2",children:"Suggestions"}),require$$0.jsxs("ul",{className:"pl-2 ml-2 mt-0",style:{lineHeight:"1.5"},children:[require$$0.jsx("li",{children:"Mind. einen Kleinbuchstaben"}),require$$0.jsx("li",{children:"Mind. einen Großbuchstaben"}),require$$0.jsx("li",{children:"Mind. eine Zahl"}),require$$0.jsx("li",{children:"Mind. 8 Buchstaben/Zahlen"})]})]});return require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("div",{className:null!=t?t:"",children:c&&!r?require$$0.jsx(BeePlaceholder,{id:v,label:i}):require$$0.jsxs("span",{id:v,className:x,children:[require$$0.jsx(password.Password,{id:v+"input",value:null!=r?r:void 0,disabled:null!=n&&n,onChange:e=>function(e){!n&&f&&f(e)}(e),onBlur:m,inputClassName:b,toggleMask:!0,feedback:a,header:s?_:null,footer:s?S:null,placeholder:p,tooltip:u,tooltipOptions:d}),i?require$$0.jsxs("label",{htmlFor:v+"input",className:"bee-pw-input-label",children:[i,h&&i?require$$0.jsx("span",{className:"bee-pw-input-label-required",children:require$$0.jsx("span",{className:"bee-pw-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=l&&o?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-pw-input-statusLabel",children:"error"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"error"}):"valid"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"valid"}):"neutral"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"neutral"}):null})})():null]})}function BeePercentageInput({id:e,className:t,label:i,value:r,showArrow:n,autoFocus:a,minFractionDigits:s,maxFractionDigits:o,max:l,min:c,locale:h="de-DE",disabled:p,grouping:u,statusLabel:d,formstate:f="neutral",readOnly:m,required:g,placeholder:v,tooltip:y,tooltipOptions:b,onChange:x,onFocusOut:_}){var S;const w=null!==(S=null!=e?e:libExports.useId(1,"bee-percent-input")[0])&&void 0!==S?S:"bee-percent-input",C="icon icon-right-arrow "+(r&&r>0?"up-arrow":r&&r<0?"down-arrow":"");let P="";m&&(P=" bee-percent-input-readOnly",p=!0);const E=" bee-percentage-input-container "+(n?" bee-percentage-input-container--showArrow":""),k="bee-percent-input "+("valid"===f?"bee-percent-input-valid":"error"===f?"bee-percent-input-error":"bee-percent-input-neutral")+P;return require$$0.jsxs(require$$0.Fragment,{children:[m&&!r&&0!==r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:w,label:i})}):require$$0.jsxs("div",{className:"flex-grow-0 "+E+(t?" "+t:""),children:[n?require$$0.jsx("i",{className:C}):null,require$$0.jsxs("span",{id:w,className:"p-float-label span-container",children:[require$$0.jsx(inputnumber.InputNumber,{id:w+"input",value:null!=r?r:null,disabled:null!=p&&p,mode:"decimal",suffix:"%",autoFocus:a,useGrouping:u,minFractionDigits:s,maxFractionDigits:o,max:l,min:c,locale:h,inputClassName:k,placeholder:v,tooltip:y,tooltipOptions:b,onValueChange:e=>function(e){!p&&x&&x(e)}(e),onBlur:e=>function(e){!p&&_&&_(e)}(e)}),i?require$$0.jsxs("label",{htmlFor:w+"input",className:"bee-percent-input-label",children:[i,g&&i?require$$0.jsx("span",{className:"bee-percent-input-label-required",children:require$$0.jsx("span",{className:"bee-percent-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=f&&d?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-percent-input-statusLabel",children:"error"===f&&d?require$$0.jsx(BeeLabel,{size:e,value:d,type:"error"}):"valid"===f&&d?require$$0.jsx(BeeLabel,{size:e,value:d,type:"valid"}):"neutral"===f&&d?require$$0.jsx(BeeLabel,{size:e,value:d,type:"neutral"}):null})})():null]})}function BeeTextArea({id:e,className:t,label:i,value:r,rows:n,disabled:a,autoResize:s,statusLabel:o,formstate:l="neutral",readOnly:c,required:h,placeholder:p,tooltip:u,tooltipOptions:d,onChange:f,onFocusOut:m}){var g;const v=null!==(g=null!=e?e:libExports.useId(1,"bee-ta-input-")[0])&&void 0!==g?g:"bee-ta-input";let y="";c&&(y=" bee-ta-input-readOnly",a=!0);const b=("valid"===l?"bee-ta-input-valid":"error"===l?"bee-ta-input-error":"neutral"===l?"bee-ta-input-neutral":"none"===l?" bee-cur-input-field-neutral":"bee-ta-input-neutral")+y;return require$$0.jsxs(require$$0.Fragment,{children:[c&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:v,label:i})}):require$$0.jsxs("span",{id:v,className:"p-float-label bee-ta-input-container"+(t?" "+t:""),children:[require$$0.jsx(require$$0.Fragment,{children:require$$0.jsx(inputtextarea.InputTextarea,{id:v+"input",value:null!=r?r:void 0,rows:n,disabled:null!=a&&a,autoResize:s,className:b,placeholder:p,tooltip:u,tooltipOptions:d,onChange:e=>function(e){!a&&f&&f(e)}(e),onBlur:e=>function(e){!a&&m&&m(e)}(e)})}),i?require$$0.jsxs("label",{htmlFor:v+"input",className:"bee-ta-input-label",children:[i,h&&i?require$$0.jsx("span",{className:"bee-ta-input-label-required",children:require$$0.jsx("span",{className:"bee-ta-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=l&&o?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-ta-input-statusLabel",children:"error"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"error"}):"valid"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"valid"}):"neutral"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"neutral"}):null})})():null]})}function BeeTimeInput({id:e,className:t,label:i,value:r,disabled:n,statusLabel:a,formstate:s="neutral",readOnly:o,required:l,minDate:c,maxDate:h,showMinMaxRange:p,placeholder:u,tooltip:d,tooltipOptions:f,onChange:m,onFocusOut:g}){var v;const y=null!==(v=null!=e?e:libExports.useId(1,"bee-time-input-")[0])&&void 0!==v?v:"bee-time-input";let b="";o&&(b=" bee-time-input-readOnly",n=!0);const x="bee-time-input"+("valid"===s?" bee-time-input-valid":"error"===s?" bee-time-input-error":"neutral"===s?" bee-time-input-neutral":"none"===s?" bee-time-input-field-neutral":" bee-time-input-neutral")+b;return require$$0.jsxs(require$$0.Fragment,{children:[o&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:y,label:i})}):require$$0.jsxs("span",{id:y,className:"p-float-label bee-time-input-container"+(t?" "+t:""),children:[require$$0.jsx(calendar.Calendar,{timeOnly:!0,showTime:!0,hourFormat:"24",value:r,readOnlyInput:null!=o&&o,disabled:null!=n&&n,className:x,minDate:c?new Date(c):void 0,maxDate:h?new Date(h):void 0,showMinMaxRange:null!=p&&p,placeholder:u,tooltip:d,tooltipOptions:f,onChange:e=>function(e){!n&&m&&m(e)}(e),onBlur:e=>function(e){!n&&g&&g(e)}(e)}),i?require$$0.jsxs("label",{htmlFor:y+"input",className:"bee-time-input-label",children:[i,l&&i?require$$0.jsx("span",{className:"bee-time-input-label-required",children:require$$0.jsx("span",{className:"bee-time-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=s&&a?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-time-input-statusLabel",children:"error"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"error"}):"valid"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"valid"}):"neutral"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"neutral"}):null})})():null]})}api.addLocale("de",{firstDayOfWeek:1,dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["Son","Mon","Die","Mit","Don","Fre","Sam"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",clear:"Löschen"});var lodash$1={exports:{}},lodash=lodash$1.exports,hasRequiredLodash;
|
|
21
20
|
/**
|
|
22
21
|
* @license
|
|
23
22
|
* Lodash <https://lodash.com/>
|
|
@@ -25,7 +24,7 @@ function G(e){return e+.5|0}const X=(e,t,n)=>Math.max(Math.min(e,n),t);function
|
|
|
25
24
|
* Released under MIT license <https://lodash.com/license>
|
|
26
25
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
27
26
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
28
|
-
*/var Lr,Fr,Br=(Ir||(Ir=1,Lr=Tr,Fr=Tr.exports,function(){var e,t="Expected a function",n="__lodash_hash_undefined__",i="__lodash_placeholder__",a=32,r=128,o=256,s=1/0,l=9007199254740991,c=NaN,u=4294967295,d=[["ary",r],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",o]],p="[object Arguments]",h="[object Array]",f="[object Boolean]",m="[object Date]",g="[object Error]",v="[object Function]",b="[object GeneratorFunction]",x="[object Map]",y="[object Number]",_="[object Object]",w="[object Promise]",j="[object RegExp]",k="[object Set]",S="[object String]",C="[object Symbol]",N="[object WeakMap]",M="[object ArrayBuffer]",O="[object DataView]",D="[object Float32Array]",z="[object Float64Array]",A="[object Int8Array]",E="[object Int16Array]",P="[object Int32Array]",R="[object Uint8Array]",I="[object Uint8ClampedArray]",T="[object Uint16Array]",L="[object Uint32Array]",F=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,H=RegExp(V.source),U=RegExp($.source),Y=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,X=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,ee=RegExp(Q.source),te=/^\s+/,ne=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,re=/,? & /,oe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,le=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ue=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,fe=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ge=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,be=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",ye="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",we="a-z\\xdf-\\xf6\\xf8-\\xff",je="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="['’]",Ne="["+xe+"]",Me="["+Se+"]",Oe="["+ye+"]",De="\\d+",ze="["+_e+"]",Ae="["+we+"]",Ee="[^"+xe+Se+De+_e+we+je+"]",Pe="\\ud83c[\\udffb-\\udfff]",Re="[^"+xe+"]",Ie="(?:\\ud83c[\\udde6-\\uddff]){2}",Te="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+je+"]",Fe="\\u200d",Be="(?:"+Ae+"|"+Ee+")",We="(?:"+Le+"|"+Ee+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Oe+"|"+Pe+")?",He="["+ke+"]?",Ue=He+$e+"(?:"+Fe+"(?:"+[Re,Ie,Te].join("|")+")"+He+$e+")*",Ye="(?:"+[ze,Ie,Te].join("|")+")"+Ue,Ke="(?:"+[Re+Oe+"?",Oe,Ie,Te,Ne].join("|")+")",Ze=RegExp(Ce,"g"),Ge=RegExp(Oe,"g"),Xe=RegExp(Pe+"(?="+Pe+")|"+Ke+Ue,"g"),Je=RegExp([Le+"?"+Ae+"+"+qe+"(?="+[Me,Le,"$"].join("|")+")",We+"+"+Ve+"(?="+[Me,Le+Be,"$"].join("|")+")",Le+"?"+Be+"+"+qe,Le+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Ye].join("|"),"g"),Qe=RegExp("["+Fe+xe+ye+ke+"]"),et=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nt=-1,it={};it[D]=it[z]=it[A]=it[E]=it[P]=it[R]=it[I]=it[T]=it[L]=!0,it[p]=it[h]=it[M]=it[f]=it[O]=it[m]=it[g]=it[v]=it[x]=it[y]=it[_]=it[j]=it[k]=it[S]=it[N]=!1;var at={};at[p]=at[h]=at[M]=at[O]=at[f]=at[m]=at[D]=at[z]=at[A]=at[E]=at[P]=at[x]=at[y]=at[_]=at[j]=at[k]=at[S]=at[C]=at[R]=at[I]=at[T]=at[L]=!0,at[g]=at[v]=at[N]=!1;var rt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,st=parseInt,lt="object"==typeof W&&W&&W.Object===Object&&W,ct="object"==typeof self&&self&&self.Object===Object&&self,ut=lt||ct||Function("return this")(),dt=Fr&&!Fr.nodeType&&Fr,pt=dt&&Lr&&!Lr.nodeType&&Lr,ht=pt&&pt.exports===dt,ft=ht&<.process,mt=function(){try{var e=pt&&pt.require&&pt.require("util").types;return e||ft&&ft.binding&&ft.binding("util")}catch(e){}}(),gt=mt&&mt.isArrayBuffer,vt=mt&&mt.isDate,bt=mt&&mt.isMap,xt=mt&&mt.isRegExp,yt=mt&&mt.isSet,_t=mt&&mt.isTypedArray;function wt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function jt(e,t,n,i){for(var a=-1,r=null==e?0:e.length;++a<r;){var o=e[a];t(i,o,n(o),e)}return i}function kt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function Nt(e,t){for(var n=-1,i=null==e?0:e.length,a=0,r=[];++n<i;){var o=e[n];t(o,n,e)&&(r[a++]=o)}return r}function Mt(e,t){return!(null==e||!e.length)&&Lt(e,t,0)>-1}function Ot(e,t,n){for(var i=-1,a=null==e?0:e.length;++i<a;)if(n(t,e[i]))return!0;return!1}function Dt(e,t){for(var n=-1,i=null==e?0:e.length,a=Array(i);++n<i;)a[n]=t(e[n],n,e);return a}function zt(e,t){for(var n=-1,i=t.length,a=e.length;++n<i;)e[a+n]=t[n];return e}function At(e,t,n,i){var a=-1,r=null==e?0:e.length;for(i&&r&&(n=e[++a]);++a<r;)n=t(n,e[a],a,e);return n}function Et(e,t,n,i){var a=null==e?0:e.length;for(i&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function Pt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Rt=qt("length");function It(e,t,n){var i;return n(e,function(e,n,a){if(t(e,n,a))return i=n,!1}),i}function Tt(e,t,n,i){for(var a=e.length,r=n+(i?1:-1);i?r--:++r<a;)if(t(e[r],r,e))return r;return-1}function Lt(e,t,n){return t==t?function(e,t,n){for(var i=n-1,a=e.length;++i<a;)if(e[i]===t)return i;return-1}(e,t,n):Tt(e,Bt,n)}function Ft(e,t,n,i){for(var a=n-1,r=e.length;++a<r;)if(i(e[a],t))return a;return-1}function Bt(e){return e!=e}function Wt(e,t){var n=null==e?0:e.length;return n?Ht(e,t)/n:c}function qt(t){return function(n){return null==n?e:n[t]}}function Vt(t){return function(n){return null==t?e:t[n]}}function $t(e,t,n,i,a){return a(e,function(e,a,r){n=i?(i=!1,e):t(n,e,a,r)}),n}function Ht(t,n){for(var i,a=-1,r=t.length;++a<r;){var o=n(t[a]);o!==e&&(i=i===e?o:i+o)}return i}function Ut(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Yt(e){return e?e.slice(0,dn(e)+1).replace(te,""):e}function Kt(e){return function(t){return e(t)}}function Zt(e,t){return Dt(t,function(t){return e[t]})}function Gt(e,t){return e.has(t)}function Xt(e,t){for(var n=-1,i=e.length;++n<i&&Lt(t,e[n],0)>-1;);return n}function Jt(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}var Qt=Vt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),en=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function tn(e){return"\\"+rt[e]}function nn(e){return Qe.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function rn(e,t){return function(n){return e(t(n))}}function on(e,t){for(var n=-1,a=e.length,r=0,o=[];++n<a;){var s=e[n];s!==t&&s!==i||(e[n]=i,o[r++]=n)}return o}function sn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function ln(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function cn(e){return nn(e)?function(e){for(var t=Xe.lastIndex=0;Xe.test(e);)++t;return t}(e):Rt(e)}function un(e){return nn(e)?function(e){return e.match(Xe)||[]}(e):function(e){return e.split("")}(e)}function dn(e){for(var t=e.length;t--&&ne.test(e.charAt(t)););return t}var pn=Vt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function W(ne){var xe=(ne=null==ne?ut:hn.defaults(ut.Object(),ne,hn.pick(ut,tt))).Array,ye=ne.Date,_e=ne.Error,we=ne.Function,je=ne.Math,ke=ne.Object,Se=ne.RegExp,Ce=ne.String,Ne=ne.TypeError,Me=xe.prototype,Oe=we.prototype,De=ke.prototype,ze=ne["__core-js_shared__"],Ae=Oe.toString,Ee=De.hasOwnProperty,Pe=0,Re=function(){var e=/[^.]+$/.exec(ze&&ze.keys&&ze.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ie=De.toString,Te=Ae.call(ke),Le=ut._,Fe=Se("^"+Ae.call(Ee).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ht?ne.Buffer:e,We=ne.Symbol,qe=ne.Uint8Array,Ve=Be?Be.allocUnsafe:e,$e=rn(ke.getPrototypeOf,ke),He=ke.create,Ue=De.propertyIsEnumerable,Ye=Me.splice,Ke=We?We.isConcatSpreadable:e,Xe=We?We.iterator:e,Qe=We?We.toStringTag:e,rt=function(){try{var e=cr(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),lt=ne.clearTimeout!==ut.clearTimeout&&ne.clearTimeout,ct=ye&&ye.now!==ut.Date.now&&ye.now,dt=ne.setTimeout!==ut.setTimeout&&ne.setTimeout,pt=je.ceil,ft=je.floor,mt=ke.getOwnPropertySymbols,Rt=Be?Be.isBuffer:e,Vt=ne.isFinite,fn=Me.join,mn=rn(ke.keys,ke),gn=je.max,vn=je.min,bn=ye.now,xn=ne.parseInt,yn=je.random,_n=Me.reverse,wn=cr(ne,"DataView"),jn=cr(ne,"Map"),kn=cr(ne,"Promise"),Sn=cr(ne,"Set"),Cn=cr(ne,"WeakMap"),Nn=cr(ke,"create"),Mn=Cn&&new Cn,On={},Dn=Rr(wn),zn=Rr(jn),An=Rr(kn),En=Rr(Sn),Pn=Rr(Cn),Rn=We?We.prototype:e,In=Rn?Rn.valueOf:e,Tn=Rn?Rn.toString:e;function Ln(e){if(Qo(e)&&!qo(e)&&!(e instanceof qn)){if(e instanceof Wn)return e;if(Ee.call(e,"__wrapped__"))return Ir(e)}return new Wn(e)}var Fn=function(){function t(){}return function(n){if(!Jo(n))return{};if(He)return He(n);t.prototype=n;var i=new t;return t.prototype=e,i}}();function Bn(){}function Wn(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=e}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=u,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Un(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Hn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new $n(e);this.size=t.size}function Kn(e,t){var n=qo(e),i=!n&&Wo(e),a=!n&&!i&&Uo(e),r=!n&&!i&&!a&&ss(e),o=n||i||a||r,s=o?Ut(e.length,Ce):[],l=s.length;for(var c in e)!t&&!Ee.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||gr(c,l))||s.push(c);return s}function Zn(t){var n=t.length;return n?t[Ui(0,n-1)]:e}function Gn(e,t){return Ar(Na(e),ri(t,0,e.length))}function Xn(e){return Ar(Na(e))}function Jn(t,n,i){(i!==e&&!Lo(t[n],i)||i===e&&!(n in t))&&ii(t,n,i)}function Qn(t,n,i){var a=t[n];Ee.call(t,n)&&Lo(a,i)&&(i!==e||n in t)||ii(t,n,i)}function ei(e,t){for(var n=e.length;n--;)if(Lo(e[n][0],t))return n;return-1}function ti(e,t,n,i){return ui(e,function(e,a,r){t(i,e,n(e),r)}),i}function ni(e,t){return e&&Ma(t,Os(t),e)}function ii(e,t,n){"__proto__"==t&&rt?rt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ai(t,n){for(var i=-1,a=n.length,r=xe(a),o=null==t;++i<a;)r[i]=o?e:ks(t,n[i]);return r}function ri(t,n,i){return t==t&&(i!==e&&(t=t<=i?t:i),n!==e&&(t=t>=n?t:n)),t}function oi(t,n,i,a,r,o){var s,l=1&n,c=2&n,u=4&n;if(i&&(s=r?i(t,a,r,o):i(t)),s!==e)return s;if(!Jo(t))return t;var d=qo(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ee.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return Na(t,s)}else{var h=pr(t),g=h==v||h==b;if(Uo(t))return _a(t,l);if(h==_||h==p||g&&!r){if(s=c||g?{}:fr(t),!l)return c?function(e,t){return Ma(e,dr(e),t)}(t,function(e,t){return e&&Ma(t,Ds(t),e)}(s,t)):function(e,t){return Ma(e,ur(e),t)}(t,ni(s,t))}else{if(!at[h])return r?t:{};s=function(e,t,n){var i,a=e.constructor;switch(t){case M:return wa(e);case f:case m:return new a(+e);case O:return function(e,t){var n=t?wa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case z:case A:case E:case P:case R:case I:case T:case L:return ja(e,n);case x:return new a;case y:case S:return new a(e);case j:return function(e){var t=new e.constructor(e.source,ue.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new a;case C:return i=e,In?ke(In.call(i)):{}}}(t,h,l)}}o||(o=new Yn);var w=o.get(t);if(w)return w;o.set(t,s),as(t)?t.forEach(function(e){s.add(oi(e,n,i,e,t,o))}):es(t)&&t.forEach(function(e,a){s.set(a,oi(e,n,i,a,t,o))});var N=d?e:(u?c?nr:tr:c?Ds:Os)(t);return kt(N||t,function(e,a){N&&(e=t[a=e]),Qn(s,a,oi(e,n,i,a,t,o))}),s}function si(t,n,i){var a=i.length;if(null==t)return!a;for(t=ke(t);a--;){var r=i[a],o=n[r],s=t[r];if(s===e&&!(r in t)||!o(s))return!1}return!0}function li(n,i,a){if("function"!=typeof n)throw new Ne(t);return Mr(function(){n.apply(e,a)},i)}function ci(e,t,n,i){var a=-1,r=Mt,o=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Dt(t,Kt(n))),i?(r=Ot,o=!1):t.length>=200&&(r=Gt,o=!1,t=new Un(t));e:for(;++a<s;){var u=e[a],d=null==n?u:n(u);if(u=i||0!==u?u:0,o&&d==d){for(var p=c;p--;)if(t[p]===d)continue e;l.push(u)}else r(t,d,i)||l.push(u)}return l}Ln.templateSettings={escape:Y,evaluate:K,interpolate:Z,variable:"",imports:{_:Ln}},Ln.prototype=Bn.prototype,Ln.prototype.constructor=Ln,Wn.prototype=Fn(Bn.prototype),Wn.prototype.constructor=Wn,qn.prototype=Fn(Bn.prototype),qn.prototype.constructor=qn,Vn.prototype.clear=function(){this.__data__=Nn?Nn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(t){var i=this.__data__;if(Nn){var a=i[t];return a===n?e:a}return Ee.call(i,t)?i[t]:e},Vn.prototype.has=function(t){var n=this.__data__;return Nn?n[t]!==e:Ee.call(n,t)},Vn.prototype.set=function(t,i){var a=this.__data__;return this.size+=this.has(t)?0:1,a[t]=Nn&&i===e?n:i,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=ei(t,e);return!(n<0||(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,0))},$n.prototype.get=function(t){var n=this.__data__,i=ei(n,t);return i<0?e:n[i][1]},$n.prototype.has=function(e){return ei(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,i=ei(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(jn||$n),string:new Vn}},Hn.prototype.delete=function(e){var t=sr(this,e).delete(e);return this.size-=t?1:0,t},Hn.prototype.get=function(e){return sr(this,e).get(e)},Hn.prototype.has=function(e){return sr(this,e).has(e)},Hn.prototype.set=function(e,t){var n=sr(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Un.prototype.add=Un.prototype.push=function(e){return this.__data__.set(e,n),this},Un.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new $n,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var i=n.__data__;if(!jn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Hn(i)}return n.set(e,t),this.size=n.size,this};var ui=za(bi),di=za(xi,!0);function pi(e,t){var n=!0;return ui(e,function(e,i,a){return n=!!t(e,i,a)}),n}function hi(t,n,i){for(var a=-1,r=t.length;++a<r;){var o=t[a],s=n(o);if(null!=s&&(l===e?s==s&&!os(s):i(s,l)))var l=s,c=o}return c}function fi(e,t){var n=[];return ui(e,function(e,i,a){t(e,i,a)&&n.push(e)}),n}function mi(e,t,n,i,a){var r=-1,o=e.length;for(n||(n=mr),a||(a=[]);++r<o;){var s=e[r];t>0&&n(s)?t>1?mi(s,t-1,n,i,a):zt(a,s):i||(a[a.length]=s)}return a}var gi=Aa(),vi=Aa(!0);function bi(e,t){return e&&gi(e,t,Os)}function xi(e,t){return e&&vi(e,t,Os)}function yi(e,t){return Nt(t,function(t){return Zo(e[t])})}function _i(t,n){for(var i=0,a=(n=va(n,t)).length;null!=t&&i<a;)t=t[Pr(n[i++])];return i&&i==a?t:e}function wi(e,t,n){var i=t(e);return qo(e)?i:zt(i,n(e))}function ji(t){return null==t?t===e?"[object Undefined]":"[object Null]":Qe&&Qe in ke(t)?function(t){var n=Ee.call(t,Qe),i=t[Qe];try{t[Qe]=e;var a=!0}catch(e){}var r=Ie.call(t);return a&&(n?t[Qe]=i:delete t[Qe]),r}(t):function(e){return Ie.call(e)}(t)}function ki(e,t){return e>t}function Si(e,t){return null!=e&&Ee.call(e,t)}function Ci(e,t){return null!=e&&t in ke(e)}function Ni(t,n,i){for(var a=i?Ot:Mt,r=t[0].length,o=t.length,s=o,l=xe(o),c=1/0,u=[];s--;){var d=t[s];s&&n&&(d=Dt(d,Kt(n))),c=vn(d.length,c),l[s]=!i&&(n||r>=120&&d.length>=120)?new Un(s&&d):e}d=t[0];var p=-1,h=l[0];e:for(;++p<r&&u.length<c;){var f=d[p],m=n?n(f):f;if(f=i||0!==f?f:0,!(h?Gt(h,m):a(u,m,i))){for(s=o;--s;){var g=l[s];if(!(g?Gt(g,m):a(t[s],m,i)))continue e}h&&h.push(m),u.push(f)}}return u}function Mi(t,n,i){var a=null==(t=Sr(t,n=va(n,t)))?t:t[Pr(Yr(n))];return null==a?e:wt(a,t,i)}function Oi(e){return Qo(e)&&ji(e)==p}function Di(t,n,i,a,r){return t===n||(null==t||null==n||!Qo(t)&&!Qo(n)?t!=t&&n!=n:function(t,n,i,a,r,o){var s=qo(t),l=qo(n),c=s?h:pr(t),u=l?h:pr(n),d=(c=c==p?_:c)==_,v=(u=u==p?_:u)==_,b=c==u;if(b&&Uo(t)){if(!Uo(n))return!1;s=!0,d=!1}if(b&&!d)return o||(o=new Yn),s||ss(t)?Qa(t,n,i,a,r,o):function(e,t,n,i,a,r,o){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!r(new qe(e),new qe(t)));case f:case m:case y:return Lo(+e,+t);case g:return e.name==t.name&&e.message==t.message;case j:case S:return e==t+"";case x:var s=an;case k:var l=1&i;if(s||(s=sn),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;i|=2,o.set(e,t);var u=Qa(s(e),s(t),i,a,r,o);return o.delete(e),u;case C:if(In)return In.call(e)==In.call(t)}return!1}(t,n,c,i,a,r,o);if(!(1&i)){var w=d&&Ee.call(t,"__wrapped__"),N=v&&Ee.call(n,"__wrapped__");if(w||N){var D=w?t.value():t,z=N?n.value():n;return o||(o=new Yn),r(D,z,i,a,o)}}return!!b&&(o||(o=new Yn),function(t,n,i,a,r,o){var s=1&i,l=tr(t),c=l.length,u=tr(n),d=u.length;if(c!=d&&!s)return!1;for(var p=c;p--;){var h=l[p];if(!(s?h in n:Ee.call(n,h)))return!1}var f=o.get(t),m=o.get(n);if(f&&m)return f==n&&m==t;var g=!0;o.set(t,n),o.set(n,t);for(var v=s;++p<c;){var b=t[h=l[p]],x=n[h];if(a)var y=s?a(x,b,h,n,t,o):a(b,x,h,t,n,o);if(!(y===e?b===x||r(b,x,i,a,o):y)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var _=t.constructor,w=n.constructor;_==w||!("constructor"in t)||!("constructor"in n)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return o.delete(t),o.delete(n),g}(t,n,i,a,r,o))}(t,n,i,a,Di,r))}function zi(t,n,i,a){var r=i.length,o=r,s=!a;if(null==t)return!o;for(t=ke(t);r--;){var l=i[r];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++r<o;){var c=(l=i[r])[0],u=t[c],d=l[1];if(s&&l[2]){if(u===e&&!(c in t))return!1}else{var p=new Yn;if(a)var h=a(u,d,c,t,n,p);if(!(h===e?Di(d,u,3,a,p):h))return!1}}return!0}function Ai(e){return!(!Jo(e)||(t=e,Re&&Re in t))&&(Zo(e)?Fe:he).test(Rr(e));var t}function Ei(e){return"function"==typeof e?e:null==e?tl:"object"==typeof e?qo(e)?Fi(e[0],e[1]):Li(e):ul(e)}function Pi(e){if(!_r(e))return mn(e);var t=[];for(var n in ke(e))Ee.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ri(e){if(!Jo(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=_r(e),n=[];for(var i in e)("constructor"!=i||!t&&Ee.call(e,i))&&n.push(i);return n}function Ii(e,t){return e<t}function Ti(e,t){var n=-1,i=$o(e)?xe(e.length):[];return ui(e,function(e,a,r){i[++n]=t(e,a,r)}),i}function Li(e){var t=lr(e);return 1==t.length&&t[0][2]?jr(t[0][0],t[0][1]):function(n){return n===e||zi(n,e,t)}}function Fi(t,n){return br(t)&&wr(n)?jr(Pr(t),n):function(i){var a=ks(i,t);return a===e&&a===n?Ss(i,t):Di(n,a,3)}}function Bi(t,n,i,a,r){t!==n&&gi(n,function(o,s){if(r||(r=new Yn),Jo(o))!function(t,n,i,a,r,o,s){var l=Cr(t,i),c=Cr(n,i),u=s.get(c);if(u)Jn(t,i,u);else{var d=o?o(l,c,i+"",t,n,s):e,p=d===e;if(p){var h=qo(c),f=!h&&Uo(c),m=!h&&!f&&ss(c);d=c,h||f||m?qo(l)?d=l:Ho(l)?d=Na(l):f?(p=!1,d=_a(c,!0)):m?(p=!1,d=ja(c,!0)):d=[]:ns(c)||Wo(c)?(d=l,Wo(l)?d=ms(l):Jo(l)&&!Zo(l)||(d=fr(c))):p=!1}p&&(s.set(c,d),r(d,c,a,o,s),s.delete(c)),Jn(t,i,d)}}(t,n,s,i,Bi,a,r);else{var l=a?a(Cr(t,s),o,s+"",t,n,r):e;l===e&&(l=o),Jn(t,s,l)}},Ds)}function Wi(t,n){var i=t.length;if(i)return gr(n+=n<0?i:0,i)?t[n]:e}function qi(e,t,n){t=t.length?Dt(t,function(e){return qo(e)?function(t){return _i(t,1===e.length?e[0]:e)}:e}):[tl];var i=-1;t=Dt(t,Kt(or()));var a=Ti(e,function(e,n,a){var r=Dt(t,function(t){return t(e)});return{criteria:r,index:++i,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(a,function(e,t){return function(e,t,n){for(var i=-1,a=e.criteria,r=t.criteria,o=a.length,s=n.length;++i<o;){var l=ka(a[i],r[i]);if(l)return i>=s?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)})}function Vi(e,t,n){for(var i=-1,a=t.length,r={};++i<a;){var o=t[i],s=_i(e,o);n(s,o)&&Xi(r,va(o,e),s)}return r}function $i(e,t,n,i){var a=i?Ft:Lt,r=-1,o=t.length,s=e;for(e===t&&(t=Na(t)),n&&(s=Dt(e,Kt(n)));++r<o;)for(var l=0,c=t[r],u=n?n(c):c;(l=a(s,u,l,i))>-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Hi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var a=t[n];if(n==i||a!==r){var r=a;gr(a)?Ye.call(e,a,1):ca(e,a)}}return e}function Ui(e,t){return e+ft(yn()*(t-e+1))}function Yi(e,t){var n="";if(!e||t<1||t>l)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function Ki(e,t){return Or(kr(e,t,tl),e+"")}function Zi(e){return Zn(Ls(e))}function Gi(e,t){var n=Ls(e);return Ar(n,ri(t,0,n.length))}function Xi(t,n,i,a){if(!Jo(t))return t;for(var r=-1,o=(n=va(n,t)).length,s=o-1,l=t;null!=l&&++r<o;){var c=Pr(n[r]),u=i;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(r!=s){var d=l[c];(u=a?a(d,c,l):e)===e&&(u=Jo(d)?d:gr(n[r+1])?[]:{})}Qn(l,c,u),l=l[c]}return t}var Ji=Mn?function(e,t){return Mn.set(e,t),e}:tl,Qi=rt?function(e,t){return rt(e,"toString",{configurable:!0,enumerable:!1,value:Js(t),writable:!0})}:tl;function ea(e){return Ar(Ls(e))}function ta(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var r=xe(a);++i<a;)r[i]=e[i+t];return r}function na(e,t){var n;return ui(e,function(e,i,a){return!(n=t(e,i,a))}),!!n}function ia(e,t,n){var i=0,a=null==e?i:e.length;if("number"==typeof t&&t==t&&a<=2147483647){for(;i<a;){var r=i+a>>>1,o=e[r];null!==o&&!os(o)&&(n?o<=t:o<t)?i=r+1:a=r}return a}return aa(e,t,tl,n)}function aa(t,n,i,a){var r=0,o=null==t?0:t.length;if(0===o)return 0;for(var s=(n=i(n))!=n,l=null===n,c=os(n),u=n===e;r<o;){var d=ft((r+o)/2),p=i(t[d]),h=p!==e,f=null===p,m=p==p,g=os(p);if(s)var v=a||m;else v=u?m&&(a||h):l?m&&h&&(a||!f):c?m&&h&&!f&&(a||!g):!f&&!g&&(a?p<=n:p<n);v?r=d+1:o=d}return vn(o,4294967294)}function ra(e,t){for(var n=-1,i=e.length,a=0,r=[];++n<i;){var o=e[n],s=t?t(o):o;if(!n||!Lo(s,l)){var l=s;r[a++]=0===o?0:o}}return r}function oa(e){return"number"==typeof e?e:os(e)?c:+e}function sa(e){if("string"==typeof e)return e;if(qo(e))return Dt(e,sa)+"";if(os(e))return Tn?Tn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function la(e,t,n){var i=-1,a=Mt,r=e.length,o=!0,s=[],l=s;if(n)o=!1,a=Ot;else if(r>=200){var c=t?null:Ya(e);if(c)return sn(c);o=!1,a=Gt,l=new Un}else l=t?[]:s;e:for(;++i<r;){var u=e[i],d=t?t(u):u;if(u=n||0!==u?u:0,o&&d==d){for(var p=l.length;p--;)if(l[p]===d)continue e;t&&l.push(d),s.push(u)}else a(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function ca(e,t){var n=-1,i=(t=va(t,e)).length;if(!i)return!0;for(var a=null==e||"object"!=typeof e&&"function"!=typeof e;++n<i;){var r=t[n];if("string"==typeof r){if("__proto__"===r&&!Ee.call(e,"__proto__"))return!1;if("constructor"===r&&n+1<i&&"string"==typeof t[n+1]&&"prototype"===t[n+1]){if(a&&0===n)continue;return!1}}}var o=Sr(e,t);return null==o||delete o[Pr(Yr(t))]}function ua(e,t,n,i){return Xi(e,t,n(_i(e,t)),i)}function da(e,t,n,i){for(var a=e.length,r=i?a:-1;(i?r--:++r<a)&&t(e[r],r,e););return n?ta(e,i?0:r,i?r+1:a):ta(e,i?r+1:0,i?a:r)}function pa(e,t){var n=e;return n instanceof qn&&(n=n.value()),At(t,function(e,t){return t.func.apply(t.thisArg,zt([e],t.args))},n)}function ha(e,t,n){var i=e.length;if(i<2)return i?la(e[0]):[];for(var a=-1,r=xe(i);++a<i;)for(var o=e[a],s=-1;++s<i;)s!=a&&(r[a]=ci(r[a]||o,e[s],t,n));return la(mi(r,1),t,n)}function fa(t,n,i){for(var a=-1,r=t.length,o=n.length,s={};++a<r;){var l=a<o?n[a]:e;i(s,t[a],l)}return s}function ma(e){return Ho(e)?e:[]}function ga(e){return"function"==typeof e?e:tl}function va(e,t){return qo(e)?e:br(e,t)?[e]:Er(gs(e))}var ba=Ki;function xa(t,n,i){var a=t.length;return i=i===e?a:i,!n&&i>=a?t:ta(t,n,i)}var ya=lt||function(e){return ut.clearTimeout(e)};function _a(e,t){if(t)return e.slice();var n=e.length,i=Ve?Ve(n):new e.constructor(n);return e.copy(i),i}function wa(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function ja(e,t){var n=t?wa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ka(t,n){if(t!==n){var i=t!==e,a=null===t,r=t==t,o=os(t),s=n!==e,l=null===n,c=n==n,u=os(n);if(!l&&!u&&!o&&t>n||o&&s&&c&&!l&&!u||a&&s&&c||!i&&c||!r)return 1;if(!a&&!o&&!u&&t<n||u&&i&&r&&!a&&!o||l&&i&&r||!s&&r||!c)return-1}return 0}function Sa(e,t,n,i){for(var a=-1,r=e.length,o=n.length,s=-1,l=t.length,c=gn(r-o,0),u=xe(l+c),d=!i;++s<l;)u[s]=t[s];for(;++a<o;)(d||a<r)&&(u[n[a]]=e[a]);for(;c--;)u[s++]=e[a++];return u}function Ca(e,t,n,i){for(var a=-1,r=e.length,o=-1,s=n.length,l=-1,c=t.length,u=gn(r-s,0),d=xe(u+c),p=!i;++a<u;)d[a]=e[a];for(var h=a;++l<c;)d[h+l]=t[l];for(;++o<s;)(p||a<r)&&(d[h+n[o]]=e[a++]);return d}function Na(e,t){var n=-1,i=e.length;for(t||(t=xe(i));++n<i;)t[n]=e[n];return t}function Ma(t,n,i,a){var r=!i;i||(i={});for(var o=-1,s=n.length;++o<s;){var l=n[o],c=a?a(i[l],t[l],l,i,t):e;c===e&&(c=t[l]),r?ii(i,l,c):Qn(i,l,c)}return i}function Oa(e,t){return function(n,i){var a=qo(n)?jt:ti,r=t?t():{};return a(n,e,or(i,2),r)}}function Da(t){return Ki(function(n,i){var a=-1,r=i.length,o=r>1?i[r-1]:e,s=r>2?i[2]:e;for(o=t.length>3&&"function"==typeof o?(r--,o):e,s&&vr(i[0],i[1],s)&&(o=r<3?e:o,r=1),n=ke(n);++a<r;){var l=i[a];l&&t(n,l,a,o)}return n})}function za(e,t){return function(n,i){if(null==n)return n;if(!$o(n))return e(n,i);for(var a=n.length,r=t?a:-1,o=ke(n);(t?r--:++r<a)&&!1!==i(o[r],r,o););return n}}function Aa(e){return function(t,n,i){for(var a=-1,r=ke(t),o=i(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===n(r[l],l,r))break}return t}}function Ea(t){return function(n){var i=nn(n=gs(n))?un(n):e,a=i?i[0]:n.charAt(0),r=i?xa(i,1).join(""):n.slice(1);return a[t]()+r}}function Pa(e){return function(t){return At(Zs(Ws(t).replace(Ze,"")),e,"")}}function Ra(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Fn(e.prototype),i=e.apply(n,t);return Jo(i)?i:n}}function Ia(t){return function(n,i,a){var r=ke(n);if(!$o(n)){var o=or(i,3);n=Os(n),i=function(e){return o(r[e],e,r)}}var s=t(n,i,a);return s>-1?r[o?n[s]:s]:e}}function Ta(n){return er(function(i){var a=i.length,r=a,o=Wn.prototype.thru;for(n&&i.reverse();r--;){var s=i[r];if("function"!=typeof s)throw new Ne(t);if(o&&!l&&"wrapper"==ar(s))var l=new Wn([],!0)}for(r=l?r:a;++r<a;){var c=ar(s=i[r]),u="wrapper"==c?ir(s):e;l=u&&xr(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[ar(u[0])].apply(l,u[3]):1==s.length&&xr(s)?l[c]():l.thru(s)}return function(){var e=arguments,t=e[0];if(l&&1==e.length&&qo(t))return l.plant(t).value();for(var n=0,r=a?i[n].apply(this,e):t;++n<a;)r=i[n].call(this,r);return r}})}function La(t,n,i,a,o,s,l,c,u,d){var p=n&r,h=1&n,f=2&n,m=24&n,g=512&n,v=f?e:Ra(t);return function r(){for(var b=arguments.length,x=xe(b),y=b;y--;)x[y]=arguments[y];if(m)var _=rr(r),w=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}(x,_);if(a&&(x=Sa(x,a,o,m)),s&&(x=Ca(x,s,l,m)),b-=w,m&&b<d){var j=on(x,_);return Ha(t,n,La,r.placeholder,i,x,j,c,u,d-b)}var k=h?i:this,S=f?k[t]:t;return b=x.length,c?x=function(t,n){for(var i=t.length,a=vn(n.length,i),r=Na(t);a--;){var o=n[a];t[a]=gr(o,i)?r[o]:e}return t}(x,c):g&&b>1&&x.reverse(),p&&u<b&&(x.length=u),this&&this!==ut&&this instanceof r&&(S=v||Ra(S)),S.apply(k,x)}}function Fa(e,t){return function(n,i){return function(e,t,n,i){return bi(e,function(e,a,r){t(i,n(e),a,r)}),i}(n,e,t(i),{})}}function Ba(t,n){return function(i,a){var r;if(i===e&&a===e)return n;if(i!==e&&(r=i),a!==e){if(r===e)return a;"string"==typeof i||"string"==typeof a?(i=sa(i),a=sa(a)):(i=oa(i),a=oa(a)),r=t(i,a)}return r}}function Wa(e){return er(function(t){return t=Dt(t,Kt(or())),Ki(function(n){var i=this;return e(t,function(e){return wt(e,i,n)})})})}function qa(t,n){var i=(n=n===e?" ":sa(n)).length;if(i<2)return i?Yi(n,t):n;var a=Yi(n,pt(t/cn(n)));return nn(n)?xa(un(a),0,t).join(""):a.slice(0,t)}function Va(t){return function(n,i,a){return a&&"number"!=typeof a&&vr(n,i,a)&&(i=a=e),n=ds(n),i===e?(i=n,n=0):i=ds(i),function(e,t,n,i){for(var a=-1,r=gn(pt((t-e)/(n||1)),0),o=xe(r);r--;)o[i?r:++a]=e,e+=n;return o}(n,i,a=a===e?n<i?1:-1:ds(a),t)}}function $a(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=fs(t),n=fs(n)),e(t,n)}}function Ha(t,n,i,r,o,s,l,c,u,d){var p=8&n;n|=p?a:64,4&(n&=~(p?64:a))||(n&=-4);var h=[t,n,o,p?s:e,p?l:e,p?e:s,p?e:l,c,u,d],f=i.apply(e,h);return xr(t)&&Nr(f,h),f.placeholder=r,Dr(f,t,n)}function Ua(e){var t=je[e];return function(e,n){if(e=fs(e),(n=null==n?0:vn(ps(n),292))&&Vt(e)){var i=(gs(e)+"e").split("e");return+((i=(gs(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Ya=Sn&&1/sn(new Sn([,-0]))[1]==s?function(e){return new Sn(e)}:ol;function Ka(e){return function(t){var n=pr(t);return n==x?an(t):n==k?ln(t):function(e,t){return Dt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Za(n,s,l,c,u,d,p,h){var f=2&s;if(!f&&"function"!=typeof n)throw new Ne(t);var m=c?c.length:0;if(m||(s&=-97,c=u=e),p=p===e?p:gn(ps(p),0),h=h===e?h:ps(h),m-=u?u.length:0,64&s){var g=c,v=u;c=u=e}var b=f?e:ir(n),x=[n,s,l,c,u,g,v,d,p,h];if(b&&function(e,t){var n=e[1],a=t[1],s=n|a,l=s<131,c=a==r&&8==n||a==r&&n==o&&e[7].length<=t[8]||384==a&&t[7].length<=t[8]&&8==n;if(!l&&!c)return e;1&a&&(e[2]=t[2],s|=1&n?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Sa(d,u,t[4]):u,e[4]=d?on(e[3],i):t[4]}(u=t[5])&&(d=e[5],e[5]=d?Ca(d,u,t[6]):u,e[6]=d?on(e[5],i):t[6]),(u=t[7])&&(e[7]=u),a&r&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=s}(x,b),n=x[0],s=x[1],l=x[2],c=x[3],u=x[4],!(h=x[9]=x[9]===e?f?0:n.length:gn(x[9]-m,0))&&24&s&&(s&=-25),s&&1!=s)y=8==s||16==s?function(t,n,i){var a=Ra(t);return function r(){for(var o=arguments.length,s=xe(o),l=o,c=rr(r);l--;)s[l]=arguments[l];var u=o<3&&s[0]!==c&&s[o-1]!==c?[]:on(s,c);return(o-=u.length)<i?Ha(t,n,La,r.placeholder,e,s,u,e,e,i-o):wt(this&&this!==ut&&this instanceof r?a:t,this,s)}}(n,s,h):s!=a&&33!=s||u.length?La.apply(e,x):function(e,t,n,i){var a=1&t,r=Ra(e);return function t(){for(var o=-1,s=arguments.length,l=-1,c=i.length,u=xe(c+s),d=this&&this!==ut&&this instanceof t?r:e;++l<c;)u[l]=i[l];for(;s--;)u[l++]=arguments[++o];return wt(d,a?n:this,u)}}(n,s,l,c);else var y=function(e,t,n){var i=1&t,a=Ra(e);return function t(){return(this&&this!==ut&&this instanceof t?a:e).apply(i?n:this,arguments)}}(n,s,l);return Dr((b?Ji:Nr)(y,x),n,s)}function Ga(t,n,i,a){return t===e||Lo(t,De[i])&&!Ee.call(a,i)?n:t}function Xa(t,n,i,a,r,o){return Jo(t)&&Jo(n)&&(o.set(n,t),Bi(t,n,e,Xa,o),o.delete(n)),t}function Ja(t){return ns(t)?e:t}function Qa(t,n,i,a,r,o){var s=1&i,l=t.length,c=n.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(t),d=o.get(n);if(u&&d)return u==n&&d==t;var p=-1,h=!0,f=2&i?new Un:e;for(o.set(t,n),o.set(n,t);++p<l;){var m=t[p],g=n[p];if(a)var v=s?a(g,m,p,n,t,o):a(m,g,p,t,n,o);if(v!==e){if(v)continue;h=!1;break}if(f){if(!Pt(n,function(e,t){if(!Gt(f,t)&&(m===e||r(m,e,i,a,o)))return f.push(t)})){h=!1;break}}else if(m!==g&&!r(m,g,i,a,o)){h=!1;break}}return o.delete(t),o.delete(n),h}function er(t){return Or(kr(t,e,qr),t+"")}function tr(e){return wi(e,Os,ur)}function nr(e){return wi(e,Ds,dr)}var ir=Mn?function(e){return Mn.get(e)}:ol;function ar(e){for(var t=e.name+"",n=On[t],i=Ee.call(On,t)?n.length:0;i--;){var a=n[i],r=a.func;if(null==r||r==e)return a.name}return t}function rr(e){return(Ee.call(Ln,"placeholder")?Ln:e).placeholder}function or(){var e=Ln.iteratee||nl;return e=e===nl?Ei:e,arguments.length?e(arguments[0],arguments[1]):e}function sr(e,t){var n,i,a=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function lr(e){for(var t=Os(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,wr(a)]}return t}function cr(t,n){var i=function(t,n){return null==t?e:t[n]}(t,n);return Ai(i)?i:e}var ur=mt?function(e){return null==e?[]:(e=ke(e),Nt(mt(e),function(t){return Ue.call(e,t)}))}:hl,dr=mt?function(e){for(var t=[];e;)zt(t,ur(e)),e=$e(e);return t}:hl,pr=ji;function hr(e,t,n){for(var i=-1,a=(t=va(t,e)).length,r=!1;++i<a;){var o=Pr(t[i]);if(!(r=null!=e&&n(e,o)))break;e=e[o]}return r||++i!=a?r:!!(a=null==e?0:e.length)&&Xo(a)&&gr(o,a)&&(qo(e)||Wo(e))}function fr(e){return"function"!=typeof e.constructor||_r(e)?{}:Fn($e(e))}function mr(e){return qo(e)||Wo(e)||!!(Ke&&e&&e[Ke])}function gr(e,t){var n=typeof e;return!!(t=null==t?l:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function vr(e,t,n){if(!Jo(n))return!1;var i=typeof t;return!!("number"==i?$o(n)&&gr(t,n.length):"string"==i&&t in n)&&Lo(n[t],e)}function br(e,t){if(qo(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!os(e))||X.test(e)||!G.test(e)||null!=t&&e in ke(t)}function xr(e){var t=ar(e),n=Ln[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var i=ir(n);return!!i&&e===i[0]}(wn&&pr(new wn(new ArrayBuffer(1)))!=O||jn&&pr(new jn)!=x||kn&&pr(kn.resolve())!=w||Sn&&pr(new Sn)!=k||Cn&&pr(new Cn)!=N)&&(pr=function(t){var n=ji(t),i=n==_?t.constructor:e,a=i?Rr(i):"";if(a)switch(a){case Dn:return O;case zn:return x;case An:return w;case En:return k;case Pn:return N}return n});var yr=ze?Zo:fl;function _r(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function wr(e){return e==e&&!Jo(e)}function jr(t,n){return function(i){return null!=i&&i[t]===n&&(n!==e||t in ke(i))}}function kr(t,n,i){return n=gn(n===e?t.length-1:n,0),function(){for(var e=arguments,a=-1,r=gn(e.length-n,0),o=xe(r);++a<r;)o[a]=e[n+a];a=-1;for(var s=xe(n+1);++a<n;)s[a]=e[a];return s[n]=i(o),wt(t,this,s)}}function Sr(e,t){return t.length<2?e:_i(e,ta(t,0,-1))}function Cr(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Nr=zr(Ji),Mr=dt||function(e,t){return ut.setTimeout(e,t)},Or=zr(Qi);function Dr(e,t,n){var i=t+"";return Or(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return kt(d,function(n){var i="_."+n[0];t&n[1]&&!Mt(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(re):[]}(i),n)))}function zr(t){var n=0,i=0;return function(){var a=bn(),r=16-(a-i);if(i=a,r>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(e,arguments)}}function Ar(t,n){var i=-1,a=t.length,r=a-1;for(n=n===e?a:n;++i<n;){var o=Ui(i,r),s=t[o];t[o]=t[i],t[i]=s}return t.length=n,t}var Er=function(e){var t=Ao(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(J,function(e,n,i,a){t.push(i?a.replace(le,"$1"):n||e)}),t});function Pr(e){if("string"==typeof e||os(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Rr(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ir(e){if(e instanceof qn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Na(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Tr=Ki(function(e,t){return Ho(e)?ci(e,mi(t,1,Ho,!0)):[]}),Lr=Ki(function(t,n){var i=Yr(n);return Ho(i)&&(i=e),Ho(t)?ci(t,mi(n,1,Ho,!0),or(i,2)):[]}),Fr=Ki(function(t,n){var i=Yr(n);return Ho(i)&&(i=e),Ho(t)?ci(t,mi(n,1,Ho,!0),e,i):[]});function Br(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=null==n?0:ps(n);return a<0&&(a=gn(i+a,0)),Tt(e,or(t,3),a)}function Wr(t,n,i){var a=null==t?0:t.length;if(!a)return-1;var r=a-1;return i!==e&&(r=ps(i),r=i<0?gn(a+r,0):vn(r,a-1)),Tt(t,or(n,3),r,!0)}function qr(e){return null!=e&&e.length?mi(e,1):[]}function Vr(t){return t&&t.length?t[0]:e}var $r=Ki(function(e){var t=Dt(e,ma);return t.length&&t[0]===e[0]?Ni(t):[]}),Hr=Ki(function(t){var n=Yr(t),i=Dt(t,ma);return n===Yr(i)?n=e:i.pop(),i.length&&i[0]===t[0]?Ni(i,or(n,2)):[]}),Ur=Ki(function(t){var n=Yr(t),i=Dt(t,ma);return(n="function"==typeof n?n:e)&&i.pop(),i.length&&i[0]===t[0]?Ni(i,e,n):[]});function Yr(t){var n=null==t?0:t.length;return n?t[n-1]:e}var Kr=Ki(Zr);function Zr(e,t){return e&&e.length&&t&&t.length?$i(e,t):e}var Gr=er(function(e,t){var n=null==e?0:e.length,i=ai(e,t);return Hi(e,Dt(t,function(e){return gr(e,n)?+e:e}).sort(ka)),i});function Xr(e){return null==e?e:_n.call(e)}var Jr=Ki(function(e){return la(mi(e,1,Ho,!0))}),Qr=Ki(function(t){var n=Yr(t);return Ho(n)&&(n=e),la(mi(t,1,Ho,!0),or(n,2))}),eo=Ki(function(t){var n=Yr(t);return n="function"==typeof n?n:e,la(mi(t,1,Ho,!0),e,n)});function to(e){if(!e||!e.length)return[];var t=0;return e=Nt(e,function(e){if(Ho(e))return t=gn(e.length,t),!0}),Ut(t,function(t){return Dt(e,qt(t))})}function no(t,n){if(!t||!t.length)return[];var i=to(t);return null==n?i:Dt(i,function(t){return wt(n,e,t)})}var io=Ki(function(e,t){return Ho(e)?ci(e,t):[]}),ao=Ki(function(e){return ha(Nt(e,Ho))}),ro=Ki(function(t){var n=Yr(t);return Ho(n)&&(n=e),ha(Nt(t,Ho),or(n,2))}),oo=Ki(function(t){var n=Yr(t);return n="function"==typeof n?n:e,ha(Nt(t,Ho),e,n)}),so=Ki(to),lo=Ki(function(t){var n=t.length,i=n>1?t[n-1]:e;return i="function"==typeof i?(t.pop(),i):e,no(t,i)});function co(e){var t=Ln(e);return t.__chain__=!0,t}function uo(e,t){return t(e)}var po=er(function(t){var n=t.length,i=n?t[0]:0,a=this.__wrapped__,r=function(e){return ai(e,t)};return!(n>1||this.__actions__.length)&&a instanceof qn&&gr(i)?((a=a.slice(i,+i+(n?1:0))).__actions__.push({func:uo,args:[r],thisArg:e}),new Wn(a,this.__chain__).thru(function(t){return n&&!t.length&&t.push(e),t})):this.thru(r)}),ho=Oa(function(e,t,n){Ee.call(e,n)?++e[n]:ii(e,n,1)}),fo=Ia(Br),mo=Ia(Wr);function go(e,t){return(qo(e)?kt:ui)(e,or(t,3))}function vo(e,t){return(qo(e)?St:di)(e,or(t,3))}var bo=Oa(function(e,t,n){Ee.call(e,n)?e[n].push(t):ii(e,n,[t])}),xo=Ki(function(e,t,n){var i=-1,a="function"==typeof t,r=$o(e)?xe(e.length):[];return ui(e,function(e){r[++i]=a?wt(t,e,n):Mi(e,t,n)}),r}),yo=Oa(function(e,t,n){ii(e,n,t)});function _o(e,t){return(qo(e)?Dt:Ti)(e,or(t,3))}var wo=Oa(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),jo=Ki(function(e,t){if(null==e)return[];var n=t.length;return n>1&&vr(e,t[0],t[1])?t=[]:n>2&&vr(t[0],t[1],t[2])&&(t=[t[0]]),qi(e,mi(t,1),[])}),ko=ct||function(){return ut.Date.now()};function So(t,n,i){return n=i?e:n,n=t&&null==n?t.length:n,Za(t,r,e,e,e,e,n)}function Co(n,i){var a;if("function"!=typeof i)throw new Ne(t);return n=ps(n),function(){return--n>0&&(a=i.apply(this,arguments)),n<=1&&(i=e),a}}var No=Ki(function(e,t,n){var i=1;if(n.length){var r=on(n,rr(No));i|=a}return Za(e,i,t,n,r)}),Mo=Ki(function(e,t,n){var i=3;if(n.length){var r=on(n,rr(Mo));i|=a}return Za(t,i,e,n,r)});function Oo(n,i,a){var r,o,s,l,c,u,d=0,p=!1,h=!1,f=!0;if("function"!=typeof n)throw new Ne(t);function m(t){var i=r,a=o;return r=o=e,d=t,l=n.apply(a,i)}function g(t){var n=t-u;return u===e||n>=i||n<0||h&&t-d>=s}function v(){var e=ko();if(g(e))return b(e);c=Mr(v,function(e){var t=i-(e-u);return h?vn(t,s-(e-d)):t}(e))}function b(t){return c=e,f&&r?m(t):(r=o=e,l)}function x(){var t=ko(),n=g(t);if(r=arguments,o=this,u=t,n){if(c===e)return function(e){return d=e,c=Mr(v,i),p?m(e):l}(u);if(h)return ya(c),c=Mr(v,i),m(u)}return c===e&&(c=Mr(v,i)),l}return i=fs(i)||0,Jo(a)&&(p=!!a.leading,s=(h="maxWait"in a)?gn(fs(a.maxWait)||0,i):s,f="trailing"in a?!!a.trailing:f),x.cancel=function(){c!==e&&ya(c),d=0,r=u=o=c=e},x.flush=function(){return c===e?l:b(ko())},x}var Do=Ki(function(e,t){return li(e,1,t)}),zo=Ki(function(e,t,n){return li(e,fs(t)||0,n)});function Ao(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new Ne(t);var i=function(){var t=arguments,a=n?n.apply(this,t):t[0],r=i.cache;if(r.has(a))return r.get(a);var o=e.apply(this,t);return i.cache=r.set(a,o)||r,o};return i.cache=new(Ao.Cache||Hn),i}function Eo(e){if("function"!=typeof e)throw new Ne(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ao.Cache=Hn;var Po=ba(function(e,t){var n=(t=1==t.length&&qo(t[0])?Dt(t[0],Kt(or())):Dt(mi(t,1),Kt(or()))).length;return Ki(function(i){for(var a=-1,r=vn(i.length,n);++a<r;)i[a]=t[a].call(this,i[a]);return wt(e,this,i)})}),Ro=Ki(function(t,n){var i=on(n,rr(Ro));return Za(t,a,e,n,i)}),Io=Ki(function(t,n){var i=on(n,rr(Io));return Za(t,64,e,n,i)}),To=er(function(t,n){return Za(t,o,e,e,e,n)});function Lo(e,t){return e===t||e!=e&&t!=t}var Fo=$a(ki),Bo=$a(function(e,t){return e>=t}),Wo=Oi(function(){return arguments}())?Oi:function(e){return Qo(e)&&Ee.call(e,"callee")&&!Ue.call(e,"callee")},qo=xe.isArray,Vo=gt?Kt(gt):function(e){return Qo(e)&&ji(e)==M};function $o(e){return null!=e&&Xo(e.length)&&!Zo(e)}function Ho(e){return Qo(e)&&$o(e)}var Uo=Rt||fl,Yo=vt?Kt(vt):function(e){return Qo(e)&&ji(e)==m};function Ko(e){if(!Qo(e))return!1;var t=ji(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function Zo(e){if(!Jo(e))return!1;var t=ji(e);return t==v||t==b||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Go(e){return"number"==typeof e&&e==ps(e)}function Xo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function Jo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qo(e){return null!=e&&"object"==typeof e}var es=bt?Kt(bt):function(e){return Qo(e)&&pr(e)==x};function ts(e){return"number"==typeof e||Qo(e)&&ji(e)==y}function ns(e){if(!Qo(e)||ji(e)!=_)return!1;var t=$e(e);if(null===t)return!0;var n=Ee.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Te}var is=xt?Kt(xt):function(e){return Qo(e)&&ji(e)==j},as=yt?Kt(yt):function(e){return Qo(e)&&pr(e)==k};function rs(e){return"string"==typeof e||!qo(e)&&Qo(e)&&ji(e)==S}function os(e){return"symbol"==typeof e||Qo(e)&&ji(e)==C}var ss=_t?Kt(_t):function(e){return Qo(e)&&Xo(e.length)&&!!it[ji(e)]},ls=$a(Ii),cs=$a(function(e,t){return e<=t});function us(e){if(!e)return[];if($o(e))return rs(e)?un(e):Na(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=pr(e);return(t==x?an:t==k?sn:Ls)(e)}function ds(e){return e?(e=fs(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=ds(e),n=t%1;return t==t?n?t-n:t:0}function hs(e){return e?ri(ps(e),0,u):0}function fs(e){if("number"==typeof e)return e;if(os(e))return c;if(Jo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Jo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=pe.test(e);return n||fe.test(e)?st(e.slice(2),n?2:8):de.test(e)?c:+e}function ms(e){return Ma(e,Ds(e))}function gs(e){return null==e?"":sa(e)}var vs=Da(function(e,t){if(_r(t)||$o(t))Ma(t,Os(t),e);else for(var n in t)Ee.call(t,n)&&Qn(e,n,t[n])}),bs=Da(function(e,t){Ma(t,Ds(t),e)}),xs=Da(function(e,t,n,i){Ma(t,Ds(t),e,i)}),ys=Da(function(e,t,n,i){Ma(t,Os(t),e,i)}),_s=er(ai),ws=Ki(function(t,n){t=ke(t);var i=-1,a=n.length,r=a>2?n[2]:e;for(r&&vr(n[0],n[1],r)&&(a=1);++i<a;)for(var o=n[i],s=Ds(o),l=-1,c=s.length;++l<c;){var u=s[l],d=t[u];(d===e||Lo(d,De[u])&&!Ee.call(t,u))&&(t[u]=o[u])}return t}),js=Ki(function(t){return t.push(e,Xa),wt(As,e,t)});function ks(t,n,i){var a=null==t?e:_i(t,n);return a===e?i:a}function Ss(e,t){return null!=e&&hr(e,t,Ci)}var Cs=Fa(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),e[t]=n},Js(tl)),Ns=Fa(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ie.call(t)),Ee.call(e,t)?e[t].push(n):e[t]=[n]},or),Ms=Ki(Mi);function Os(e){return $o(e)?Kn(e):Pi(e)}function Ds(e){return $o(e)?Kn(e,!0):Ri(e)}var zs=Da(function(e,t,n){Bi(e,t,n)}),As=Da(function(e,t,n,i){Bi(e,t,n,i)}),Es=er(function(e,t){var n={};if(null==e)return n;var i=!1;t=Dt(t,function(t){return t=va(t,e),i||(i=t.length>1),t}),Ma(e,nr(e),n),i&&(n=oi(n,7,Ja));for(var a=t.length;a--;)ca(n,t[a]);return n}),Ps=er(function(e,t){return null==e?{}:function(e,t){return Vi(e,t,function(t,n){return Ss(e,n)})}(e,t)});function Rs(e,t){if(null==e)return{};var n=Dt(nr(e),function(e){return[e]});return t=or(t),Vi(e,n,function(e,n){return t(e,n[0])})}var Is=Ka(Os),Ts=Ka(Ds);function Ls(e){return null==e?[]:Zt(e,Os(e))}var Fs=Pa(function(e,t,n){return t=t.toLowerCase(),e+(n?Bs(t):t)});function Bs(e){return Ks(gs(e).toLowerCase())}function Ws(e){return(e=gs(e))&&e.replace(ge,Qt).replace(Ge,"")}var qs=Pa(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Vs=Pa(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),$s=Ea("toLowerCase"),Hs=Pa(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Us=Pa(function(e,t,n){return e+(n?" ":"")+Ks(t)}),Ys=Pa(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ks=Ea("toUpperCase");function Zs(t,n,i){return t=gs(t),(n=i?e:n)===e?function(e){return et.test(e)}(t)?function(e){return e.match(Je)||[]}(t):function(e){return e.match(oe)||[]}(t):t.match(n)||[]}var Gs=Ki(function(t,n){try{return wt(t,e,n)}catch(e){return Ko(e)?e:new _e(e)}}),Xs=er(function(e,t){return kt(t,function(t){t=Pr(t),ii(e,t,No(e[t],e))}),e});function Js(e){return function(){return e}}var Qs=Ta(),el=Ta(!0);function tl(e){return e}function nl(e){return Ei("function"==typeof e?e:oi(e,1))}var il=Ki(function(e,t){return function(n){return Mi(n,e,t)}}),al=Ki(function(e,t){return function(n){return Mi(e,n,t)}});function rl(e,t,n){var i=Os(t),a=yi(t,i);null!=n||Jo(t)&&(a.length||!i.length)||(n=t,t=e,e=this,a=yi(t,Os(t)));var r=!(Jo(n)&&"chain"in n&&!n.chain),o=Zo(e);return kt(a,function(n){var i=t[n];e[n]=i,o&&(e.prototype[n]=function(){var t=this.__chain__;if(r||t){var n=e(this.__wrapped__);return(n.__actions__=Na(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,zt([this.value()],arguments))})}),e}function ol(){}var sl=Wa(Dt),ll=Wa(Ct),cl=Wa(Pt);function ul(e){return br(e)?qt(Pr(e)):function(e){return function(t){return _i(t,e)}}(e)}var dl=Va(),pl=Va(!0);function hl(){return[]}function fl(){return!1}var ml,gl=Ba(function(e,t){return e+t},0),vl=Ua("ceil"),bl=Ba(function(e,t){return e/t},1),xl=Ua("floor"),yl=Ba(function(e,t){return e*t},1),_l=Ua("round"),wl=Ba(function(e,t){return e-t},0);return Ln.after=function(e,n){if("function"!=typeof n)throw new Ne(t);return e=ps(e),function(){if(--e<1)return n.apply(this,arguments)}},Ln.ary=So,Ln.assign=vs,Ln.assignIn=bs,Ln.assignInWith=xs,Ln.assignWith=ys,Ln.at=_s,Ln.before=Co,Ln.bind=No,Ln.bindAll=Xs,Ln.bindKey=Mo,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qo(e)?e:[e]},Ln.chain=co,Ln.chunk=function(t,n,i){n=(i?vr(t,n,i):n===e)?1:gn(ps(n),0);var a=null==t?0:t.length;if(!a||n<1)return[];for(var r=0,o=0,s=xe(pt(a/n));r<a;)s[o++]=ta(t,r,r+=n);return s},Ln.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,a=[];++t<n;){var r=e[t];r&&(a[i++]=r)}return a},Ln.concat=function(){var e=arguments.length;if(!e)return[];for(var t=xe(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return zt(qo(n)?Na(n):[n],mi(t,1))},Ln.cond=function(e){var n=null==e?0:e.length,i=or();return e=n?Dt(e,function(e){if("function"!=typeof e[1])throw new Ne(t);return[i(e[0]),e[1]]}):[],Ki(function(t){for(var i=-1;++i<n;){var a=e[i];if(wt(a[0],this,t))return wt(a[1],this,t)}})},Ln.conforms=function(e){return function(e){var t=Os(e);return function(n){return si(n,e,t)}}(oi(e,1))},Ln.constant=Js,Ln.countBy=ho,Ln.create=function(e,t){var n=Fn(e);return null==t?n:ni(n,t)},Ln.curry=function t(n,i,a){var r=Za(n,8,e,e,e,e,e,i=a?e:i);return r.placeholder=t.placeholder,r},Ln.curryRight=function t(n,i,a){var r=Za(n,16,e,e,e,e,e,i=a?e:i);return r.placeholder=t.placeholder,r},Ln.debounce=Oo,Ln.defaults=ws,Ln.defaultsDeep=js,Ln.defer=Do,Ln.delay=zo,Ln.difference=Tr,Ln.differenceBy=Lr,Ln.differenceWith=Fr,Ln.drop=function(t,n,i){var a=null==t?0:t.length;return a?ta(t,(n=i||n===e?1:ps(n))<0?0:n,a):[]},Ln.dropRight=function(t,n,i){var a=null==t?0:t.length;return a?ta(t,0,(n=a-(n=i||n===e?1:ps(n)))<0?0:n):[]},Ln.dropRightWhile=function(e,t){return e&&e.length?da(e,or(t,3),!0,!0):[]},Ln.dropWhile=function(e,t){return e&&e.length?da(e,or(t,3),!0):[]},Ln.fill=function(t,n,i,a){var r=null==t?0:t.length;return r?(i&&"number"!=typeof i&&vr(t,n,i)&&(i=0,a=r),function(t,n,i,a){var r=t.length;for((i=ps(i))<0&&(i=-i>r?0:r+i),(a=a===e||a>r?r:ps(a))<0&&(a+=r),a=i>a?0:hs(a);i<a;)t[i++]=n;return t}(t,n,i,a)):[]},Ln.filter=function(e,t){return(qo(e)?Nt:fi)(e,or(t,3))},Ln.flatMap=function(e,t){return mi(_o(e,t),1)},Ln.flatMapDeep=function(e,t){return mi(_o(e,t),s)},Ln.flatMapDepth=function(t,n,i){return i=i===e?1:ps(i),mi(_o(t,n),i)},Ln.flatten=qr,Ln.flattenDeep=function(e){return null!=e&&e.length?mi(e,s):[]},Ln.flattenDepth=function(t,n){return null!=t&&t.length?mi(t,n=n===e?1:ps(n)):[]},Ln.flip=function(e){return Za(e,512)},Ln.flow=Qs,Ln.flowRight=el,Ln.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i},Ln.functions=function(e){return null==e?[]:yi(e,Os(e))},Ln.functionsIn=function(e){return null==e?[]:yi(e,Ds(e))},Ln.groupBy=bo,Ln.initial=function(e){return null!=e&&e.length?ta(e,0,-1):[]},Ln.intersection=$r,Ln.intersectionBy=Hr,Ln.intersectionWith=Ur,Ln.invert=Cs,Ln.invertBy=Ns,Ln.invokeMap=xo,Ln.iteratee=nl,Ln.keyBy=yo,Ln.keys=Os,Ln.keysIn=Ds,Ln.map=_o,Ln.mapKeys=function(e,t){var n={};return t=or(t,3),bi(e,function(e,i,a){ii(n,t(e,i,a),e)}),n},Ln.mapValues=function(e,t){var n={};return t=or(t,3),bi(e,function(e,i,a){ii(n,i,t(e,i,a))}),n},Ln.matches=function(e){return Li(oi(e,1))},Ln.matchesProperty=function(e,t){return Fi(e,oi(t,1))},Ln.memoize=Ao,Ln.merge=zs,Ln.mergeWith=As,Ln.method=il,Ln.methodOf=al,Ln.mixin=rl,Ln.negate=Eo,Ln.nthArg=function(e){return e=ps(e),Ki(function(t){return Wi(t,e)})},Ln.omit=Es,Ln.omitBy=function(e,t){return Rs(e,Eo(or(t)))},Ln.once=function(e){return Co(2,e)},Ln.orderBy=function(t,n,i,a){return null==t?[]:(qo(n)||(n=null==n?[]:[n]),qo(i=a?e:i)||(i=null==i?[]:[i]),qi(t,n,i))},Ln.over=sl,Ln.overArgs=Po,Ln.overEvery=ll,Ln.overSome=cl,Ln.partial=Ro,Ln.partialRight=Io,Ln.partition=wo,Ln.pick=Ps,Ln.pickBy=Rs,Ln.property=ul,Ln.propertyOf=function(t){return function(n){return null==t?e:_i(t,n)}},Ln.pull=Kr,Ln.pullAll=Zr,Ln.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$i(e,t,or(n,2)):e},Ln.pullAllWith=function(t,n,i){return t&&t.length&&n&&n.length?$i(t,n,e,i):t},Ln.pullAt=Gr,Ln.range=dl,Ln.rangeRight=pl,Ln.rearg=To,Ln.reject=function(e,t){return(qo(e)?Nt:fi)(e,Eo(or(t,3)))},Ln.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,a=[],r=e.length;for(t=or(t,3);++i<r;){var o=e[i];t(o,i,e)&&(n.push(o),a.push(i))}return Hi(e,a),n},Ln.rest=function(n,i){if("function"!=typeof n)throw new Ne(t);return Ki(n,i=i===e?i:ps(i))},Ln.reverse=Xr,Ln.sampleSize=function(t,n,i){return n=(i?vr(t,n,i):n===e)?1:ps(n),(qo(t)?Gn:Gi)(t,n)},Ln.set=function(e,t,n){return null==e?e:Xi(e,t,n)},Ln.setWith=function(t,n,i,a){return a="function"==typeof a?a:e,null==t?t:Xi(t,n,i,a)},Ln.shuffle=function(e){return(qo(e)?Xn:ea)(e)},Ln.slice=function(t,n,i){var a=null==t?0:t.length;return a?(i&&"number"!=typeof i&&vr(t,n,i)?(n=0,i=a):(n=null==n?0:ps(n),i=i===e?a:ps(i)),ta(t,n,i)):[]},Ln.sortBy=jo,Ln.sortedUniq=function(e){return e&&e.length?ra(e):[]},Ln.sortedUniqBy=function(e,t){return e&&e.length?ra(e,or(t,2)):[]},Ln.split=function(t,n,i){return i&&"number"!=typeof i&&vr(t,n,i)&&(n=i=e),(i=i===e?u:i>>>0)?(t=gs(t))&&("string"==typeof n||null!=n&&!is(n))&&!(n=sa(n))&&nn(t)?xa(un(t),0,i):t.split(n,i):[]},Ln.spread=function(e,n){if("function"!=typeof e)throw new Ne(t);return n=null==n?0:gn(ps(n),0),Ki(function(t){var i=t[n],a=xa(t,0,n);return i&&zt(a,i),wt(e,this,a)})},Ln.tail=function(e){var t=null==e?0:e.length;return t?ta(e,1,t):[]},Ln.take=function(t,n,i){return t&&t.length?ta(t,0,(n=i||n===e?1:ps(n))<0?0:n):[]},Ln.takeRight=function(t,n,i){var a=null==t?0:t.length;return a?ta(t,(n=a-(n=i||n===e?1:ps(n)))<0?0:n,a):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?da(e,or(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?da(e,or(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,n,i){var a=!0,r=!0;if("function"!=typeof e)throw new Ne(t);return Jo(i)&&(a="leading"in i?!!i.leading:a,r="trailing"in i?!!i.trailing:r),Oo(e,n,{leading:a,maxWait:n,trailing:r})},Ln.thru=uo,Ln.toArray=us,Ln.toPairs=Is,Ln.toPairsIn=Ts,Ln.toPath=function(e){return qo(e)?Dt(e,Pr):os(e)?[e]:Na(Er(gs(e)))},Ln.toPlainObject=ms,Ln.transform=function(e,t,n){var i=qo(e),a=i||Uo(e)||ss(e);if(t=or(t,4),null==n){var r=e&&e.constructor;n=a?i?new r:[]:Jo(e)&&Zo(r)?Fn($e(e)):{}}return(a?kt:bi)(e,function(e,i,a){return t(n,e,i,a)}),n},Ln.unary=function(e){return So(e,1)},Ln.union=Jr,Ln.unionBy=Qr,Ln.unionWith=eo,Ln.uniq=function(e){return e&&e.length?la(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?la(e,or(t,2)):[]},Ln.uniqWith=function(t,n){return n="function"==typeof n?n:e,t&&t.length?la(t,e,n):[]},Ln.unset=function(e,t){return null==e||ca(e,t)},Ln.unzip=to,Ln.unzipWith=no,Ln.update=function(e,t,n){return null==e?e:ua(e,t,ga(n))},Ln.updateWith=function(t,n,i,a){return a="function"==typeof a?a:e,null==t?t:ua(t,n,ga(i),a)},Ln.values=Ls,Ln.valuesIn=function(e){return null==e?[]:Zt(e,Ds(e))},Ln.without=io,Ln.words=Zs,Ln.wrap=function(e,t){return Ro(ga(t),e)},Ln.xor=ao,Ln.xorBy=ro,Ln.xorWith=oo,Ln.zip=so,Ln.zipObject=function(e,t){return fa(e||[],t||[],Qn)},Ln.zipObjectDeep=function(e,t){return fa(e||[],t||[],Xi)},Ln.zipWith=lo,Ln.entries=Is,Ln.entriesIn=Ts,Ln.extend=bs,Ln.extendWith=xs,rl(Ln,Ln),Ln.add=gl,Ln.attempt=Gs,Ln.camelCase=Fs,Ln.capitalize=Bs,Ln.ceil=vl,Ln.clamp=function(t,n,i){return i===e&&(i=n,n=e),i!==e&&(i=(i=fs(i))==i?i:0),n!==e&&(n=(n=fs(n))==n?n:0),ri(fs(t),n,i)},Ln.clone=function(e){return oi(e,4)},Ln.cloneDeep=function(e){return oi(e,5)},Ln.cloneDeepWith=function(t,n){return oi(t,5,n="function"==typeof n?n:e)},Ln.cloneWith=function(t,n){return oi(t,4,n="function"==typeof n?n:e)},Ln.conformsTo=function(e,t){return null==t||si(e,t,Os(t))},Ln.deburr=Ws,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=bl,Ln.endsWith=function(t,n,i){t=gs(t),n=sa(n);var a=t.length,r=i=i===e?a:ri(ps(i),0,a);return(i-=n.length)>=0&&t.slice(i,r)==n},Ln.eq=Lo,Ln.escape=function(e){return(e=gs(e))&&U.test(e)?e.replace($,en):e},Ln.escapeRegExp=function(e){return(e=gs(e))&&ee.test(e)?e.replace(Q,"\\$&"):e},Ln.every=function(t,n,i){var a=qo(t)?Ct:pi;return i&&vr(t,n,i)&&(n=e),a(t,or(n,3))},Ln.find=fo,Ln.findIndex=Br,Ln.findKey=function(e,t){return It(e,or(t,3),bi)},Ln.findLast=mo,Ln.findLastIndex=Wr,Ln.findLastKey=function(e,t){return It(e,or(t,3),xi)},Ln.floor=xl,Ln.forEach=go,Ln.forEachRight=vo,Ln.forIn=function(e,t){return null==e?e:gi(e,or(t,3),Ds)},Ln.forInRight=function(e,t){return null==e?e:vi(e,or(t,3),Ds)},Ln.forOwn=function(e,t){return e&&bi(e,or(t,3))},Ln.forOwnRight=function(e,t){return e&&xi(e,or(t,3))},Ln.get=ks,Ln.gt=Fo,Ln.gte=Bo,Ln.has=function(e,t){return null!=e&&hr(e,t,Si)},Ln.hasIn=Ss,Ln.head=Vr,Ln.identity=tl,Ln.includes=function(e,t,n,i){e=$o(e)?e:Ls(e),n=n&&!i?ps(n):0;var a=e.length;return n<0&&(n=gn(a+n,0)),rs(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Lt(e,t,n)>-1},Ln.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=null==n?0:ps(n);return a<0&&(a=gn(i+a,0)),Lt(e,t,a)},Ln.inRange=function(t,n,i){return n=ds(n),i===e?(i=n,n=0):i=ds(i),function(e,t,n){return e>=vn(t,n)&&e<gn(t,n)}(t=fs(t),n,i)},Ln.invoke=Ms,Ln.isArguments=Wo,Ln.isArray=qo,Ln.isArrayBuffer=Vo,Ln.isArrayLike=$o,Ln.isArrayLikeObject=Ho,Ln.isBoolean=function(e){return!0===e||!1===e||Qo(e)&&ji(e)==f},Ln.isBuffer=Uo,Ln.isDate=Yo,Ln.isElement=function(e){return Qo(e)&&1===e.nodeType&&!ns(e)},Ln.isEmpty=function(e){if(null==e)return!0;if($o(e)&&(qo(e)||"string"==typeof e||"function"==typeof e.splice||Uo(e)||ss(e)||Wo(e)))return!e.length;var t=pr(e);if(t==x||t==k)return!e.size;if(_r(e))return!Pi(e).length;for(var n in e)if(Ee.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return Di(e,t)},Ln.isEqualWith=function(t,n,i){var a=(i="function"==typeof i?i:e)?i(t,n):e;return a===e?Di(t,n,e,i):!!a},Ln.isError=Ko,Ln.isFinite=function(e){return"number"==typeof e&&Vt(e)},Ln.isFunction=Zo,Ln.isInteger=Go,Ln.isLength=Xo,Ln.isMap=es,Ln.isMatch=function(e,t){return e===t||zi(e,t,lr(t))},Ln.isMatchWith=function(t,n,i){return i="function"==typeof i?i:e,zi(t,n,lr(n),i)},Ln.isNaN=function(e){return ts(e)&&e!=+e},Ln.isNative=function(e){if(yr(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ai(e)},Ln.isNil=function(e){return null==e},Ln.isNull=function(e){return null===e},Ln.isNumber=ts,Ln.isObject=Jo,Ln.isObjectLike=Qo,Ln.isPlainObject=ns,Ln.isRegExp=is,Ln.isSafeInteger=function(e){return Go(e)&&e>=-9007199254740991&&e<=l},Ln.isSet=as,Ln.isString=rs,Ln.isSymbol=os,Ln.isTypedArray=ss,Ln.isUndefined=function(t){return t===e},Ln.isWeakMap=function(e){return Qo(e)&&pr(e)==N},Ln.isWeakSet=function(e){return Qo(e)&&"[object WeakSet]"==ji(e)},Ln.join=function(e,t){return null==e?"":fn.call(e,t)},Ln.kebabCase=qs,Ln.last=Yr,Ln.lastIndexOf=function(t,n,i){var a=null==t?0:t.length;if(!a)return-1;var r=a;return i!==e&&(r=(r=ps(i))<0?gn(a+r,0):vn(r,a-1)),n==n?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(t,n,r):Tt(t,Bt,r,!0)},Ln.lowerCase=Vs,Ln.lowerFirst=$s,Ln.lt=ls,Ln.lte=cs,Ln.max=function(t){return t&&t.length?hi(t,tl,ki):e},Ln.maxBy=function(t,n){return t&&t.length?hi(t,or(n,2),ki):e},Ln.mean=function(e){return Wt(e,tl)},Ln.meanBy=function(e,t){return Wt(e,or(t,2))},Ln.min=function(t){return t&&t.length?hi(t,tl,Ii):e},Ln.minBy=function(t,n){return t&&t.length?hi(t,or(n,2),Ii):e},Ln.stubArray=hl,Ln.stubFalse=fl,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=yl,Ln.nth=function(t,n){return t&&t.length?Wi(t,ps(n)):e},Ln.noConflict=function(){return ut._===this&&(ut._=Le),this},Ln.noop=ol,Ln.now=ko,Ln.pad=function(e,t,n){e=gs(e);var i=(t=ps(t))?cn(e):0;if(!t||i>=t)return e;var a=(t-i)/2;return qa(ft(a),n)+e+qa(pt(a),n)},Ln.padEnd=function(e,t,n){e=gs(e);var i=(t=ps(t))?cn(e):0;return t&&i<t?e+qa(t-i,n):e},Ln.padStart=function(e,t,n){e=gs(e);var i=(t=ps(t))?cn(e):0;return t&&i<t?qa(t-i,n)+e:e},Ln.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(gs(e).replace(te,""),t||0)},Ln.random=function(t,n,i){if(i&&"boolean"!=typeof i&&vr(t,n,i)&&(n=i=e),i===e&&("boolean"==typeof n?(i=n,n=e):"boolean"==typeof t&&(i=t,t=e)),t===e&&n===e?(t=0,n=1):(t=ds(t),n===e?(n=t,t=0):n=ds(n)),t>n){var a=t;t=n,n=a}if(i||t%1||n%1){var r=yn();return vn(t+r*(n-t+ot("1e-"+((r+"").length-1))),n)}return Ui(t,n)},Ln.reduce=function(e,t,n){var i=qo(e)?At:$t,a=arguments.length<3;return i(e,or(t,4),n,a,ui)},Ln.reduceRight=function(e,t,n){var i=qo(e)?Et:$t,a=arguments.length<3;return i(e,or(t,4),n,a,di)},Ln.repeat=function(t,n,i){return n=(i?vr(t,n,i):n===e)?1:ps(n),Yi(gs(t),n)},Ln.replace=function(){var e=arguments,t=gs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(t,n,i){var a=-1,r=(n=va(n,t)).length;for(r||(r=1,t=e);++a<r;){var o=null==t?e:t[Pr(n[a])];o===e&&(a=r,o=i),t=Zo(o)?o.call(t):o}return t},Ln.round=_l,Ln.runInContext=W,Ln.sample=function(e){return(qo(e)?Zn:Zi)(e)},Ln.size=function(e){if(null==e)return 0;if($o(e))return rs(e)?cn(e):e.length;var t=pr(e);return t==x||t==k?e.size:Pi(e).length},Ln.snakeCase=Hs,Ln.some=function(t,n,i){var a=qo(t)?Pt:na;return i&&vr(t,n,i)&&(n=e),a(t,or(n,3))},Ln.sortedIndex=function(e,t){return ia(e,t)},Ln.sortedIndexBy=function(e,t,n){return aa(e,t,or(n,2))},Ln.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=ia(e,t);if(i<n&&Lo(e[i],t))return i}return-1},Ln.sortedLastIndex=function(e,t){return ia(e,t,!0)},Ln.sortedLastIndexBy=function(e,t,n){return aa(e,t,or(n,2),!0)},Ln.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ia(e,t,!0)-1;if(Lo(e[n],t))return n}return-1},Ln.startCase=Us,Ln.startsWith=function(e,t,n){return e=gs(e),n=null==n?0:ri(ps(n),0,e.length),t=sa(t),e.slice(n,n+t.length)==t},Ln.subtract=wl,Ln.sum=function(e){return e&&e.length?Ht(e,tl):0},Ln.sumBy=function(e,t){return e&&e.length?Ht(e,or(t,2)):0},Ln.template=function(t,n,i){var a=Ln.templateSettings;i&&vr(t,n,i)&&(n=e),t=gs(t),n=xs({},n,a,Ga);var r,o,s=xs({},n.imports,a.imports,Ga),l=Os(s),c=Zt(s,l),u=0,d=n.interpolate||ve,p="__p += '",h=Se((n.escape||ve).source+"|"+d.source+"|"+(d===Z?ce:ve).source+"|"+(n.evaluate||ve).source+"|$","g"),f="//# sourceURL="+(Ee.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nt+"]")+"\n";t.replace(h,function(e,n,i,a,s,l){return i||(i=a),p+=t.slice(u,l).replace(be,tn),n&&(r=!0,p+="' +\n__e("+n+") +\n'"),s&&(o=!0,p+="';\n"+s+";\n__p += '"),i&&(p+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+e.length,e}),p+="';\n";var m=Ee.call(n,"variable")&&n.variable;if(m){if(se.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(o?p.replace(F,""):p).replace(B,"$1").replace(q,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g=Gs(function(){return we(l,f+"return "+p).apply(e,c)});if(g.source=p,Ko(g))throw g;return g},Ln.times=function(e,t){if((e=ps(e))<1||e>l)return[];var n=u,i=vn(e,u);t=or(t),e-=u;for(var a=Ut(i,t);++n<e;)t(n);return a},Ln.toFinite=ds,Ln.toInteger=ps,Ln.toLength=hs,Ln.toLower=function(e){return gs(e).toLowerCase()},Ln.toNumber=fs,Ln.toSafeInteger=function(e){return e?ri(ps(e),-9007199254740991,l):0===e?e:0},Ln.toString=gs,Ln.toUpper=function(e){return gs(e).toUpperCase()},Ln.trim=function(t,n,i){if((t=gs(t))&&(i||n===e))return Yt(t);if(!t||!(n=sa(n)))return t;var a=un(t),r=un(n);return xa(a,Xt(a,r),Jt(a,r)+1).join("")},Ln.trimEnd=function(t,n,i){if((t=gs(t))&&(i||n===e))return t.slice(0,dn(t)+1);if(!t||!(n=sa(n)))return t;var a=un(t);return xa(a,0,Jt(a,un(n))+1).join("")},Ln.trimStart=function(t,n,i){if((t=gs(t))&&(i||n===e))return t.replace(te,"");if(!t||!(n=sa(n)))return t;var a=un(t);return xa(a,Xt(a,un(n))).join("")},Ln.truncate=function(t,n){var i=30,a="...";if(Jo(n)){var r="separator"in n?n.separator:r;i="length"in n?ps(n.length):i,a="omission"in n?sa(n.omission):a}var o=(t=gs(t)).length;if(nn(t)){var s=un(t);o=s.length}if(i>=o)return t;var l=i-cn(a);if(l<1)return a;var c=s?xa(s,0,l).join(""):t.slice(0,l);if(r===e)return c+a;if(s&&(l+=c.length-l),is(r)){if(t.slice(l).search(r)){var u,d=c;for(r.global||(r=Se(r.source,gs(ue.exec(r))+"g")),r.lastIndex=0;u=r.exec(d);)var p=u.index;c=c.slice(0,p===e?l:p)}}else if(t.indexOf(sa(r),l)!=l){var h=c.lastIndexOf(r);h>-1&&(c=c.slice(0,h))}return c+a},Ln.unescape=function(e){return(e=gs(e))&&H.test(e)?e.replace(V,pn):e},Ln.uniqueId=function(e){var t=++Pe;return gs(e)+t},Ln.upperCase=Ys,Ln.upperFirst=Ks,Ln.each=go,Ln.eachRight=vo,Ln.first=Vr,rl(Ln,(ml={},bi(Ln,function(e,t){Ee.call(Ln.prototype,t)||(ml[t]=e)}),ml),{chain:!1}),Ln.VERSION="4.17.23",kt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Ln[e].placeholder=Ln}),kt(["drop","take"],function(t,n){qn.prototype[t]=function(i){i=i===e?1:gn(ps(i),0);var a=this.__filtered__&&!n?new qn(this):this.clone();return a.__filtered__?a.__takeCount__=vn(i,a.__takeCount__):a.__views__.push({size:vn(i,u),type:t+(a.__dir__<0?"Right":"")}),a},qn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),kt(["filter","map","takeWhile"],function(e,t){var n=t+1,i=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:or(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}}),kt(["head","last"],function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}}),kt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}}),qn.prototype.compact=function(){return this.filter(tl)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Ki(function(e,t){return"function"==typeof e?new qn(this):this.map(function(n){return Mi(n,e,t)})}),qn.prototype.reject=function(e){return this.filter(Eo(or(e)))},qn.prototype.slice=function(t,n){t=ps(t);var i=this;return i.__filtered__&&(t>0||n<0)?new qn(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),n!==e&&(i=(n=ps(n))<0?i.dropRight(-n):i.take(n-t)),i)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(u)},bi(qn.prototype,function(t,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),a=/^(?:head|last)$/.test(n),r=Ln[a?"take"+("last"==n?"Right":""):n],o=a||/^find/.test(n);r&&(Ln.prototype[n]=function(){var n=this.__wrapped__,s=a?[1]:arguments,l=n instanceof qn,c=s[0],u=l||qo(n),d=function(e){var t=r.apply(Ln,zt([e],s));return a&&p?t[0]:t};u&&i&&"function"==typeof c&&1!=c.length&&(l=u=!1);var p=this.__chain__,h=!!this.__actions__.length,f=o&&!p,m=l&&!h;if(!o&&u){n=m?n:new qn(this);var g=t.apply(n,s);return g.__actions__.push({func:uo,args:[d],thisArg:e}),new Wn(g,p)}return f&&m?t.apply(this,s):(g=this.thru(d),f?a?g.value()[0]:g.value():g)})}),kt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var a=this.value();return t.apply(qo(a)?a:[],e)}return this[n](function(n){return t.apply(qo(n)?n:[],e)})}}),bi(qn.prototype,function(e,t){var n=Ln[t];if(n){var i=n.name+"";Ee.call(On,i)||(On[i]=[]),On[i].push({name:t,func:n})}}),On[La(e,2).name]=[{name:"wrapper",func:e}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Na(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Na(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Na(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qo(e),i=t<0,a=n?e.length:0,r=function(e,t,n){for(var i=-1,a=n.length;++i<a;){var r=n[i],o=r.size;switch(r.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=vn(t,e+o);break;case"takeRight":e=gn(e,t-o)}}return{start:e,end:t}}(0,a,this.__views__),o=r.start,s=r.end,l=s-o,c=i?s:o-1,u=this.__iteratees__,d=u.length,p=0,h=vn(l,this.__takeCount__);if(!n||!i&&a==l&&h==l)return pa(e,this.__actions__);var f=[];e:for(;l--&&p<h;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],b=v.iteratee,x=v.type,y=b(g);if(2==x)g=y;else if(!y){if(1==x)continue e;break e}}f[p++]=g}return f},Ln.prototype.at=po,Ln.prototype.chain=function(){return co(this)},Ln.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Ln.prototype.next=function(){this.__values__===e&&(this.__values__=us(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?e:this.__values__[this.__index__++]}},Ln.prototype.plant=function(t){for(var n,i=this;i instanceof Bn;){var a=Ir(i);a.__index__=0,a.__values__=e,n?r.__wrapped__=a:n=a;var r=a;i=i.__wrapped__}return r.__wrapped__=t,n},Ln.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof qn){var n=t;return this.__actions__.length&&(n=new qn(this)),(n=n.reverse()).__actions__.push({func:uo,args:[Xr],thisArg:e}),new Wn(n,this.__chain__)}return this.thru(Xr)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return pa(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,Xe&&(Ln.prototype[Xe]=function(){return this}),Ln}();pt?((pt.exports=hn)._=hn,dt._=hn):ut._=hn}.call(Tr.exports)),Tr.exports),Wr=q(Br);function qr({id:t,className:n,disabled:i,footer:a,onClick:r}){const o=null!=t?t:H.useId(1,"bee-add-entry-card-")[0],s="bee-add-entry-card"+(n?" "+n:"");return e.jsxs("div",{id:o,className:s,children:[e.jsx(Y,{iconClass:"pi pi-plus",rounded:!0,halfRounded:!1,disabled:null!=i&&i,type:"primary",isLoading:!1,onClick:e=>function(e){!i&&r&&r(e)}(e)}),a&&e.jsx("div",{className:"bee-add-entry-card-footer",children:a})]})}var Vr=function(e,t){return Vr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Vr(e,t)};var $r=function(){return $r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},$r.apply(this,arguments)};function Hr(e,t,n,i){return new(n||(n=Promise))(function(a,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})}function Ur({id:t,className:n,shape:i="rectangle",size:a,width:r,height:o,borderRadius:s,animated:l=!0,showHover:c,showShade:u}){const d=null!=t?t:H.useId(1,"bee-skeleton-")[0],p=l?"wave":"none",h=c?" bee-skeleto--hover":"",f=u?" bee-skeleton--shade":"",m="bee-skeleton-circle"+h+f+(n?" "+n:""),g="bee-skeleton-rectangle"+h+f+(n?" "+n:""),v=e.jsx(b.Skeleton,{className:m,id:d,shape:"circle",size:a,animation:p,borderRadius:s}),x=e.jsx(b.Skeleton,{className:g,id:d,shape:"rectangle",animation:p,width:r,height:o,borderRadius:s});return"circle"===i?v:x}function Yr({id:t,className:n,url:i,showPlaceholder:a,secured:r=!1,secureKey:o,alt:s,title:l,titlePosition:c="left",copyright:u,onClick:d}){const p=null!=t?t:H.useId(1,"bee-img-")[0],h=p+"-pay",f="left"===c?" bee-img-title bee-img-title-left":"center"===c?" bee-img-title bee-img-title-center":"right"===c?" bee-img-title bee-img-title-right":" bee-img-title bee-img-title-left",m="bee-img"+(n?" "+n:""),g="100%",v="100%";function b(e,t,n){return Hr(this,void 0,void 0,function*(){const i=yield function(e,t){let n=new Headers;return n.set("x-bee-secure",t),fetch(e,{headers:n})}(t,n),a=yield i.blob(),r=URL.createObjectURL(a),o=document.getElementById(e);o&&(o.src=r)})}return e.jsxs("div",{id:p,onClick:e=>function(e){d&&d(e)}(e),className:m,children:[l?e.jsx("div",{className:f,children:l}):null,a?e.jsx(Ur,{shape:"rectangle",animated:!0,width:"100%",height:"100px"}):r&&o?(b(h,i,o),e.jsx("img",{id:h,src:"",alt:s,width:g,height:v})):e.jsx("img",{id:h,src:i,alt:s,width:g,height:v}),u?e.jsx("footer",{className:"bee-img-copyright",children:e.jsx("small",{children:u})}):null]})}function Kr({imageUrl:t,imageKey:n,imageAlt:i,isImageSecured:a,showPlaceholder:r,placeholderFirstname:o,placeholderLastname:s,size:l,type:c,showDelete:u,readOnly:d,disabled:p,onDelete:h,onClick:f,onAdd:m}){const g="bee-avatar"+("primary"===c?" bee-avatar--primary":"secondary"===c?" bee-avatar--secondary":" bee-avatar--light")+("xSmall"===l?" bee-avatar--xsmall":"small"===l?" bee-avatar--small":"medium"===l?" bee-avatar--medium":"large"===l?" bee-avatar--large":"xLarge"===l?" bee-avatar--xlarge":" bee-avatar--medium");return e.jsx(e.Fragment,{children:r?e.jsx(v.Card,{className:g+" placeholder-avatar",children:o||s?e.jsx("div",{className:"placeholder-avatar__initials",children:(o?o.substring(0,1):"")+(s?s.substring(0,1):"")}):e.jsx("i",{className:"pi pi-user placeholder-avatar__icon"})}):e.jsx(e.Fragment,{children:t?e.jsxs(v.Card,{className:g+" image-avatar",children:[e.jsx(Yr,{url:t,alt:i,title:void 0,titlePosition:"left",copyright:void 0,secured:!0===a,showPlaceholder:!1,onClick:e=>function(e){null==f||f(e)}(e)},n),u&&!d?e.jsx(Y,{iconClass:"pi pi-trash",rounded:!0,disabled:!1,type:"danger",isLoading:!1,onClick:()=>{null==h||h()}}):null]}):e.jsx(v.Card,{className:g+" empty-avatar",children:e.jsx(qr,{disabled:p,onClick:e=>function(e){null==m||m(e)}(e)})})})})}function Zr({id:t,className:n,label:i,labelTemplate:a,iconClass:r,image:o,imageAlt:s,removable:l,type:c="primary",onRemove:u,onClick:d}){const p=null!=t?t:H.useId(1,"bee-chip-")[0],h=(d?"bee-chip-clickable ":"")+("primary"===c?"bee-chip bee-chip-primary":"secondary"===c?"bee-chip bee-chip-secondary":"valid"===c?"bee-chip bee-chip-valid":"info"===c?"bee-chip bee-chip-info":"warn"===c?"bee-chip bee-chip-warn":"error"===c?"bee-chip bee-chip-error":"surface"===c?"bee-chip bee-chip-surface":"bee-chip bee-chip-primary")+(n?" "+n:"");return e.jsxs("div",{className:h,children:[l?e.jsx("div",{className:"bee-chip-remove-btn",onClick:e=>function(e){u&&u(e)}(e),children:e.jsx("i",{className:"pi pi-times-circle"})}):null,e.jsx("div",{onClick:e=>function(e){d&&d(e)}(e),children:e.jsx(x.Chip,{id:p,label:null!=i?i:"",template:a,icon:r,image:o,imageAlt:s,className:"bee-chip-content",removable:null!=l&&l,onRemove:e=>(u&&u(e.originalEvent),!0)})})]})}function Gr({id:t,className:n,strokeWidth:i="2",animationDuration:a="4s",type:r="primary",size:o}){const s=null!=t?t:H.useId(1,"bee-loading-spinner-")[0],l="primary"===r?"bee-loading-spinner-primary":"secondary"===r?"bee-loading-spinner-secondary":"mixed"===r?"bee-loading-spinner-mixed":"bee-loading-spinner-primary"+(n?" "+n:""),c=o?{width:o,height:o}:void 0;return e.jsx(_.ProgressSpinner,{className:l,id:s,strokeWidth:i,animationDuration:a,style:c})}function Xr({id:t,className:n,value:i,min:a=0,max:r=100,step:o=1,disabled:s,orientation:l="horizontal",type:c="primary",onChange:u,onSlideEnd:d}){const p=null!=t?t:H.useId(1,"bee-slider-")[0],h="primary"===c?"bee-slider-primary":"secondary"===c?"bee-slider-secondary":"bee-slider-primary"+(n?" "+n:"");return e.jsx(w.Slider,{id:p,value:i,min:a,max:r,step:o,className:h,disabled:null!=s&&s,orientation:l,onChange:e=>function(e){!s&&u&&u(e)}(e),onSlideEnd:e=>function(e){!s&&d&&d(e)}(e)})}"function"==typeof SuppressedError&&SuppressedError;var Jr,Qr={};var eo=function(){if(Jr)return Qr;Jr=1,Object.defineProperty(Qr,"__esModule",{value:!0});var n=e,i=t,a=function(){return a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},a.apply(this,arguments)};function r(e,t,n){for(var i,a=0,r=t.length;a<r;a++)!i&&a in t||(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}function o(e){var t=e.size,i=void 0===t?25:t,r=e.SVGstrokeColor,o=void 0===r?"currentColor":r,s=e.SVGstorkeWidth,l=void 0===s?0:s,c=e.SVGclassName,u=void 0===c?"star-svg":c,d=e.SVGstyle;return n.jsx("svg",a({className:u,style:d,stroke:o,fill:"currentColor",strokeWidth:l,viewBox:"0 0 24 24",width:i,height:i,xmlns:"http://www.w3.org/2000/svg"},{children:n.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})}))}function s(e,t){switch(t.type){case"PointerMove":return a(a({},e),{hoverValue:t.payload,hoverIndex:t.index});case"PointerLeave":return a(a({},e),{ratingValue:e.ratingValue,hoverIndex:0,hoverValue:null});case"MouseClick":return a(a({},e),{valueIndex:e.hoverIndex,ratingValue:t.payload});default:return e}}function l(){return"undefined"!=typeof window&&window.matchMedia("(pointer: coarse)").matches||"ontouchstart"in window||"undefined"!=typeof navigator&&navigator.maxTouchPoints>0}return function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".style-module_starRatingWrap__q-lJC{display:inline-block;touch-action:none}.style-module_simpleStarRating__nWUxf{display:inline-block;overflow:hidden;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.style-module_fillIcons__6---A{display:inline-block;overflow:hidden;position:absolute;top:0;white-space:nowrap}.style-module_emptyIcons__Bg-FZ{display:inline-block}.style-module_tooltip__tKc3i{background-color:#333;border-radius:5px;color:#fff;display:inline-block;padding:5px 15px;vertical-align:middle}"),Qr.Rating=function(e){var t,c,u=e.onClick,d=e.onPointerMove,p=e.onPointerEnter,h=e.onPointerLeave,f=e.initialValue,m=void 0===f?0:f,g=e.iconsCount,v=void 0===g?5:g,b=e.size,x=void 0===b?40:b,y=e.readonly,_=void 0!==y&&y,w=e.rtl,j=void 0!==w&&w,k=e.customIcons,S=void 0===k?[]:k,C=e.allowFraction,N=void 0!==C&&C,M=e.style,O=e.className,D=void 0===O?"react-simple-star-rating":O,z=e.transition,A=void 0!==z&&z,E=e.allowHover,P=void 0===E||E,R=e.disableFillHover,I=void 0!==R&&R,T=e.fillIcon,L=void 0===T?null:T,F=e.fillColor,B=void 0===F?"#ffbc0b":F,W=e.fillColorArray,q=void 0===W?[]:W,V=e.fillStyle,$=e.fillClassName,H=void 0===$?"filled-icons":$,U=e.emptyIcon,Y=void 0===U?null:U,K=e.emptyColor,Z=void 0===K?"#cccccc":K,G=e.emptyStyle,X=e.emptyClassName,J=void 0===X?"empty-icons":X,Q=e.allowTitleTag,ee=void 0===Q||Q,te=e.showTooltip,ne=void 0!==te&&te,ie=e.tooltipDefaultText,ae=void 0===ie?"Your Rate":ie,re=e.tooltipArray,oe=void 0===re?[]:re,se=e.tooltipStyle,le=e.tooltipClassName,ce=void 0===le?"react-simple-star-rating-tooltip":le,ue=e.SVGclassName,de=void 0===ue?"star-svg":ue,pe=e.titleSeparator,he=void 0===pe?"out of":pe,fe=e.SVGstyle,me=e.SVGstorkeWidth,ge=void 0===me?0:me,ve=e.SVGstrokeColor,be=void 0===ve?"currentColor":ve,xe=i.useReducer(s,{hoverIndex:0,valueIndex:0,ratingValue:m,hoverValue:null}),ye=xe[0],_e=ye.ratingValue,we=ye.hoverValue,je=ye.hoverIndex,ke=ye.valueIndex,Se=xe[1];i.useEffect(function(){m&&Se({type:"MouseClick",payload:0})},[m]);var Ce=i.useMemo(function(){return N?2*v:v},[N,v]),Ne=i.useMemo(function(){return m>Ce?0:N||Math.floor(m)===m?Math.round(m/v*100):2*Math.ceil(m)*10},[N,m,v,Ce]),Me=i.useMemo(function(){return(N?2*m-1:m-1)||0},[N,m]),Oe=i.useCallback(function(e){return v%2!=0?e/2/10:e*v/100},[v]),De=function(e){for(var t=e.clientX,n=e.currentTarget.children[0].getBoundingClientRect(),i=n.left,a=n.right,r=n.width,o=j?a-t:t-i,s=Ce,l=Math.round(r/Ce),c=0;c<=Ce;c+=1)if(o<=l*c){s=0===c&&o<l?0:c;break}var u=s-1;s>0&&(Se({type:"PointerMove",payload:100*s/Ce,index:u}),d&&we&&d(Oe(we),u,e))},ze=function(e){we&&(Se({type:"MouseClick",payload:we}),u&&u(Oe(we),je,e))},Ae=i.useMemo(function(){if(P){if(I){var e=_e&&_e||Ne;return we&&we>e?we:e}return we&&we||_e&&_e||Ne}return _e&&_e||Ne},[P,I,we,_e,Ne]);i.useEffect(function(){oe.length>Ce&&console.error("tooltipArray Array length is bigger then Icons Count length.")},[oe.length,Ce]);var Ee=i.useCallback(function(e){return we&&e[je]||_e&&e[ke]||m&&e[Me]},[we,je,_e,ke,m,Me]),Pe=i.useMemo(function(){return we&&Oe(we)||_e&&Oe(_e)||m&&Oe(Ne)},[we,Oe,_e,m,Ne]);return n.jsxs("span",a({className:"style-module_starRatingWrap__q-lJC",style:{direction:"".concat(j?"rtl":"ltr")}},{children:[n.jsxs("span",a({className:"".concat("style-module_simpleStarRating__nWUxf"," ").concat(D),style:a({cursor:_?"":"pointer"},M),onPointerMove:_?void 0:De,onPointerEnter:_?void 0:function(e){p&&p(e),l()&&De(e)},onPointerLeave:_?void 0:function(e){l()&&ze(),Se({type:"PointerLeave"}),h&&h(e)},onClick:_?void 0:ze,"aria-hidden":"true"},{children:[n.jsx("span",a({className:"".concat("style-module_emptyIcons__Bg-FZ"," ").concat(J),style:a({color:Z},G)},{children:r([],Array(v)).map(function(e,t){var a;return n.jsx(i.Fragment,{children:(null===(a=S[t])||void 0===a?void 0:a.icon)||Y||n.jsx(o,{SVGclassName:de,SVGstyle:fe,SVGstorkeWidth:ge,SVGstrokeColor:be,size:x})},t)})})),n.jsx("span",a({className:"".concat("style-module_fillIcons__6---A"," ").concat(H),style:a((t={},t[j?"right":"left"]=0,t.color=Ee(q)||B,t.transition=A?"width .2s ease, color .2s ease":"",t.width="".concat(Ae,"%"),t),V),title:ee?"".concat(Pe," ").concat(he," ").concat(v):void 0},{children:r([],Array(v)).map(function(e,t){var a;return n.jsx(i.Fragment,{children:(null===(a=S[t])||void 0===a?void 0:a.icon)||L||n.jsx(o,{SVGclassName:de,SVGstyle:fe,SVGstorkeWidth:ge,SVGstrokeColor:be,size:x})},t)})}))]})),ne&&n.jsx("span",a({className:"".concat("style-module_tooltip__tKc3i"," ").concat(ce),style:a((c={},c[j?"marginRight":"marginLeft"]=20,c),se)},{children:(oe.length>0?Ee(oe):Pe)||ae}))]}))},Qr}();const to="Enter";function no({id:t,className:n,label:i,value:a,disabled:r,statusLabel:o,type:s="primary",formstate:l="neutral",stateTrue:c="Ja",stateFalse:u="Nein",required:d,readOnly:p,tooltip:h,tooltipOptions:f,onChange:m}){const g=null!=t?t:H.useId(1,"bee-checkbox-")[0],v=g+"input",b="primary"===s?" bee-checkbox-primary":"secondary"===s?" bee-checkbox-secondary":" bee-checkbox-primary";let x="";p&&(x=" bee-checkbox-readOnly",r=!0);const y="bee-checkbox "+("valid"===l?" bee-checkbox-valid":"error"===l?" bee-checkbox-error":"neutral"===l?" bee-checkbox-neutral":"none"===l?" bee-checkbox-field-neutral":" bee-checkbox-neutral")+x+(r?" bee-checkbox-disabled":"")+b;return e.jsxs("div",{className:null!=n?n:"",title:h,children:[e.jsxs("span",{id:g,className:y,onKeyDown:e=>{!function(e){e.stopPropagation(),e.key===to&&m&&m({checked:!a})}(e)},children:[e.jsxs("label",{className:"bee-checkbox-input",htmlFor:v,children:[p?e.jsx(e.Fragment,{children:a?e.jsx("i",{className:"pi pi-check"}):e.jsx("i",{className:"pi pi-times"})}):e.jsx(S.Checkbox,{inputId:v,checked:null!=a&&a,onChange:e=>function(e){!r&&m&&m(e)}(e),className:b,tooltip:h,tooltipOptions:f}),e.jsx("span",{className:"bee-checkbox-value",children:!0===a?c:u})]}),null!=i&&""!==i?e.jsxs("label",{htmlFor:v,className:"bee-checkbox-label",children:[i,d?e.jsx("span",{className:"bee-checkbox-label-required",children:e.jsx("span",{className:"bee-checkbox-label-required-star",children:" *"})}):null]}):null]}),"none"!=l&&o?(()=>{const t="medium";return e.jsx("div",{className:"bee-checkbox-statusLabel",children:"neutral"===l&&o?e.jsx(Or,{size:t,value:o,type:"neutral"}):"valid"===l&&o?e.jsx(Or,{size:t,value:o,type:"valid"}):"error"===l&&o?e.jsx(Or,{size:t,value:o,type:"error"}):null})})():null]})}function io({id:n,className:i,label:a,value:r,valueTemplate:o,itemTemplate:s,options:l,optionLabel:c,optionValue:u,emptyPlaceholder:d,filter:p,filterBy:h,filterPlaceholder:f,disabled:m,statusLabel:g,formstate:v="neutral",readOnly:b,required:x,editable:y,showDelete:_,deleteIcon:w,emptyMessage:j,emptyFilterMessage:k,tooltip:S,tooltipOptions:C,onChange:N}){const O=null!=n?n:H.useId(1,"bee-drop-down-")[0],D=O+"input";let z="";b&&(z=" bee-dropdown-readOnly",m=!0);const A=("valid"===v?"bee-dropdown-valid":"error"===v?"bee-dropdown-error":"bee-dropdown-neutral")+z,E=w||"pi pi-times-circle";function P(e){!m&&N&&N(e)}const R=t.useCallback((t,n)=>{var i,r;if(!!(null==t||"string"==typeof t&&0===t.length||"object"==typeof t&&0===Object.keys(t).length)){const t=null!==(i=null!=d?d:n.placeholder)&&void 0!==i?i:"string"==typeof a?a:"";return t?"string"==typeof t?e.jsx("span",{children:t}):t:e.jsx("span",{children:" "})}const s="function"==typeof o?o(t,n):o,l="string"==typeof s&&0===s.trim().length;if(null!=s&&!1!==s&&!l)return s;const c=null!==(r=null!=d?d:n.placeholder)&&void 0!==r?r:"string"==typeof a?a:"";return c?"string"==typeof c?e.jsx("span",{children:c}):c:e.jsx("span",{children:" "})},[d,a,o]);return e.jsxs("div",{className:"bee-dropdown",children:[b&&!r?e.jsx("div",{className:null!=i?i:"",children:e.jsx(zr,{id:O,label:a})}):e.jsxs("span",{id:O,className:"p-float-label bee-dropdown-container"+(i?" "+i:""),children:[e.jsx(M.Dropdown,{id:D,value:r,valueTemplate:o?R:void 0,options:l,disabled:null!=m&&m,className:A,onChange:e=>P(e),optionLabel:c,optionValue:u,itemTemplate:null!=s?s:void 0,placeholder:d,emptyMessage:null!=j?j:"Keine Einträge gefunden",emptyFilterMessage:k,editable:null!=y&&y,filter:null!=p&&p,filterPlaceholder:f,filterBy:h,tooltip:S,tooltipOptions:C}),a?e.jsxs("label",{htmlFor:D,children:[a,x&&a?e.jsx("span",{className:"bee-dropdown-label-required",children:e.jsx("span",{className:"bee-dropdown-label-required-star",children:" *"})}):null]}):null,r&&_&&e.jsx("div",{className:"filter-cancel",children:e.jsx(Y,{iconClass:E,rounded:!0,disabled:null!=m&&m,type:"lightPrimary",isLoading:!1,onClick:()=>P({label:"",value:null})})})]}),"none"!=v&&g?(()=>{const t="medium";return e.jsx("div",{className:"bee-dropdown-statusLabel",children:"error"===v&&g?e.jsx(Or,{size:t,value:g,type:"error"}):"valid"===v&&g?e.jsx(Or,{size:t,value:g,type:"valid"}):"neutral"===v&&g?e.jsx(Or,{size:t,value:g,type:"neutral"}):null})})():null]})}var ao,ro,oo;function so({maxWindow:n=!1,msg:i,participant:a,project:r,chatMsgSource:o,isCurrentUser:s=!1,showDeleteButton:l=!1,documentIconClass:c="pi pi-file",trashIconClass:u="pi pi-trash",sourceAuditIconClass:d="pi pi-briefcase",sourceLcIconClass:p="pi pi-comments",onMsgDelete:h,onDownload:f}){const m=t.useMemo(()=>{var e;return null!==(e=null==a?void 0:a.name)&&void 0!==e?e:"Unbekannter Benutzer"},[null==a?void 0:a.name]),g=t.useMemo(()=>null==a?void 0:a.type,[null==a?void 0:a.type]),{firstName:v,lastName:b}=t.useMemo(()=>function(e){var t,n;if(!(null==e?void 0:e.trim()))return{firstName:"U",lastName:"N"};const i=e.trim().split(" ").filter(e=>e.length>0);return 0===i.length?{firstName:"U",lastName:"N"}:{firstName:null!==(t=i[0])&&void 0!==t?t:"U",lastName:null!==(n=i[i.length-1])&&void 0!==n?n:"N"}}(m),[m]),x=t.useMemo(()=>g!==exports.ChatParticipantTypeEnum.USER||s?g===exports.ChatParticipantTypeEnum.USER&&s?"lc-m-chat-message--self":g===exports.ChatParticipantTypeEnum.SYSTEM?"lc-m-chat-message--system":"lc-m-chat-message--otherUser":"lc-m-chat-message--otherUser",[g,s]);function y(e){const t=new Date(e);return`${t.getDate().toString().padStart(2,"0")}.${(t.getMonth()+1).toString().padStart(2,"0")}.${t.getFullYear().toString().slice(-2)} - ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`}const _=(null==i?void 0:i.mediaId)&&"object"==typeof i.mediaId?i.mediaId:null;function w(){var t,i;if(!_)return null;const a=null!==(t=_.document)&&void 0!==t?t:_.image;if(!a)return null;const r=null!==(i=a.filename)&&void 0!==i?i:_.document?"Unbekannte Datei":"Unbekanntes Bild";return e.jsxs("div",{className:"chat-message_media-container",children:[e.jsx(Z,{label:r,iconClass:c,type:"lightPrimary",iconPos:"left",onClick:f}),n&&null!=a.fileSize?e.jsx(Or,{value:`Größe: ${a.fileSize}kb`,size:"small",type:"neutral"}):null]})}return e.jsx("div",{className:"lc-m-chat-message "+x,children:e.jsxs("div",{className:"chat-message__message-container-avatar",children:[(null==i?void 0:i.deletedAt)?null:i?e.jsxs("div",{className:"chat-message__message-container",children:[e.jsxs("div",{className:"chat-message_headline-container align-items-center"+(r===exports.ChatMessageSourceEnum.AUDIT?" pl-0":""),children:[e.jsxs("div",{className:"chat-message__user-info",children:[r===exports.ChatMessageSourceEnum.AUDIT&&o===exports.ChatMessageSourceEnum.AUDIT&&e.jsx("i",{className:d}),r===exports.ChatMessageSourceEnum.AUDIT&&o===exports.ChatMessageSourceEnum.LC&&e.jsx("i",{className:p}),r===exports.ChatMessageSourceEnum.AUDIT&&e.jsx("div",{className:"mr-1 ml-1",children:e.jsx(Or,{value:"||",size:"small",type:"neutral"})}),e.jsx(Or,{value:m,size:"small",type:"neutral"})]}),(null==i?void 0:i.createdAt)?e.jsx(Or,{value:y(i.createdAt),size:"small",type:"neutral"}):null]}),i.mediaId?w():e.jsx("div",{className:"chat-message",children:null!==(j=null==i?void 0:i.message)&&void 0!==j?j:"Keine Nachricht"}),l&&s&&h&&e.jsx(Y,{iconClass:u,type:"lightPrimary",rounded:!1,onClick:h})]}):null,e.jsx(Kr,{showPlaceholder:!0,placeholderFirstname:v,placeholderLastname:b,showDelete:!1,disabled:!1,size:"xSmall",type:"primary"})]})});var j}exports.ChatMessageSourceEnum=void 0,(ao=exports.ChatMessageSourceEnum||(exports.ChatMessageSourceEnum={})).LC="LC",ao.AUDIT="AUDIT",exports.ChatParticipantTypeEnum=void 0,(ro=exports.ChatParticipantTypeEnum||(exports.ChatParticipantTypeEnum={})).ADMIN="ADMIN",ro.USER="USER",ro.SYSTEM="SYSTEM",exports.ServerStatus=void 0,(oo=exports.ServerStatus||(exports.ServerStatus={})).SERVER_STATUS_LOADING="loading",oo.SERVER_STATUS_ERROR="error",oo.SERVER_STATUS_SUCCESS="success",oo.SERVER_STATUS_EXTERNAL_UPDATE="externalUpdate";function lo({id:n,className:i,label:a,value:r,options:o,valueTemplate:s,display:l="comma",selectionMode:c="single",placeholder:u,filter:d,filterTemplate:p,filterValue:h,filterBy:f,filterPlaceholder:m,confirmBtnText:g,confirmBtnDisabled:v,confirmBtnTooltip:b,deleteIcon:x,disabled:y,readOnly:_,statusLabel:w,formstate:j="neutral",required:k,hideDelete:S,onSelectNodes:C,onChange:N,onHide:M}){const O=null!=n?n:H.useId(1,"bee-filter-ts-")[0],z=O+"input",[A,E]=t.useState(r);let P="";_&&(P=" bee-filter-ts-readOnly",y=!0);const R=("valid"===j?"bee-filter-ts-valid":"error"===j?"bee-filter-ts-error":"bee-filter-ts-neutral")+P,I=" p-float-label bee-filter-ts-container",T=d?"bee-filter-ts-panel":"bee-filter-ts-panel bee-filter-ts-invisible-header",L=x||"pi pi-times-circle";function F(){const e=document.querySelector("body");if(e){const t=new MouseEvent("click",{bubbles:!0,view:window});e.dispatchEvent(t)}}function B(){!y&&M&&M()}t.useEffect(()=>{E(r)},[r]);return e.jsxs(e.Fragment,{children:[_&&!r?e.jsx("div",{className:null!=i?i:"",children:e.jsx(zr,{id:O,label:a})}):e.jsxs("div",{id:O,className:i?i+I:I,children:[e.jsx("div",{className:!_&&r&&Object.keys(r).length>0?"bee-filter-ts-filter__deleteBtn":"bee-filter-ts-filter__deleteBtn bee-filter-ts-filter--hidden",children:!A||""===A||S?null:e.jsx("div",{className:"cancel",children:e.jsx(Y,{iconClass:L,rounded:!0,disabled:y||!1,type:"lightPrimary",isLoading:!1,onClick:()=>{E(""),!y&&C&&(C(void 0),F())}})})}),e.jsxs("span",{className:"p-float-label",children:[e.jsx(D.TreeSelect,{id:z,value:A,options:o,disabled:y||!1,className:R,valueTemplate:s,panelClassName:T,display:null!=l?l:"comma",selectionMode:c,placeholder:u,filter:d,filterTemplate:p,filterValue:h,filterBy:f,filterPlaceholder:m||"Suche",onChange:e=>{E(e.value),function(e){!y&&N&&N(e)}(e)},onHide:()=>{E(r),B()},panelFooterTemplate:()=>e.jsx("div",{className:"p-d-flex p-jc-end p-ai-center",style:{padding:"1rem"},children:e.jsx(U,{label:g||"Übernehmen",type:"secondary",disabled:v||!1,tooltip:v&&b?b:void 0,onClick:()=>{B(),!y&&C&&(C(A),F())}})})}),a?e.jsxs("label",{htmlFor:z,className:"bee-filter-ts-label",children:[a,k&&a?e.jsx("span",{className:"bee-filter-ts-label-required",children:e.jsx("span",{className:"bee-filter-ts-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=j&&w?(()=>{const t="medium";return e.jsx("div",{className:"bee-filter-ts-statusLabel",children:"error"===j&&null!=w?e.jsx(Or,{size:t,value:String(w),type:"error"}):"valid"===j&&null!=w?e.jsx(Or,{size:t,value:String(w),type:"valid"}):"neutral"===j&&null!=w?e.jsx(Or,{size:t,value:String(w),type:"neutral"}):null})})():null]})}function co({id:t,className:n,imageUrl:i,imageKey:a,imageAlt:r,imageTitle:o,imageCopyright:s,isImageSecured:l=!1,showPlaceHolder:c=!1,activateHover:u=!0,readOnly:d,onClick:p,onRemove:h,onAdd:f}){const m=null!=t?t:H.useId(1,"bee-gallery-img-")[0],g="bee-gallery-img "+(d?"bee-gallery-img-readOnly":"")+(u?" bee-gallery-img-hover":" bee-gallery-img-noHover")+" bee-gallery-img-placeholder"+(n?" "+n:"");return e.jsx("div",{id:m,className:g,children:i?e.jsxs("div",{children:[d?null:e.jsx("div",{className:"bee-gallery-img-close-button",children:e.jsx(Y,{iconClass:"pi pi-times",rounded:!0,disabled:!1,type:"secondary",isLoading:!1,onClick:e=>function(e){h&&h(e)}(e)})}),e.jsx("div",{className:"bee-gallery-img-content",children:e.jsx(Yr,{url:i,alt:r,title:o,titlePosition:"left",copyright:s,secured:l,secureKey:l?a:void 0,showPlaceholder:c,onClick:e=>function(e){p&&p(e)}(e)},a)})]}):d?null:e.jsx("div",{className:"bee-gallery-img-add-button",children:e.jsx(qr,{disabled:d||!1,onClick:e=>function(e){f&&f(e)}(e)})})})}var uo,po,ho,fo,mo,go,vo,bo,xo,yo;function _o(){if(go)return mo;go=1;var e,t=function(){if(fo)return ho;fo=1;var e=!("undefined"==typeof window||!window.document||!window.document.createElement),t={canUseDOM:e,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:e&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:e&&!!window.screen,isInWorker:!e};return ho=t}();return t.canUseDOM&&(e=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
|
27
|
+
*/function requireLodash(){return hasRequiredLodash||(hasRequiredLodash=1,e=lodash$1,t=lodash$1.exports,function(){var i,r="Expected a function",n="__lodash_hash_undefined__",a="__lodash_placeholder__",s=32,o=128,l=256,c=1/0,h=9007199254740991,p=NaN,u=4294967295,d=[["ary",o],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",l]],f="[object Arguments]",m="[object Array]",g="[object Boolean]",v="[object Date]",y="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",S="[object Number]",w="[object Object]",C="[object Promise]",P="[object RegExp]",E="[object Set]",k="[object String]",$="[object Symbol]",A="[object WeakMap]",T="[object ArrayBuffer]",D="[object DataView]",M="[object Float32Array]",I="[object Float64Array]",F="[object Int8Array]",j="[object Int16Array]",R="[object Int32Array]",B="[object Uint8Array]",O="[object Uint8ClampedArray]",L="[object Uint16Array]",q="[object Uint32Array]",N=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,W=/[&<>"']/g,G=RegExp(H.source),U=RegExp(W.source),Y=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ee=/[\\^$.*+?()[\]{}|]/g,te=RegExp(ee.source),ie=/^\s+/,re=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,oe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,ue=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,fe=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ye=/($^)/,be=/['\n\r\u2028\u2029\\]/g,xe="\\ud800-\\udfff",_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",we="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Pe="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ke="['’]",$e="["+xe+"]",Ae="["+Ee+"]",Te="["+_e+"]",De="\\d+",Me="["+Se+"]",Ie="["+we+"]",Fe="[^"+xe+Ee+De+Se+we+Ce+"]",je="\\ud83c[\\udffb-\\udfff]",Re="[^"+xe+"]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Oe="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Ce+"]",qe="\\u200d",Ne="(?:"+Ie+"|"+Fe+")",ze="(?:"+Le+"|"+Fe+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Te+"|"+je+")?",Ge="["+Pe+"]?",Ue=Ge+We+"(?:"+qe+"(?:"+[Re,Be,Oe].join("|")+")"+Ge+We+")*",Ye="(?:"+[Me,Be,Oe].join("|")+")"+Ue,Ke="(?:"+[Re+Te+"?",Te,Be,Oe,$e].join("|")+")",Xe=RegExp(ke,"g"),Ze=RegExp(Te,"g"),Je=RegExp(je+"(?="+je+")|"+Ke+Ue,"g"),Qe=RegExp([Le+"?"+Ie+"+"+Ve+"(?="+[Ae,Le,"$"].join("|")+")",ze+"+"+He+"(?="+[Ae,Le+Ne,"$"].join("|")+")",Le+"?"+Ne+"+"+Ve,Le+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Ye].join("|"),"g"),et=RegExp("["+qe+xe+_e+Pe+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,nt={};nt[M]=nt[I]=nt[F]=nt[j]=nt[R]=nt[B]=nt[O]=nt[L]=nt[q]=!0,nt[f]=nt[m]=nt[T]=nt[g]=nt[D]=nt[v]=nt[y]=nt[b]=nt[_]=nt[S]=nt[w]=nt[P]=nt[E]=nt[k]=nt[A]=!1;var at={};at[f]=at[m]=at[T]=at[D]=at[g]=at[v]=at[M]=at[I]=at[F]=at[j]=at[R]=at[_]=at[S]=at[w]=at[P]=at[E]=at[k]=at[$]=at[B]=at[O]=at[L]=at[q]=!0,at[y]=at[b]=at[A]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,lt=parseInt,ct="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=ct||ht||Function("return this")(),ut=t&&!t.nodeType&&t,dt=ut&&e&&!e.nodeType&&e,ft=dt&&dt.exports===ut,mt=ft&&ct.process,gt=function(){try{var e=dt&&dt.require&&dt.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&>.isArrayBuffer,yt=gt&>.isDate,bt=gt&>.isMap,xt=gt&>.isRegExp,_t=gt&>.isSet,St=gt&>.isTypedArray;function wt(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}function Ct(e,t,i,r){for(var n=-1,a=null==e?0:e.length;++n<a;){var s=e[n];t(r,s,i(s),e)}return r}function Pt(e,t){for(var i=-1,r=null==e?0:e.length;++i<r&&!1!==t(e[i],i,e););return e}function Et(e,t){for(var i=null==e?0:e.length;i--&&!1!==t(e[i],i,e););return e}function kt(e,t){for(var i=-1,r=null==e?0:e.length;++i<r;)if(!t(e[i],i,e))return!1;return!0}function $t(e,t){for(var i=-1,r=null==e?0:e.length,n=0,a=[];++i<r;){var s=e[i];t(s,i,e)&&(a[n++]=s)}return a}function At(e,t){return!(null==e||!e.length)&&Lt(e,t,0)>-1}function Tt(e,t,i){for(var r=-1,n=null==e?0:e.length;++r<n;)if(i(t,e[r]))return!0;return!1}function Dt(e,t){for(var i=-1,r=null==e?0:e.length,n=Array(r);++i<r;)n[i]=t(e[i],i,e);return n}function Mt(e,t){for(var i=-1,r=t.length,n=e.length;++i<r;)e[n+i]=t[i];return e}function It(e,t,i,r){var n=-1,a=null==e?0:e.length;for(r&&a&&(i=e[++n]);++n<a;)i=t(i,e[n],n,e);return i}function Ft(e,t,i,r){var n=null==e?0:e.length;for(r&&n&&(i=e[--n]);n--;)i=t(i,e[n],n,e);return i}function jt(e,t){for(var i=-1,r=null==e?0:e.length;++i<r;)if(t(e[i],i,e))return!0;return!1}var Rt=Vt("length");function Bt(e,t,i){var r;return i(e,function(e,i,n){if(t(e,i,n))return r=i,!1}),r}function Ot(e,t,i,r){for(var n=e.length,a=i+(r?1:-1);r?a--:++a<n;)if(t(e[a],a,e))return a;return-1}function Lt(e,t,i){return t==t?function(e,t,i){for(var r=i-1,n=e.length;++r<n;)if(e[r]===t)return r;return-1}(e,t,i):Ot(e,Nt,i)}function qt(e,t,i,r){for(var n=i-1,a=e.length;++n<a;)if(r(e[n],t))return n;return-1}function Nt(e){return e!=e}function zt(e,t){var i=null==e?0:e.length;return i?Gt(e,t)/i:p}function Vt(e){return function(t){return null==t?i:t[e]}}function Ht(e){return function(t){return null==e?i:e[t]}}function Wt(e,t,i,r,n){return n(e,function(e,n,a){i=r?(r=!1,e):t(i,e,n,a)}),i}function Gt(e,t){for(var r,n=-1,a=e.length;++n<a;){var s=t(e[n]);s!==i&&(r=r===i?s:r+s)}return r}function Ut(e,t){for(var i=-1,r=Array(e);++i<e;)r[i]=t(i);return r}function Yt(e){return e?e.slice(0,pi(e)+1).replace(ie,""):e}function Kt(e){return function(t){return e(t)}}function Xt(e,t){return Dt(t,function(t){return e[t]})}function Zt(e,t){return e.has(t)}function Jt(e,t){for(var i=-1,r=e.length;++i<r&&Lt(t,e[i],0)>-1;);return i}function Qt(e,t){for(var i=e.length;i--&&Lt(t,e[i],0)>-1;);return i}var ei=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ti=Ht({"&":"&","<":"<",">":">",'"':""","'":"'"});function ii(e){return"\\"+st[e]}function ri(e){return et.test(e)}function ni(e){var t=-1,i=Array(e.size);return e.forEach(function(e,r){i[++t]=[r,e]}),i}function ai(e,t){return function(i){return e(t(i))}}function si(e,t){for(var i=-1,r=e.length,n=0,s=[];++i<r;){var o=e[i];o!==t&&o!==a||(e[i]=a,s[n++]=i)}return s}function oi(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}function li(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=[e,e]}),i}function ci(e){return ri(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Rt(e)}function hi(e){return ri(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function pi(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t}var ui=Ht({"&":"&","<":"<",">":">",""":'"',"'":"'"}),di=function e(t){var re=(t=null==t?pt:di.defaults(pt.Object(),t,di.pick(pt,it))).Array,xe=t.Date,_e=t.Error,Se=t.Function,we=t.Math,Ce=t.Object,Pe=t.RegExp,Ee=t.String,ke=t.TypeError,$e=re.prototype,Ae=Se.prototype,Te=Ce.prototype,De=t["__core-js_shared__"],Me=Ae.toString,Ie=Te.hasOwnProperty,Fe=0,je=function(){var e=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Re=Te.toString,Be=Me.call(Ce),Oe=pt._,Le=Pe("^"+Me.call(Ie).replace(ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=ft?t.Buffer:i,Ne=t.Symbol,ze=t.Uint8Array,Ve=qe?qe.allocUnsafe:i,He=ai(Ce.getPrototypeOf,Ce),We=Ce.create,Ge=Te.propertyIsEnumerable,Ue=$e.splice,Ye=Ne?Ne.isConcatSpreadable:i,Ke=Ne?Ne.iterator:i,Je=Ne?Ne.toStringTag:i,et=function(){try{var e=ca(Ce,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ct=xe&&xe.now!==pt.Date.now&&xe.now,ht=t.setTimeout!==pt.setTimeout&&t.setTimeout,ut=we.ceil,dt=we.floor,mt=Ce.getOwnPropertySymbols,gt=qe?qe.isBuffer:i,Rt=t.isFinite,Ht=$e.join,fi=ai(Ce.keys,Ce),mi=we.max,gi=we.min,vi=xe.now,yi=t.parseInt,bi=we.random,xi=$e.reverse,_i=ca(t,"DataView"),Si=ca(t,"Map"),wi=ca(t,"Promise"),Ci=ca(t,"Set"),Pi=ca(t,"WeakMap"),Ei=ca(Ce,"create"),ki=Pi&&new Pi,$i={},Ai=ja(_i),Ti=ja(Si),Di=ja(wi),Mi=ja(Ci),Ii=ja(Pi),Fi=Ne?Ne.prototype:i,ji=Fi?Fi.valueOf:i,Ri=Fi?Fi.toString:i;function Bi(e){if(Js(e)&&!Ns(e)&&!(e instanceof Ni)){if(e instanceof qi)return e;if(Ie.call(e,"__wrapped__"))return Ra(e)}return new qi(e)}var Oi=function(){function e(){}return function(t){if(!Zs(t))return{};if(We)return We(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Li(){}function qi(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Ni(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=u,this.__views__=[]}function zi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Vi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Hi(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Wi(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new Hi;++t<i;)this.add(e[t])}function Gi(e){var t=this.__data__=new Vi(e);this.size=t.size}function Ui(e,t){var i=Ns(e),r=!i&&qs(e),n=!i&&!r&&Ws(e),a=!i&&!r&&!n&&so(e),s=i||r||n||a,o=s?Ut(e.length,Ee):[],l=o.length;for(var c in e)!t&&!Ie.call(e,c)||s&&("length"==c||n&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ga(c,l))||o.push(c);return o}function Yi(e){var t=e.length;return t?e[Wr(0,t-1)]:i}function Ki(e,t){return Ma(kn(e),nr(t,0,e.length))}function Xi(e){return Ma(kn(e))}function Zi(e,t,r){(r!==i&&!Bs(e[t],r)||r===i&&!(t in e))&&ir(e,t,r)}function Ji(e,t,r){var n=e[t];Ie.call(e,t)&&Bs(n,r)&&(r!==i||t in e)||ir(e,t,r)}function Qi(e,t){for(var i=e.length;i--;)if(Bs(e[i][0],t))return i;return-1}function er(e,t,i,r){return cr(e,function(e,n,a){t(r,e,i(e),a)}),r}function tr(e,t){return e&&$n(t,Ao(t),e)}function ir(e,t,i){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function rr(e,t){for(var r=-1,n=t.length,a=re(n),s=null==e;++r<n;)a[r]=s?i:Co(e,t[r]);return a}function nr(e,t,r){return e==e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,r,n,a,s){var o,l=1&t,c=2&t,h=4&t;if(r&&(o=a?r(e,n,a,s):r(e)),o!==i)return o;if(!Zs(e))return e;var p=Ns(e);if(p){if(o=function(e){var t=e.length,i=new e.constructor(t);return t&&"string"==typeof e[0]&&Ie.call(e,"index")&&(i.index=e.index,i.input=e.input),i}(e),!l)return kn(e,o)}else{var u=ua(e),d=u==b||u==x;if(Ws(e))return _n(e,l);if(u==w||u==f||d&&!a){if(o=c||d?{}:fa(e),!l)return c?function(e,t){return $n(e,pa(e),t)}(e,function(e,t){return e&&$n(t,To(t),e)}(o,e)):function(e,t){return $n(e,ha(e),t)}(e,tr(o,e))}else{if(!at[u])return a?e:{};o=function(e,t,i){var r,n=e.constructor;switch(t){case T:return Sn(e);case g:case v:return new n(+e);case D:return function(e,t){var i=t?Sn(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}(e,i);case M:case I:case F:case j:case R:case B:case O:case L:case q:return wn(e,i);case _:return new n;case S:case k:return new n(e);case P:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new n;case $:return r=e,ji?Ce(ji.call(r)):{}}}(e,u,l)}}s||(s=new Gi);var m=s.get(e);if(m)return m;s.set(e,o),ro(e)?e.forEach(function(i){o.add(ar(i,t,r,i,e,s))}):Qs(e)&&e.forEach(function(i,n){o.set(n,ar(i,t,r,n,e,s))});var y=p?i:(h?c?ia:ta:c?To:Ao)(e);return Pt(y||e,function(i,n){y&&(i=e[n=i]),Ji(o,n,ar(i,t,r,n,e,s))}),o}function sr(e,t,r){var n=r.length;if(null==e)return!n;for(e=Ce(e);n--;){var a=r[n],s=t[a],o=e[a];if(o===i&&!(a in e)||!s(o))return!1}return!0}function or(e,t,n){if("function"!=typeof e)throw new ke(r);return $a(function(){e.apply(i,n)},t)}function lr(e,t,i,r){var n=-1,a=At,s=!0,o=e.length,l=[],c=t.length;if(!o)return l;i&&(t=Dt(t,Kt(i))),r?(a=Tt,s=!1):t.length>=200&&(a=Zt,s=!1,t=new Wi(t));e:for(;++n<o;){var h=e[n],p=null==i?h:i(h);if(h=r||0!==h?h:0,s&&p==p){for(var u=c;u--;)if(t[u]===p)continue e;l.push(h)}else a(t,p,r)||l.push(h)}return l}Bi.templateSettings={escape:Y,evaluate:K,interpolate:X,variable:"",imports:{_:Bi}},Bi.prototype=Li.prototype,Bi.prototype.constructor=Bi,qi.prototype=Oi(Li.prototype),qi.prototype.constructor=qi,Ni.prototype=Oi(Li.prototype),Ni.prototype.constructor=Ni,zi.prototype.clear=function(){this.__data__=Ei?Ei(null):{},this.size=0},zi.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},zi.prototype.get=function(e){var t=this.__data__;if(Ei){var r=t[e];return r===n?i:r}return Ie.call(t,e)?t[e]:i},zi.prototype.has=function(e){var t=this.__data__;return Ei?t[e]!==i:Ie.call(t,e)},zi.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ei&&t===i?n:t,this},Vi.prototype.clear=function(){this.__data__=[],this.size=0},Vi.prototype.delete=function(e){var t=this.__data__,i=Qi(t,e);return!(i<0||(i==t.length-1?t.pop():Ue.call(t,i,1),--this.size,0))},Vi.prototype.get=function(e){var t=this.__data__,r=Qi(t,e);return r<0?i:t[r][1]},Vi.prototype.has=function(e){return Qi(this.__data__,e)>-1},Vi.prototype.set=function(e,t){var i=this.__data__,r=Qi(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this},Hi.prototype.clear=function(){this.size=0,this.__data__={hash:new zi,map:new(Si||Vi),string:new zi}},Hi.prototype.delete=function(e){var t=oa(this,e).delete(e);return this.size-=t?1:0,t},Hi.prototype.get=function(e){return oa(this,e).get(e)},Hi.prototype.has=function(e){return oa(this,e).has(e)},Hi.prototype.set=function(e,t){var i=oa(this,e),r=i.size;return i.set(e,t),this.size+=i.size==r?0:1,this},Wi.prototype.add=Wi.prototype.push=function(e){return this.__data__.set(e,n),this},Wi.prototype.has=function(e){return this.__data__.has(e)},Gi.prototype.clear=function(){this.__data__=new Vi,this.size=0},Gi.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},Gi.prototype.get=function(e){return this.__data__.get(e)},Gi.prototype.has=function(e){return this.__data__.has(e)},Gi.prototype.set=function(e,t){var i=this.__data__;if(i instanceof Vi){var r=i.__data__;if(!Si||r.length<199)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new Hi(r)}return i.set(e,t),this.size=i.size,this};var cr=Dn(vr),hr=Dn(yr,!0);function pr(e,t){var i=!0;return cr(e,function(e,r,n){return i=!!t(e,r,n)}),i}function ur(e,t,r){for(var n=-1,a=e.length;++n<a;){var s=e[n],o=t(s);if(null!=o&&(l===i?o==o&&!ao(o):r(o,l)))var l=o,c=s}return c}function dr(e,t){var i=[];return cr(e,function(e,r,n){t(e,r,n)&&i.push(e)}),i}function fr(e,t,i,r,n){var a=-1,s=e.length;for(i||(i=ma),n||(n=[]);++a<s;){var o=e[a];t>0&&i(o)?t>1?fr(o,t-1,i,r,n):Mt(n,o):r||(n[n.length]=o)}return n}var mr=Mn(),gr=Mn(!0);function vr(e,t){return e&&mr(e,t,Ao)}function yr(e,t){return e&&gr(e,t,Ao)}function br(e,t){return $t(t,function(t){return Ys(e[t])})}function xr(e,t){for(var r=0,n=(t=vn(t,e)).length;null!=e&&r<n;)e=e[Fa(t[r++])];return r&&r==n?e:i}function _r(e,t,i){var r=t(e);return Ns(e)?r:Mt(r,i(e))}function Sr(e){return null==e?e===i?"[object Undefined]":"[object Null]":Je&&Je in Ce(e)?function(e){var t=Ie.call(e,Je),r=e[Je];try{e[Je]=i;var n=!0}catch(e){}var a=Re.call(e);return n&&(t?e[Je]=r:delete e[Je]),a}(e):function(e){return Re.call(e)}(e)}function wr(e,t){return e>t}function Cr(e,t){return null!=e&&Ie.call(e,t)}function Pr(e,t){return null!=e&&t in Ce(e)}function Er(e,t,r){for(var n=r?Tt:At,a=e[0].length,s=e.length,o=s,l=re(s),c=1/0,h=[];o--;){var p=e[o];o&&t&&(p=Dt(p,Kt(t))),c=gi(p.length,c),l[o]=!r&&(t||a>=120&&p.length>=120)?new Wi(o&&p):i}p=e[0];var u=-1,d=l[0];e:for(;++u<a&&h.length<c;){var f=p[u],m=t?t(f):f;if(f=r||0!==f?f:0,!(d?Zt(d,m):n(h,m,r))){for(o=s;--o;){var g=l[o];if(!(g?Zt(g,m):n(e[o],m,r)))continue e}d&&d.push(m),h.push(f)}}return h}function kr(e,t,r){var n=null==(e=Pa(e,t=vn(t,e)))?e:e[Fa(Ua(t))];return null==n?i:wt(n,e,r)}function $r(e){return Js(e)&&Sr(e)==f}function Ar(e,t,r,n,a){return e===t||(null==e||null==t||!Js(e)&&!Js(t)?e!=e&&t!=t:function(e,t,r,n,a,s){var o=Ns(e),l=Ns(t),c=o?m:ua(e),h=l?m:ua(t),p=(c=c==f?w:c)==w,u=(h=h==f?w:h)==w,d=c==h;if(d&&Ws(e)){if(!Ws(t))return!1;o=!0,p=!1}if(d&&!p)return s||(s=new Gi),o||so(e)?Qn(e,t,r,n,a,s):function(e,t,i,r,n,a,s){switch(i){case D:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!a(new ze(e),new ze(t)));case g:case v:case S:return Bs(+e,+t);case y:return e.name==t.name&&e.message==t.message;case P:case k:return e==t+"";case _:var o=ni;case E:var l=1&r;if(o||(o=oi),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=2,s.set(e,t);var h=Qn(o(e),o(t),r,n,a,s);return s.delete(e),h;case $:if(ji)return ji.call(e)==ji.call(t)}return!1}(e,t,c,r,n,a,s);if(!(1&r)){var b=p&&Ie.call(e,"__wrapped__"),x=u&&Ie.call(t,"__wrapped__");if(b||x){var C=b?e.value():e,A=x?t.value():t;return s||(s=new Gi),a(C,A,r,n,s)}}return!!d&&(s||(s=new Gi),function(e,t,r,n,a,s){var o=1&r,l=ta(e),c=l.length,h=ta(t),p=h.length;if(c!=p&&!o)return!1;for(var u=c;u--;){var d=l[u];if(!(o?d in t:Ie.call(t,d)))return!1}var f=s.get(e),m=s.get(t);if(f&&m)return f==t&&m==e;var g=!0;s.set(e,t),s.set(t,e);for(var v=o;++u<c;){var y=e[d=l[u]],b=t[d];if(n)var x=o?n(b,y,d,t,e,s):n(y,b,d,e,t,s);if(!(x===i?y===b||a(y,b,r,n,s):x)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var _=e.constructor,S=t.constructor;_==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof S&&S instanceof S||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,r,n,a,s))}(e,t,r,n,Ar,a))}function Tr(e,t,r,n){var a=r.length,s=a,o=!n;if(null==e)return!s;for(e=Ce(e);a--;){var l=r[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var c=(l=r[a])[0],h=e[c],p=l[1];if(o&&l[2]){if(h===i&&!(c in e))return!1}else{var u=new Gi;if(n)var d=n(h,p,c,e,t,u);if(!(d===i?Ar(p,h,3,n,u):d))return!1}}return!0}function Dr(e){return!(!Zs(e)||(t=e,je&&je in t))&&(Ys(e)?Le:fe).test(ja(e));var t}function Mr(e){return"function"==typeof e?e:null==e?tl:"object"==typeof e?Ns(e)?Or(e[0],e[1]):Br(e):hl(e)}function Ir(e){if(!_a(e))return fi(e);var t=[];for(var i in Ce(e))Ie.call(e,i)&&"constructor"!=i&&t.push(i);return t}function Fr(e){if(!Zs(e))return function(e){var t=[];if(null!=e)for(var i in Ce(e))t.push(i);return t}(e);var t=_a(e),i=[];for(var r in e)("constructor"!=r||!t&&Ie.call(e,r))&&i.push(r);return i}function jr(e,t){return e<t}function Rr(e,t){var i=-1,r=Vs(e)?re(e.length):[];return cr(e,function(e,n,a){r[++i]=t(e,n,a)}),r}function Br(e){var t=la(e);return 1==t.length&&t[0][2]?wa(t[0][0],t[0][1]):function(i){return i===e||Tr(i,e,t)}}function Or(e,t){return ya(e)&&Sa(t)?wa(Fa(e),t):function(r){var n=Co(r,e);return n===i&&n===t?Po(r,e):Ar(t,n,3)}}function Lr(e,t,r,n,a){e!==t&&mr(t,function(s,o){if(a||(a=new Gi),Zs(s))!function(e,t,r,n,a,s,o){var l=Ea(e,r),c=Ea(t,r),h=o.get(c);if(h)Zi(e,r,h);else{var p=s?s(l,c,r+"",e,t,o):i,u=p===i;if(u){var d=Ns(c),f=!d&&Ws(c),m=!d&&!f&&so(c);p=c,d||f||m?Ns(l)?p=l:Hs(l)?p=kn(l):f?(u=!1,p=_n(c,!0)):m?(u=!1,p=wn(c,!0)):p=[]:to(c)||qs(c)?(p=l,qs(l)?p=mo(l):Zs(l)&&!Ys(l)||(p=fa(c))):u=!1}u&&(o.set(c,p),a(p,c,n,s,o),o.delete(c)),Zi(e,r,p)}}(e,t,o,r,Lr,n,a);else{var l=n?n(Ea(e,o),s,o+"",e,t,a):i;l===i&&(l=s),Zi(e,o,l)}},To)}function qr(e,t){var r=e.length;if(r)return ga(t+=t<0?r:0,r)?e[t]:i}function Nr(e,t,i){t=t.length?Dt(t,function(e){return Ns(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e}):[tl];var r=-1;t=Dt(t,Kt(sa()));var n=Rr(e,function(e,i,n){var a=Dt(t,function(t){return t(e)});return{criteria:a,index:++r,value:e}});return function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}(n,function(e,t){return function(e,t,i){for(var r=-1,n=e.criteria,a=t.criteria,s=n.length,o=i.length;++r<s;){var l=Cn(n[r],a[r]);if(l)return r>=o?l:l*("desc"==i[r]?-1:1)}return e.index-t.index}(e,t,i)})}function zr(e,t,i){for(var r=-1,n=t.length,a={};++r<n;){var s=t[r],o=xr(e,s);i(o,s)&&Xr(a,vn(s,e),o)}return a}function Vr(e,t,i,r){var n=r?qt:Lt,a=-1,s=t.length,o=e;for(e===t&&(t=kn(t)),i&&(o=Dt(e,Kt(i)));++a<s;)for(var l=0,c=t[a],h=i?i(c):c;(l=n(o,h,l,r))>-1;)o!==e&&Ue.call(o,l,1),Ue.call(e,l,1);return e}function Hr(e,t){for(var i=e?t.length:0,r=i-1;i--;){var n=t[i];if(i==r||n!==a){var a=n;ga(n)?Ue.call(e,n,1):cn(e,n)}}return e}function Wr(e,t){return e+dt(bi()*(t-e+1))}function Gr(e,t){var i="";if(!e||t<1||t>h)return i;do{t%2&&(i+=e),(t=dt(t/2))&&(e+=e)}while(t);return i}function Ur(e,t){return Aa(Ca(e,t,tl),e+"")}function Yr(e){return Yi(Oo(e))}function Kr(e,t){var i=Oo(e);return Ma(i,nr(t,0,i.length))}function Xr(e,t,r,n){if(!Zs(e))return e;for(var a=-1,s=(t=vn(t,e)).length,o=s-1,l=e;null!=l&&++a<s;){var c=Fa(t[a]),h=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=o){var p=l[c];(h=n?n(p,c,l):i)===i&&(h=Zs(p)?p:ga(t[a+1])?[]:{})}Ji(l,c,h),l=l[c]}return e}var Zr=ki?function(e,t){return ki.set(e,t),e}:tl,Jr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Jo(t),writable:!0})}:tl;function Qr(e){return Ma(Oo(e))}function en(e,t,i){var r=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(i=i>n?n:i)<0&&(i+=n),n=t>i?0:i-t>>>0,t>>>=0;for(var a=re(n);++r<n;)a[r]=e[r+t];return a}function tn(e,t){var i;return cr(e,function(e,r,n){return!(i=t(e,r,n))}),!!i}function rn(e,t,i){var r=0,n=null==e?r:e.length;if("number"==typeof t&&t==t&&n<=2147483647){for(;r<n;){var a=r+n>>>1,s=e[a];null!==s&&!ao(s)&&(i?s<=t:s<t)?r=a+1:n=a}return n}return nn(e,t,tl,i)}function nn(e,t,r,n){var a=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=r(t))!=t,l=null===t,c=ao(t),h=t===i;a<s;){var p=dt((a+s)/2),u=r(e[p]),d=u!==i,f=null===u,m=u==u,g=ao(u);if(o)var v=n||m;else v=h?m&&(n||d):l?m&&d&&(n||!f):c?m&&d&&!f&&(n||!g):!f&&!g&&(n?u<=t:u<t);v?a=p+1:s=p}return gi(s,4294967294)}function an(e,t){for(var i=-1,r=e.length,n=0,a=[];++i<r;){var s=e[i],o=t?t(s):s;if(!i||!Bs(o,l)){var l=o;a[n++]=0===s?0:s}}return a}function sn(e){return"number"==typeof e?e:ao(e)?p:+e}function on(e){if("string"==typeof e)return e;if(Ns(e))return Dt(e,on)+"";if(ao(e))return Ri?Ri.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ln(e,t,i){var r=-1,n=At,a=e.length,s=!0,o=[],l=o;if(i)s=!1,n=Tt;else if(a>=200){var c=t?null:Un(e);if(c)return oi(c);s=!1,n=Zt,l=new Wi}else l=t?[]:o;e:for(;++r<a;){var h=e[r],p=t?t(h):h;if(h=i||0!==h?h:0,s&&p==p){for(var u=l.length;u--;)if(l[u]===p)continue e;t&&l.push(p),o.push(h)}else n(l,p,i)||(l!==o&&l.push(p),o.push(h))}return o}function cn(e,t){var i=-1,r=(t=vn(t,e)).length;if(!r)return!0;for(var n=null==e||"object"!=typeof e&&"function"!=typeof e;++i<r;){var a=t[i];if("string"==typeof a){if("__proto__"===a&&!Ie.call(e,"__proto__"))return!1;if("constructor"===a&&i+1<r&&"string"==typeof t[i+1]&&"prototype"===t[i+1]){if(n&&0===i)continue;return!1}}}var s=Pa(e,t);return null==s||delete s[Fa(Ua(t))]}function hn(e,t,i,r){return Xr(e,t,i(xr(e,t)),r)}function pn(e,t,i,r){for(var n=e.length,a=r?n:-1;(r?a--:++a<n)&&t(e[a],a,e););return i?en(e,r?0:a,r?a+1:n):en(e,r?a+1:0,r?n:a)}function un(e,t){var i=e;return i instanceof Ni&&(i=i.value()),It(t,function(e,t){return t.func.apply(t.thisArg,Mt([e],t.args))},i)}function dn(e,t,i){var r=e.length;if(r<2)return r?ln(e[0]):[];for(var n=-1,a=re(r);++n<r;)for(var s=e[n],o=-1;++o<r;)o!=n&&(a[n]=lr(a[n]||s,e[o],t,i));return ln(fr(a,1),t,i)}function fn(e,t,r){for(var n=-1,a=e.length,s=t.length,o={};++n<a;){var l=n<s?t[n]:i;r(o,e[n],l)}return o}function mn(e){return Hs(e)?e:[]}function gn(e){return"function"==typeof e?e:tl}function vn(e,t){return Ns(e)?e:ya(e,t)?[e]:Ia(go(e))}var yn=Ur;function bn(e,t,r){var n=e.length;return r=r===i?n:r,!t&&r>=n?e:en(e,t,r)}var xn=st||function(e){return pt.clearTimeout(e)};function _n(e,t){if(t)return e.slice();var i=e.length,r=Ve?Ve(i):new e.constructor(i);return e.copy(r),r}function Sn(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function wn(e,t){var i=t?Sn(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function Cn(e,t){if(e!==t){var r=e!==i,n=null===e,a=e==e,s=ao(e),o=t!==i,l=null===t,c=t==t,h=ao(t);if(!l&&!h&&!s&&e>t||s&&o&&c&&!l&&!h||n&&o&&c||!r&&c||!a)return 1;if(!n&&!s&&!h&&e<t||h&&r&&a&&!n&&!s||l&&r&&a||!o&&a||!c)return-1}return 0}function Pn(e,t,i,r){for(var n=-1,a=e.length,s=i.length,o=-1,l=t.length,c=mi(a-s,0),h=re(l+c),p=!r;++o<l;)h[o]=t[o];for(;++n<s;)(p||n<a)&&(h[i[n]]=e[n]);for(;c--;)h[o++]=e[n++];return h}function En(e,t,i,r){for(var n=-1,a=e.length,s=-1,o=i.length,l=-1,c=t.length,h=mi(a-o,0),p=re(h+c),u=!r;++n<h;)p[n]=e[n];for(var d=n;++l<c;)p[d+l]=t[l];for(;++s<o;)(u||n<a)&&(p[d+i[s]]=e[n++]);return p}function kn(e,t){var i=-1,r=e.length;for(t||(t=re(r));++i<r;)t[i]=e[i];return t}function $n(e,t,r,n){var a=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var l=t[s],c=n?n(r[l],e[l],l,r,e):i;c===i&&(c=e[l]),a?ir(r,l,c):Ji(r,l,c)}return r}function An(e,t){return function(i,r){var n=Ns(i)?Ct:er,a=t?t():{};return n(i,e,sa(r,2),a)}}function Tn(e){return Ur(function(t,r){var n=-1,a=r.length,s=a>1?r[a-1]:i,o=a>2?r[2]:i;for(s=e.length>3&&"function"==typeof s?(a--,s):i,o&&va(r[0],r[1],o)&&(s=a<3?i:s,a=1),t=Ce(t);++n<a;){var l=r[n];l&&e(t,l,n,s)}return t})}function Dn(e,t){return function(i,r){if(null==i)return i;if(!Vs(i))return e(i,r);for(var n=i.length,a=t?n:-1,s=Ce(i);(t?a--:++a<n)&&!1!==r(s[a],a,s););return i}}function Mn(e){return function(t,i,r){for(var n=-1,a=Ce(t),s=r(t),o=s.length;o--;){var l=s[e?o:++n];if(!1===i(a[l],l,a))break}return t}}function In(e){return function(t){var r=ri(t=go(t))?hi(t):i,n=r?r[0]:t.charAt(0),a=r?bn(r,1).join(""):t.slice(1);return n[e]()+a}}function Fn(e){return function(t){return It(Ko(No(t).replace(Xe,"")),e,"")}}function jn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=Oi(e.prototype),r=e.apply(i,t);return Zs(r)?r:i}}function Rn(e){return function(t,r,n){var a=Ce(t);if(!Vs(t)){var s=sa(r,3);t=Ao(t),r=function(e){return s(a[e],e,a)}}var o=e(t,r,n);return o>-1?a[s?t[o]:o]:i}}function Bn(e){return ea(function(t){var n=t.length,a=n,s=qi.prototype.thru;for(e&&t.reverse();a--;){var o=t[a];if("function"!=typeof o)throw new ke(r);if(s&&!l&&"wrapper"==na(o))var l=new qi([],!0)}for(a=l?a:n;++a<n;){var c=na(o=t[a]),h="wrapper"==c?ra(o):i;l=h&&ba(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?l[na(h[0])].apply(l,h[3]):1==o.length&&ba(o)?l[c]():l.thru(o)}return function(){var e=arguments,i=e[0];if(l&&1==e.length&&Ns(i))return l.plant(i).value();for(var r=0,a=n?t[r].apply(this,e):i;++r<n;)a=t[r].call(this,a);return a}})}function On(e,t,r,n,a,s,l,c,h,p){var u=t&o,d=1&t,f=2&t,m=24&t,g=512&t,v=f?i:jn(e);return function o(){for(var y=arguments.length,b=re(y),x=y;x--;)b[x]=arguments[x];if(m)var _=aa(o),S=function(e,t){for(var i=e.length,r=0;i--;)e[i]===t&&++r;return r}(b,_);if(n&&(b=Pn(b,n,a,m)),s&&(b=En(b,s,l,m)),y-=S,m&&y<p){var w=si(b,_);return Wn(e,t,On,o.placeholder,r,b,w,c,h,p-y)}var C=d?r:this,P=f?C[e]:e;return y=b.length,c?b=function(e,t){for(var r=e.length,n=gi(t.length,r),a=kn(e);n--;){var s=t[n];e[n]=ga(s,r)?a[s]:i}return e}(b,c):g&&y>1&&b.reverse(),u&&h<y&&(b.length=h),this&&this!==pt&&this instanceof o&&(P=v||jn(P)),P.apply(C,b)}}function Ln(e,t){return function(i,r){return function(e,t,i,r){return vr(e,function(e,n,a){t(r,i(e),n,a)}),r}(i,e,t(r),{})}}function qn(e,t){return function(r,n){var a;if(r===i&&n===i)return t;if(r!==i&&(a=r),n!==i){if(a===i)return n;"string"==typeof r||"string"==typeof n?(r=on(r),n=on(n)):(r=sn(r),n=sn(n)),a=e(r,n)}return a}}function Nn(e){return ea(function(t){return t=Dt(t,Kt(sa())),Ur(function(i){var r=this;return e(t,function(e){return wt(e,r,i)})})})}function zn(e,t){var r=(t=t===i?" ":on(t)).length;if(r<2)return r?Gr(t,e):t;var n=Gr(t,ut(e/ci(t)));return ri(t)?bn(hi(n),0,e).join(""):n.slice(0,e)}function Vn(e){return function(t,r,n){return n&&"number"!=typeof n&&va(t,r,n)&&(r=n=i),t=ho(t),r===i?(r=t,t=0):r=ho(r),function(e,t,i,r){for(var n=-1,a=mi(ut((t-e)/(i||1)),0),s=re(a);a--;)s[r?a:++n]=e,e+=i;return s}(t,r,n=n===i?t<r?1:-1:ho(n),e)}}function Hn(e){return function(t,i){return"string"==typeof t&&"string"==typeof i||(t=fo(t),i=fo(i)),e(t,i)}}function Wn(e,t,r,n,a,o,l,c,h,p){var u=8&t;t|=u?s:64,4&(t&=~(u?64:s))||(t&=-4);var d=[e,t,a,u?o:i,u?l:i,u?i:o,u?i:l,c,h,p],f=r.apply(i,d);return ba(e)&&ka(f,d),f.placeholder=n,Ta(f,e,t)}function Gn(e){var t=we[e];return function(e,i){if(e=fo(e),(i=null==i?0:gi(po(i),292))&&Rt(e)){var r=(go(e)+"e").split("e");return+((r=(go(t(r[0]+"e"+(+r[1]+i)))+"e").split("e"))[0]+"e"+(+r[1]-i))}return t(e)}}var Un=Ci&&1/oi(new Ci([,-0]))[1]==c?function(e){return new Ci(e)}:sl;function Yn(e){return function(t){var i=ua(t);return i==_?ni(t):i==E?li(t):function(e,t){return Dt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Kn(e,t,n,c,h,p,u,d){var f=2&t;if(!f&&"function"!=typeof e)throw new ke(r);var m=c?c.length:0;if(m||(t&=-97,c=h=i),u=u===i?u:mi(po(u),0),d=d===i?d:po(d),m-=h?h.length:0,64&t){var g=c,v=h;c=h=i}var y=f?i:ra(e),b=[e,t,n,c,h,g,v,p,u,d];if(y&&function(e,t){var i=e[1],r=t[1],n=i|r,s=n<131,c=r==o&&8==i||r==o&&i==l&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==i;if(!s&&!c)return e;1&r&&(e[2]=t[2],n|=1&i?0:4);var h=t[3];if(h){var p=e[3];e[3]=p?Pn(p,h,t[4]):h,e[4]=p?si(e[3],a):t[4]}(h=t[5])&&(p=e[5],e[5]=p?En(p,h,t[6]):h,e[6]=p?si(e[5],a):t[6]),(h=t[7])&&(e[7]=h),r&o&&(e[8]=null==e[8]?t[8]:gi(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=n}(b,y),e=b[0],t=b[1],n=b[2],c=b[3],h=b[4],!(d=b[9]=b[9]===i?f?0:e.length:mi(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?function(e,t,r){var n=jn(e);return function a(){for(var s=arguments.length,o=re(s),l=s,c=aa(a);l--;)o[l]=arguments[l];var h=s<3&&o[0]!==c&&o[s-1]!==c?[]:si(o,c);return(s-=h.length)<r?Wn(e,t,On,a.placeholder,i,o,h,i,i,r-s):wt(this&&this!==pt&&this instanceof a?n:e,this,o)}}(e,t,d):t!=s&&33!=t||h.length?On.apply(i,b):function(e,t,i,r){var n=1&t,a=jn(e);return function t(){for(var s=-1,o=arguments.length,l=-1,c=r.length,h=re(c+o),p=this&&this!==pt&&this instanceof t?a:e;++l<c;)h[l]=r[l];for(;o--;)h[l++]=arguments[++s];return wt(p,n?i:this,h)}}(e,t,n,c);else var x=function(e,t,i){var r=1&t,n=jn(e);return function t(){return(this&&this!==pt&&this instanceof t?n:e).apply(r?i:this,arguments)}}(e,t,n);return Ta((y?Zr:ka)(x,b),e,t)}function Xn(e,t,r,n){return e===i||Bs(e,Te[r])&&!Ie.call(n,r)?t:e}function Zn(e,t,r,n,a,s){return Zs(e)&&Zs(t)&&(s.set(t,e),Lr(e,t,i,Zn,s),s.delete(t)),e}function Jn(e){return to(e)?i:e}function Qn(e,t,r,n,a,s){var o=1&r,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var u=-1,d=!0,f=2&r?new Wi:i;for(s.set(e,t),s.set(t,e);++u<l;){var m=e[u],g=t[u];if(n)var v=o?n(g,m,u,t,e,s):n(m,g,u,e,t,s);if(v!==i){if(v)continue;d=!1;break}if(f){if(!jt(t,function(e,t){if(!Zt(f,t)&&(m===e||a(m,e,r,n,s)))return f.push(t)})){d=!1;break}}else if(m!==g&&!a(m,g,r,n,s)){d=!1;break}}return s.delete(e),s.delete(t),d}function ea(e){return Aa(Ca(e,i,za),e+"")}function ta(e){return _r(e,Ao,ha)}function ia(e){return _r(e,To,pa)}var ra=ki?function(e){return ki.get(e)}:sl;function na(e){for(var t=e.name+"",i=$i[t],r=Ie.call($i,t)?i.length:0;r--;){var n=i[r],a=n.func;if(null==a||a==e)return n.name}return t}function aa(e){return(Ie.call(Bi,"placeholder")?Bi:e).placeholder}function sa(){var e=Bi.iteratee||il;return e=e===il?Mr:e,arguments.length?e(arguments[0],arguments[1]):e}function oa(e,t){var i,r,n=e.__data__;return("string"==(r=typeof(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?n["string"==typeof t?"string":"hash"]:n.map}function la(e){for(var t=Ao(e),i=t.length;i--;){var r=t[i],n=e[r];t[i]=[r,n,Sa(n)]}return t}function ca(e,t){var r=function(e,t){return null==e?i:e[t]}(e,t);return Dr(r)?r:i}var ha=mt?function(e){return null==e?[]:(e=Ce(e),$t(mt(e),function(t){return Ge.call(e,t)}))}:dl,pa=mt?function(e){for(var t=[];e;)Mt(t,ha(e)),e=He(e);return t}:dl,ua=Sr;function da(e,t,i){for(var r=-1,n=(t=vn(t,e)).length,a=!1;++r<n;){var s=Fa(t[r]);if(!(a=null!=e&&i(e,s)))break;e=e[s]}return a||++r!=n?a:!!(n=null==e?0:e.length)&&Xs(n)&&ga(s,n)&&(Ns(e)||qs(e))}function fa(e){return"function"!=typeof e.constructor||_a(e)?{}:Oi(He(e))}function ma(e){return Ns(e)||qs(e)||!!(Ye&&e&&e[Ye])}function ga(e,t){var i=typeof e;return!!(t=null==t?h:t)&&("number"==i||"symbol"!=i&&ge.test(e))&&e>-1&&e%1==0&&e<t}function va(e,t,i){if(!Zs(i))return!1;var r=typeof t;return!!("number"==r?Vs(i)&&ga(t,i.length):"string"==r&&t in i)&&Bs(i[t],e)}function ya(e,t){if(Ns(e))return!1;var i=typeof e;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=e&&!ao(e))||J.test(e)||!Z.test(e)||null!=t&&e in Ce(t)}function ba(e){var t=na(e),i=Bi[t];if("function"!=typeof i||!(t in Ni.prototype))return!1;if(e===i)return!0;var r=ra(i);return!!r&&e===r[0]}(_i&&ua(new _i(new ArrayBuffer(1)))!=D||Si&&ua(new Si)!=_||wi&&ua(wi.resolve())!=C||Ci&&ua(new Ci)!=E||Pi&&ua(new Pi)!=A)&&(ua=function(e){var t=Sr(e),r=t==w?e.constructor:i,n=r?ja(r):"";if(n)switch(n){case Ai:return D;case Ti:return _;case Di:return C;case Mi:return E;case Ii:return A}return t});var xa=De?Ys:fl;function _a(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function Sa(e){return e==e&&!Zs(e)}function wa(e,t){return function(r){return null!=r&&r[e]===t&&(t!==i||e in Ce(r))}}function Ca(e,t,r){return t=mi(t===i?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=mi(i.length-t,0),s=re(a);++n<a;)s[n]=i[t+n];n=-1;for(var o=re(t+1);++n<t;)o[n]=i[n];return o[t]=r(s),wt(e,this,o)}}function Pa(e,t){return t.length<2?e:xr(e,en(t,0,-1))}function Ea(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var ka=Da(Zr),$a=ht||function(e,t){return pt.setTimeout(e,t)},Aa=Da(Jr);function Ta(e,t,i){var r=t+"";return Aa(e,function(e,t){var i=t.length;if(!i)return e;var r=i-1;return t[r]=(i>1?"& ":"")+t[r],t=t.join(i>2?", ":" "),e.replace(ne,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Pt(d,function(i){var r="_."+i[0];t&i[1]&&!At(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(r),i)))}function Da(e){var t=0,r=0;return function(){var n=vi(),a=16-(n-r);if(r=n,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Ma(e,t){var r=-1,n=e.length,a=n-1;for(t=t===i?n:t;++r<t;){var s=Wr(r,a),o=e[s];e[s]=e[r],e[r]=o}return e.length=t,e}var Ia=function(e){var t=Ds(e,function(e){return 500===i.size&&i.clear(),e}),i=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Q,function(e,i,r,n){t.push(r?n.replace(ce,"$1"):i||e)}),t});function Fa(e){if("string"==typeof e||ao(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ja(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ra(e){if(e instanceof Ni)return e.clone();var t=new qi(e.__wrapped__,e.__chain__);return t.__actions__=kn(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ba=Ur(function(e,t){return Hs(e)?lr(e,fr(t,1,Hs,!0)):[]}),Oa=Ur(function(e,t){var r=Ua(t);return Hs(r)&&(r=i),Hs(e)?lr(e,fr(t,1,Hs,!0),sa(r,2)):[]}),La=Ur(function(e,t){var r=Ua(t);return Hs(r)&&(r=i),Hs(e)?lr(e,fr(t,1,Hs,!0),i,r):[]});function qa(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var n=null==i?0:po(i);return n<0&&(n=mi(r+n,0)),Ot(e,sa(t,3),n)}function Na(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=n-1;return r!==i&&(a=po(r),a=r<0?mi(n+a,0):gi(a,n-1)),Ot(e,sa(t,3),a,!0)}function za(e){return null!=e&&e.length?fr(e,1):[]}function Va(e){return e&&e.length?e[0]:i}var Ha=Ur(function(e){var t=Dt(e,mn);return t.length&&t[0]===e[0]?Er(t):[]}),Wa=Ur(function(e){var t=Ua(e),r=Dt(e,mn);return t===Ua(r)?t=i:r.pop(),r.length&&r[0]===e[0]?Er(r,sa(t,2)):[]}),Ga=Ur(function(e){var t=Ua(e),r=Dt(e,mn);return(t="function"==typeof t?t:i)&&r.pop(),r.length&&r[0]===e[0]?Er(r,i,t):[]});function Ua(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Ya=Ur(Ka);function Ka(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var Xa=ea(function(e,t){var i=null==e?0:e.length,r=rr(e,t);return Hr(e,Dt(t,function(e){return ga(e,i)?+e:e}).sort(Cn)),r});function Za(e){return null==e?e:xi.call(e)}var Ja=Ur(function(e){return ln(fr(e,1,Hs,!0))}),Qa=Ur(function(e){var t=Ua(e);return Hs(t)&&(t=i),ln(fr(e,1,Hs,!0),sa(t,2))}),es=Ur(function(e){var t=Ua(e);return t="function"==typeof t?t:i,ln(fr(e,1,Hs,!0),i,t)});function ts(e){if(!e||!e.length)return[];var t=0;return e=$t(e,function(e){if(Hs(e))return t=mi(e.length,t),!0}),Ut(t,function(t){return Dt(e,Vt(t))})}function is(e,t){if(!e||!e.length)return[];var r=ts(e);return null==t?r:Dt(r,function(e){return wt(t,i,e)})}var rs=Ur(function(e,t){return Hs(e)?lr(e,t):[]}),ns=Ur(function(e){return dn($t(e,Hs))}),as=Ur(function(e){var t=Ua(e);return Hs(t)&&(t=i),dn($t(e,Hs),sa(t,2))}),ss=Ur(function(e){var t=Ua(e);return t="function"==typeof t?t:i,dn($t(e,Hs),i,t)}),os=Ur(ts),ls=Ur(function(e){var t=e.length,r=t>1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,is(e,r)});function cs(e){var t=Bi(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var ps=ea(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,a=function(t){return rr(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Ni&&ga(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:hs,args:[a],thisArg:i}),new qi(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(a)}),us=An(function(e,t,i){Ie.call(e,i)?++e[i]:ir(e,i,1)}),ds=Rn(qa),fs=Rn(Na);function ms(e,t){return(Ns(e)?Pt:cr)(e,sa(t,3))}function gs(e,t){return(Ns(e)?Et:hr)(e,sa(t,3))}var vs=An(function(e,t,i){Ie.call(e,i)?e[i].push(t):ir(e,i,[t])}),ys=Ur(function(e,t,i){var r=-1,n="function"==typeof t,a=Vs(e)?re(e.length):[];return cr(e,function(e){a[++r]=n?wt(t,e,i):kr(e,t,i)}),a}),bs=An(function(e,t,i){ir(e,i,t)});function xs(e,t){return(Ns(e)?Dt:Rr)(e,sa(t,3))}var _s=An(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]}),Ss=Ur(function(e,t){if(null==e)return[];var i=t.length;return i>1&&va(e,t[0],t[1])?t=[]:i>2&&va(t[0],t[1],t[2])&&(t=[t[0]]),Nr(e,fr(t,1),[])}),ws=ct||function(){return pt.Date.now()};function Cs(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,Kn(e,o,i,i,i,i,t)}function Ps(e,t){var n;if("function"!=typeof t)throw new ke(r);return e=po(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Es=Ur(function(e,t,i){var r=1;if(i.length){var n=si(i,aa(Es));r|=s}return Kn(e,r,t,i,n)}),ks=Ur(function(e,t,i){var r=3;if(i.length){var n=si(i,aa(ks));r|=s}return Kn(t,r,e,i,n)});function $s(e,t,n){var a,s,o,l,c,h,p=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new ke(r);function m(t){var r=a,n=s;return a=s=i,p=t,l=e.apply(n,r)}function g(e){var r=e-h;return h===i||r>=t||r<0||d&&e-p>=o}function v(){var e=ws();if(g(e))return y(e);c=$a(v,function(e){var i=t-(e-h);return d?gi(i,o-(e-p)):i}(e))}function y(e){return c=i,f&&a?m(e):(a=s=i,l)}function b(){var e=ws(),r=g(e);if(a=arguments,s=this,h=e,r){if(c===i)return function(e){return p=e,c=$a(v,t),u?m(e):l}(h);if(d)return xn(c),c=$a(v,t),m(h)}return c===i&&(c=$a(v,t)),l}return t=fo(t)||0,Zs(n)&&(u=!!n.leading,o=(d="maxWait"in n)?mi(fo(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){c!==i&&xn(c),p=0,a=h=s=c=i},b.flush=function(){return c===i?l:y(ws())},b}var As=Ur(function(e,t){return or(e,1,t)}),Ts=Ur(function(e,t,i){return or(e,fo(t)||0,i)});function Ds(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ke(r);var i=function(){var r=arguments,n=t?t.apply(this,r):r[0],a=i.cache;if(a.has(n))return a.get(n);var s=e.apply(this,r);return i.cache=a.set(n,s)||a,s};return i.cache=new(Ds.Cache||Hi),i}function Ms(e){if("function"!=typeof e)throw new ke(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ds.Cache=Hi;var Is=yn(function(e,t){var i=(t=1==t.length&&Ns(t[0])?Dt(t[0],Kt(sa())):Dt(fr(t,1),Kt(sa()))).length;return Ur(function(r){for(var n=-1,a=gi(r.length,i);++n<a;)r[n]=t[n].call(this,r[n]);return wt(e,this,r)})}),Fs=Ur(function(e,t){var r=si(t,aa(Fs));return Kn(e,s,i,t,r)}),js=Ur(function(e,t){var r=si(t,aa(js));return Kn(e,64,i,t,r)}),Rs=ea(function(e,t){return Kn(e,l,i,i,i,t)});function Bs(e,t){return e===t||e!=e&&t!=t}var Os=Hn(wr),Ls=Hn(function(e,t){return e>=t}),qs=$r(function(){return arguments}())?$r:function(e){return Js(e)&&Ie.call(e,"callee")&&!Ge.call(e,"callee")},Ns=re.isArray,zs=vt?Kt(vt):function(e){return Js(e)&&Sr(e)==T};function Vs(e){return null!=e&&Xs(e.length)&&!Ys(e)}function Hs(e){return Js(e)&&Vs(e)}var Ws=gt||fl,Gs=yt?Kt(yt):function(e){return Js(e)&&Sr(e)==v};function Us(e){if(!Js(e))return!1;var t=Sr(e);return t==y||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!to(e)}function Ys(e){if(!Zs(e))return!1;var t=Sr(e);return t==b||t==x||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ks(e){return"number"==typeof e&&e==po(e)}function Xs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function Zs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Js(e){return null!=e&&"object"==typeof e}var Qs=bt?Kt(bt):function(e){return Js(e)&&ua(e)==_};function eo(e){return"number"==typeof e||Js(e)&&Sr(e)==S}function to(e){if(!Js(e)||Sr(e)!=w)return!1;var t=He(e);if(null===t)return!0;var i=Ie.call(t,"constructor")&&t.constructor;return"function"==typeof i&&i instanceof i&&Me.call(i)==Be}var io=xt?Kt(xt):function(e){return Js(e)&&Sr(e)==P},ro=_t?Kt(_t):function(e){return Js(e)&&ua(e)==E};function no(e){return"string"==typeof e||!Ns(e)&&Js(e)&&Sr(e)==k}function ao(e){return"symbol"==typeof e||Js(e)&&Sr(e)==$}var so=St?Kt(St):function(e){return Js(e)&&Xs(e.length)&&!!nt[Sr(e)]},oo=Hn(jr),lo=Hn(function(e,t){return e<=t});function co(e){if(!e)return[];if(Vs(e))return no(e)?hi(e):kn(e);if(Ke&&e[Ke])return function(e){for(var t,i=[];!(t=e.next()).done;)i.push(t.value);return i}(e[Ke]());var t=ua(e);return(t==_?ni:t==E?oi:Oo)(e)}function ho(e){return e?(e=fo(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function po(e){var t=ho(e),i=t%1;return t==t?i?t-i:t:0}function uo(e){return e?nr(po(e),0,u):0}function fo(e){if("number"==typeof e)return e;if(ao(e))return p;if(Zs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var i=de.test(e);return i||me.test(e)?lt(e.slice(2),i?2:8):ue.test(e)?p:+e}function mo(e){return $n(e,To(e))}function go(e){return null==e?"":on(e)}var vo=Tn(function(e,t){if(_a(t)||Vs(t))$n(t,Ao(t),e);else for(var i in t)Ie.call(t,i)&&Ji(e,i,t[i])}),yo=Tn(function(e,t){$n(t,To(t),e)}),bo=Tn(function(e,t,i,r){$n(t,To(t),e,r)}),xo=Tn(function(e,t,i,r){$n(t,Ao(t),e,r)}),_o=ea(rr),So=Ur(function(e,t){e=Ce(e);var r=-1,n=t.length,a=n>2?t[2]:i;for(a&&va(t[0],t[1],a)&&(n=1);++r<n;)for(var s=t[r],o=To(s),l=-1,c=o.length;++l<c;){var h=o[l],p=e[h];(p===i||Bs(p,Te[h])&&!Ie.call(e,h))&&(e[h]=s[h])}return e}),wo=Ur(function(e){return e.push(i,Zn),wt(Mo,i,e)});function Co(e,t,r){var n=null==e?i:xr(e,t);return n===i?r:n}function Po(e,t){return null!=e&&da(e,t,Pr)}var Eo=Ln(function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),e[t]=i},Jo(tl)),ko=Ln(function(e,t,i){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),Ie.call(e,t)?e[t].push(i):e[t]=[i]},sa),$o=Ur(kr);function Ao(e){return Vs(e)?Ui(e):Ir(e)}function To(e){return Vs(e)?Ui(e,!0):Fr(e)}var Do=Tn(function(e,t,i){Lr(e,t,i)}),Mo=Tn(function(e,t,i,r){Lr(e,t,i,r)}),Io=ea(function(e,t){var i={};if(null==e)return i;var r=!1;t=Dt(t,function(t){return t=vn(t,e),r||(r=t.length>1),t}),$n(e,ia(e),i),r&&(i=ar(i,7,Jn));for(var n=t.length;n--;)cn(i,t[n]);return i}),Fo=ea(function(e,t){return null==e?{}:function(e,t){return zr(e,t,function(t,i){return Po(e,i)})}(e,t)});function jo(e,t){if(null==e)return{};var i=Dt(ia(e),function(e){return[e]});return t=sa(t),zr(e,i,function(e,i){return t(e,i[0])})}var Ro=Yn(Ao),Bo=Yn(To);function Oo(e){return null==e?[]:Xt(e,Ao(e))}var Lo=Fn(function(e,t,i){return t=t.toLowerCase(),e+(i?qo(t):t)});function qo(e){return Yo(go(e).toLowerCase())}function No(e){return(e=go(e))&&e.replace(ve,ei).replace(Ze,"")}var zo=Fn(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Vo=Fn(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),Ho=In("toLowerCase"),Wo=Fn(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()}),Go=Fn(function(e,t,i){return e+(i?" ":"")+Yo(t)}),Uo=Fn(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Yo=In("toUpperCase");function Ko(e,t,r){return e=go(e),(t=r?i:t)===i?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(oe)||[]}(e):e.match(t)||[]}var Xo=Ur(function(e,t){try{return wt(e,i,t)}catch(e){return Us(e)?e:new _e(e)}}),Zo=ea(function(e,t){return Pt(t,function(t){t=Fa(t),ir(e,t,Es(e[t],e))}),e});function Jo(e){return function(){return e}}var Qo=Bn(),el=Bn(!0);function tl(e){return e}function il(e){return Mr("function"==typeof e?e:ar(e,1))}var rl=Ur(function(e,t){return function(i){return kr(i,e,t)}}),nl=Ur(function(e,t){return function(i){return kr(e,i,t)}});function al(e,t,i){var r=Ao(t),n=br(t,r);null!=i||Zs(t)&&(n.length||!r.length)||(i=t,t=e,e=this,n=br(t,Ao(t)));var a=!(Zs(i)&&"chain"in i&&!i.chain),s=Ys(e);return Pt(n,function(i){var r=t[i];e[i]=r,s&&(e.prototype[i]=function(){var t=this.__chain__;if(a||t){var i=e(this.__wrapped__);return(i.__actions__=kn(this.__actions__)).push({func:r,args:arguments,thisArg:e}),i.__chain__=t,i}return r.apply(e,Mt([this.value()],arguments))})}),e}function sl(){}var ol=Nn(Dt),ll=Nn(kt),cl=Nn(jt);function hl(e){return ya(e)?Vt(Fa(e)):function(e){return function(t){return xr(t,e)}}(e)}var pl=Vn(),ul=Vn(!0);function dl(){return[]}function fl(){return!1}var ml,gl=qn(function(e,t){return e+t},0),vl=Gn("ceil"),yl=qn(function(e,t){return e/t},1),bl=Gn("floor"),xl=qn(function(e,t){return e*t},1),_l=Gn("round"),Sl=qn(function(e,t){return e-t},0);return Bi.after=function(e,t){if("function"!=typeof t)throw new ke(r);return e=po(e),function(){if(--e<1)return t.apply(this,arguments)}},Bi.ary=Cs,Bi.assign=vo,Bi.assignIn=yo,Bi.assignInWith=bo,Bi.assignWith=xo,Bi.at=_o,Bi.before=Ps,Bi.bind=Es,Bi.bindAll=Zo,Bi.bindKey=ks,Bi.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ns(e)?e:[e]},Bi.chain=cs,Bi.chunk=function(e,t,r){t=(r?va(e,t,r):t===i)?1:mi(po(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var a=0,s=0,o=re(ut(n/t));a<n;)o[s++]=en(e,a,a+=t);return o},Bi.compact=function(e){for(var t=-1,i=null==e?0:e.length,r=0,n=[];++t<i;){var a=e[t];a&&(n[r++]=a)}return n},Bi.concat=function(){var e=arguments.length;if(!e)return[];for(var t=re(e-1),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Mt(Ns(i)?kn(i):[i],fr(t,1))},Bi.cond=function(e){var t=null==e?0:e.length,i=sa();return e=t?Dt(e,function(e){if("function"!=typeof e[1])throw new ke(r);return[i(e[0]),e[1]]}):[],Ur(function(i){for(var r=-1;++r<t;){var n=e[r];if(wt(n[0],this,i))return wt(n[1],this,i)}})},Bi.conforms=function(e){return function(e){var t=Ao(e);return function(i){return sr(i,e,t)}}(ar(e,1))},Bi.constant=Jo,Bi.countBy=us,Bi.create=function(e,t){var i=Oi(e);return null==t?i:tr(i,t)},Bi.curry=function e(t,r,n){var a=Kn(t,8,i,i,i,i,i,r=n?i:r);return a.placeholder=e.placeholder,a},Bi.curryRight=function e(t,r,n){var a=Kn(t,16,i,i,i,i,i,r=n?i:r);return a.placeholder=e.placeholder,a},Bi.debounce=$s,Bi.defaults=So,Bi.defaultsDeep=wo,Bi.defer=As,Bi.delay=Ts,Bi.difference=Ba,Bi.differenceBy=Oa,Bi.differenceWith=La,Bi.drop=function(e,t,r){var n=null==e?0:e.length;return n?en(e,(t=r||t===i?1:po(t))<0?0:t,n):[]},Bi.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?en(e,0,(t=n-(t=r||t===i?1:po(t)))<0?0:t):[]},Bi.dropRightWhile=function(e,t){return e&&e.length?pn(e,sa(t,3),!0,!0):[]},Bi.dropWhile=function(e,t){return e&&e.length?pn(e,sa(t,3),!0):[]},Bi.fill=function(e,t,r,n){var a=null==e?0:e.length;return a?(r&&"number"!=typeof r&&va(e,t,r)&&(r=0,n=a),function(e,t,r,n){var a=e.length;for((r=po(r))<0&&(r=-r>a?0:a+r),(n=n===i||n>a?a:po(n))<0&&(n+=a),n=r>n?0:uo(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Bi.filter=function(e,t){return(Ns(e)?$t:dr)(e,sa(t,3))},Bi.flatMap=function(e,t){return fr(xs(e,t),1)},Bi.flatMapDeep=function(e,t){return fr(xs(e,t),c)},Bi.flatMapDepth=function(e,t,r){return r=r===i?1:po(r),fr(xs(e,t),r)},Bi.flatten=za,Bi.flattenDeep=function(e){return null!=e&&e.length?fr(e,c):[]},Bi.flattenDepth=function(e,t){return null!=e&&e.length?fr(e,t=t===i?1:po(t)):[]},Bi.flip=function(e){return Kn(e,512)},Bi.flow=Qo,Bi.flowRight=el,Bi.fromPairs=function(e){for(var t=-1,i=null==e?0:e.length,r={};++t<i;){var n=e[t];r[n[0]]=n[1]}return r},Bi.functions=function(e){return null==e?[]:br(e,Ao(e))},Bi.functionsIn=function(e){return null==e?[]:br(e,To(e))},Bi.groupBy=vs,Bi.initial=function(e){return null!=e&&e.length?en(e,0,-1):[]},Bi.intersection=Ha,Bi.intersectionBy=Wa,Bi.intersectionWith=Ga,Bi.invert=Eo,Bi.invertBy=ko,Bi.invokeMap=ys,Bi.iteratee=il,Bi.keyBy=bs,Bi.keys=Ao,Bi.keysIn=To,Bi.map=xs,Bi.mapKeys=function(e,t){var i={};return t=sa(t,3),vr(e,function(e,r,n){ir(i,t(e,r,n),e)}),i},Bi.mapValues=function(e,t){var i={};return t=sa(t,3),vr(e,function(e,r,n){ir(i,r,t(e,r,n))}),i},Bi.matches=function(e){return Br(ar(e,1))},Bi.matchesProperty=function(e,t){return Or(e,ar(t,1))},Bi.memoize=Ds,Bi.merge=Do,Bi.mergeWith=Mo,Bi.method=rl,Bi.methodOf=nl,Bi.mixin=al,Bi.negate=Ms,Bi.nthArg=function(e){return e=po(e),Ur(function(t){return qr(t,e)})},Bi.omit=Io,Bi.omitBy=function(e,t){return jo(e,Ms(sa(t)))},Bi.once=function(e){return Ps(2,e)},Bi.orderBy=function(e,t,r,n){return null==e?[]:(Ns(t)||(t=null==t?[]:[t]),Ns(r=n?i:r)||(r=null==r?[]:[r]),Nr(e,t,r))},Bi.over=ol,Bi.overArgs=Is,Bi.overEvery=ll,Bi.overSome=cl,Bi.partial=Fs,Bi.partialRight=js,Bi.partition=_s,Bi.pick=Fo,Bi.pickBy=jo,Bi.property=hl,Bi.propertyOf=function(e){return function(t){return null==e?i:xr(e,t)}},Bi.pull=Ya,Bi.pullAll=Ka,Bi.pullAllBy=function(e,t,i){return e&&e.length&&t&&t.length?Vr(e,t,sa(i,2)):e},Bi.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,i,r):e},Bi.pullAt=Xa,Bi.range=pl,Bi.rangeRight=ul,Bi.rearg=Rs,Bi.reject=function(e,t){return(Ns(e)?$t:dr)(e,Ms(sa(t,3)))},Bi.remove=function(e,t){var i=[];if(!e||!e.length)return i;var r=-1,n=[],a=e.length;for(t=sa(t,3);++r<a;){var s=e[r];t(s,r,e)&&(i.push(s),n.push(r))}return Hr(e,n),i},Bi.rest=function(e,t){if("function"!=typeof e)throw new ke(r);return Ur(e,t=t===i?t:po(t))},Bi.reverse=Za,Bi.sampleSize=function(e,t,r){return t=(r?va(e,t,r):t===i)?1:po(t),(Ns(e)?Ki:Kr)(e,t)},Bi.set=function(e,t,i){return null==e?e:Xr(e,t,i)},Bi.setWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:Xr(e,t,r,n)},Bi.shuffle=function(e){return(Ns(e)?Xi:Qr)(e)},Bi.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&va(e,t,r)?(t=0,r=n):(t=null==t?0:po(t),r=r===i?n:po(r)),en(e,t,r)):[]},Bi.sortBy=Ss,Bi.sortedUniq=function(e){return e&&e.length?an(e):[]},Bi.sortedUniqBy=function(e,t){return e&&e.length?an(e,sa(t,2)):[]},Bi.split=function(e,t,r){return r&&"number"!=typeof r&&va(e,t,r)&&(t=r=i),(r=r===i?u:r>>>0)?(e=go(e))&&("string"==typeof t||null!=t&&!io(t))&&!(t=on(t))&&ri(e)?bn(hi(e),0,r):e.split(t,r):[]},Bi.spread=function(e,t){if("function"!=typeof e)throw new ke(r);return t=null==t?0:mi(po(t),0),Ur(function(i){var r=i[t],n=bn(i,0,t);return r&&Mt(n,r),wt(e,this,n)})},Bi.tail=function(e){var t=null==e?0:e.length;return t?en(e,1,t):[]},Bi.take=function(e,t,r){return e&&e.length?en(e,0,(t=r||t===i?1:po(t))<0?0:t):[]},Bi.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?en(e,(t=n-(t=r||t===i?1:po(t)))<0?0:t,n):[]},Bi.takeRightWhile=function(e,t){return e&&e.length?pn(e,sa(t,3),!1,!0):[]},Bi.takeWhile=function(e,t){return e&&e.length?pn(e,sa(t,3)):[]},Bi.tap=function(e,t){return t(e),e},Bi.throttle=function(e,t,i){var n=!0,a=!0;if("function"!=typeof e)throw new ke(r);return Zs(i)&&(n="leading"in i?!!i.leading:n,a="trailing"in i?!!i.trailing:a),$s(e,t,{leading:n,maxWait:t,trailing:a})},Bi.thru=hs,Bi.toArray=co,Bi.toPairs=Ro,Bi.toPairsIn=Bo,Bi.toPath=function(e){return Ns(e)?Dt(e,Fa):ao(e)?[e]:kn(Ia(go(e)))},Bi.toPlainObject=mo,Bi.transform=function(e,t,i){var r=Ns(e),n=r||Ws(e)||so(e);if(t=sa(t,4),null==i){var a=e&&e.constructor;i=n?r?new a:[]:Zs(e)&&Ys(a)?Oi(He(e)):{}}return(n?Pt:vr)(e,function(e,r,n){return t(i,e,r,n)}),i},Bi.unary=function(e){return Cs(e,1)},Bi.union=Ja,Bi.unionBy=Qa,Bi.unionWith=es,Bi.uniq=function(e){return e&&e.length?ln(e):[]},Bi.uniqBy=function(e,t){return e&&e.length?ln(e,sa(t,2)):[]},Bi.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ln(e,i,t):[]},Bi.unset=function(e,t){return null==e||cn(e,t)},Bi.unzip=ts,Bi.unzipWith=is,Bi.update=function(e,t,i){return null==e?e:hn(e,t,gn(i))},Bi.updateWith=function(e,t,r,n){return n="function"==typeof n?n:i,null==e?e:hn(e,t,gn(r),n)},Bi.values=Oo,Bi.valuesIn=function(e){return null==e?[]:Xt(e,To(e))},Bi.without=rs,Bi.words=Ko,Bi.wrap=function(e,t){return Fs(gn(t),e)},Bi.xor=ns,Bi.xorBy=as,Bi.xorWith=ss,Bi.zip=os,Bi.zipObject=function(e,t){return fn(e||[],t||[],Ji)},Bi.zipObjectDeep=function(e,t){return fn(e||[],t||[],Xr)},Bi.zipWith=ls,Bi.entries=Ro,Bi.entriesIn=Bo,Bi.extend=yo,Bi.extendWith=bo,al(Bi,Bi),Bi.add=gl,Bi.attempt=Xo,Bi.camelCase=Lo,Bi.capitalize=qo,Bi.ceil=vl,Bi.clamp=function(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=(r=fo(r))==r?r:0),t!==i&&(t=(t=fo(t))==t?t:0),nr(fo(e),t,r)},Bi.clone=function(e){return ar(e,4)},Bi.cloneDeep=function(e){return ar(e,5)},Bi.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},Bi.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},Bi.conformsTo=function(e,t){return null==t||sr(e,t,Ao(t))},Bi.deburr=No,Bi.defaultTo=function(e,t){return null==e||e!=e?t:e},Bi.divide=yl,Bi.endsWith=function(e,t,r){e=go(e),t=on(t);var n=e.length,a=r=r===i?n:nr(po(r),0,n);return(r-=t.length)>=0&&e.slice(r,a)==t},Bi.eq=Bs,Bi.escape=function(e){return(e=go(e))&&U.test(e)?e.replace(W,ti):e},Bi.escapeRegExp=function(e){return(e=go(e))&&te.test(e)?e.replace(ee,"\\$&"):e},Bi.every=function(e,t,r){var n=Ns(e)?kt:pr;return r&&va(e,t,r)&&(t=i),n(e,sa(t,3))},Bi.find=ds,Bi.findIndex=qa,Bi.findKey=function(e,t){return Bt(e,sa(t,3),vr)},Bi.findLast=fs,Bi.findLastIndex=Na,Bi.findLastKey=function(e,t){return Bt(e,sa(t,3),yr)},Bi.floor=bl,Bi.forEach=ms,Bi.forEachRight=gs,Bi.forIn=function(e,t){return null==e?e:mr(e,sa(t,3),To)},Bi.forInRight=function(e,t){return null==e?e:gr(e,sa(t,3),To)},Bi.forOwn=function(e,t){return e&&vr(e,sa(t,3))},Bi.forOwnRight=function(e,t){return e&&yr(e,sa(t,3))},Bi.get=Co,Bi.gt=Os,Bi.gte=Ls,Bi.has=function(e,t){return null!=e&&da(e,t,Cr)},Bi.hasIn=Po,Bi.head=Va,Bi.identity=tl,Bi.includes=function(e,t,i,r){e=Vs(e)?e:Oo(e),i=i&&!r?po(i):0;var n=e.length;return i<0&&(i=mi(n+i,0)),no(e)?i<=n&&e.indexOf(t,i)>-1:!!n&&Lt(e,t,i)>-1},Bi.indexOf=function(e,t,i){var r=null==e?0:e.length;if(!r)return-1;var n=null==i?0:po(i);return n<0&&(n=mi(r+n,0)),Lt(e,t,n)},Bi.inRange=function(e,t,r){return t=ho(t),r===i?(r=t,t=0):r=ho(r),function(e,t,i){return e>=gi(t,i)&&e<mi(t,i)}(e=fo(e),t,r)},Bi.invoke=$o,Bi.isArguments=qs,Bi.isArray=Ns,Bi.isArrayBuffer=zs,Bi.isArrayLike=Vs,Bi.isArrayLikeObject=Hs,Bi.isBoolean=function(e){return!0===e||!1===e||Js(e)&&Sr(e)==g},Bi.isBuffer=Ws,Bi.isDate=Gs,Bi.isElement=function(e){return Js(e)&&1===e.nodeType&&!to(e)},Bi.isEmpty=function(e){if(null==e)return!0;if(Vs(e)&&(Ns(e)||"string"==typeof e||"function"==typeof e.splice||Ws(e)||so(e)||qs(e)))return!e.length;var t=ua(e);if(t==_||t==E)return!e.size;if(_a(e))return!Ir(e).length;for(var i in e)if(Ie.call(e,i))return!1;return!0},Bi.isEqual=function(e,t){return Ar(e,t)},Bi.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return n===i?Ar(e,t,i,r):!!n},Bi.isError=Us,Bi.isFinite=function(e){return"number"==typeof e&&Rt(e)},Bi.isFunction=Ys,Bi.isInteger=Ks,Bi.isLength=Xs,Bi.isMap=Qs,Bi.isMatch=function(e,t){return e===t||Tr(e,t,la(t))},Bi.isMatchWith=function(e,t,r){return r="function"==typeof r?r:i,Tr(e,t,la(t),r)},Bi.isNaN=function(e){return eo(e)&&e!=+e},Bi.isNative=function(e){if(xa(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Bi.isNil=function(e){return null==e},Bi.isNull=function(e){return null===e},Bi.isNumber=eo,Bi.isObject=Zs,Bi.isObjectLike=Js,Bi.isPlainObject=to,Bi.isRegExp=io,Bi.isSafeInteger=function(e){return Ks(e)&&e>=-9007199254740991&&e<=h},Bi.isSet=ro,Bi.isString=no,Bi.isSymbol=ao,Bi.isTypedArray=so,Bi.isUndefined=function(e){return e===i},Bi.isWeakMap=function(e){return Js(e)&&ua(e)==A},Bi.isWeakSet=function(e){return Js(e)&&"[object WeakSet]"==Sr(e)},Bi.join=function(e,t){return null==e?"":Ht.call(e,t)},Bi.kebabCase=zo,Bi.last=Ua,Bi.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=n;return r!==i&&(a=(a=po(r))<0?mi(n+a,0):gi(a,n-1)),t==t?function(e,t,i){for(var r=i+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Ot(e,Nt,a,!0)},Bi.lowerCase=Vo,Bi.lowerFirst=Ho,Bi.lt=oo,Bi.lte=lo,Bi.max=function(e){return e&&e.length?ur(e,tl,wr):i},Bi.maxBy=function(e,t){return e&&e.length?ur(e,sa(t,2),wr):i},Bi.mean=function(e){return zt(e,tl)},Bi.meanBy=function(e,t){return zt(e,sa(t,2))},Bi.min=function(e){return e&&e.length?ur(e,tl,jr):i},Bi.minBy=function(e,t){return e&&e.length?ur(e,sa(t,2),jr):i},Bi.stubArray=dl,Bi.stubFalse=fl,Bi.stubObject=function(){return{}},Bi.stubString=function(){return""},Bi.stubTrue=function(){return!0},Bi.multiply=xl,Bi.nth=function(e,t){return e&&e.length?qr(e,po(t)):i},Bi.noConflict=function(){return pt._===this&&(pt._=Oe),this},Bi.noop=sl,Bi.now=ws,Bi.pad=function(e,t,i){e=go(e);var r=(t=po(t))?ci(e):0;if(!t||r>=t)return e;var n=(t-r)/2;return zn(dt(n),i)+e+zn(ut(n),i)},Bi.padEnd=function(e,t,i){e=go(e);var r=(t=po(t))?ci(e):0;return t&&r<t?e+zn(t-r,i):e},Bi.padStart=function(e,t,i){e=go(e);var r=(t=po(t))?ci(e):0;return t&&r<t?zn(t-r,i)+e:e},Bi.parseInt=function(e,t,i){return i||null==t?t=0:t&&(t=+t),yi(go(e).replace(ie,""),t||0)},Bi.random=function(e,t,r){if(r&&"boolean"!=typeof r&&va(e,t,r)&&(t=r=i),r===i&&("boolean"==typeof t?(r=t,t=i):"boolean"==typeof e&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=ho(e),t===i?(t=e,e=0):t=ho(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var a=bi();return gi(e+a*(t-e+ot("1e-"+((a+"").length-1))),t)}return Wr(e,t)},Bi.reduce=function(e,t,i){var r=Ns(e)?It:Wt,n=arguments.length<3;return r(e,sa(t,4),i,n,cr)},Bi.reduceRight=function(e,t,i){var r=Ns(e)?Ft:Wt,n=arguments.length<3;return r(e,sa(t,4),i,n,hr)},Bi.repeat=function(e,t,r){return t=(r?va(e,t,r):t===i)?1:po(t),Gr(go(e),t)},Bi.replace=function(){var e=arguments,t=go(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bi.result=function(e,t,r){var n=-1,a=(t=vn(t,e)).length;for(a||(a=1,e=i);++n<a;){var s=null==e?i:e[Fa(t[n])];s===i&&(n=a,s=r),e=Ys(s)?s.call(e):s}return e},Bi.round=_l,Bi.runInContext=e,Bi.sample=function(e){return(Ns(e)?Yi:Yr)(e)},Bi.size=function(e){if(null==e)return 0;if(Vs(e))return no(e)?ci(e):e.length;var t=ua(e);return t==_||t==E?e.size:Ir(e).length},Bi.snakeCase=Wo,Bi.some=function(e,t,r){var n=Ns(e)?jt:tn;return r&&va(e,t,r)&&(t=i),n(e,sa(t,3))},Bi.sortedIndex=function(e,t){return rn(e,t)},Bi.sortedIndexBy=function(e,t,i){return nn(e,t,sa(i,2))},Bi.sortedIndexOf=function(e,t){var i=null==e?0:e.length;if(i){var r=rn(e,t);if(r<i&&Bs(e[r],t))return r}return-1},Bi.sortedLastIndex=function(e,t){return rn(e,t,!0)},Bi.sortedLastIndexBy=function(e,t,i){return nn(e,t,sa(i,2),!0)},Bi.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var i=rn(e,t,!0)-1;if(Bs(e[i],t))return i}return-1},Bi.startCase=Go,Bi.startsWith=function(e,t,i){return e=go(e),i=null==i?0:nr(po(i),0,e.length),t=on(t),e.slice(i,i+t.length)==t},Bi.subtract=Sl,Bi.sum=function(e){return e&&e.length?Gt(e,tl):0},Bi.sumBy=function(e,t){return e&&e.length?Gt(e,sa(t,2)):0},Bi.template=function(e,t,r){var n=Bi.templateSettings;r&&va(e,t,r)&&(t=i),e=go(e),t=bo({},t,n,Xn);var a,s,o=bo({},t.imports,n.imports,Xn),l=Ao(o),c=Xt(o,l),h=0,p=t.interpolate||ye,u="__p += '",d=Pe((t.escape||ye).source+"|"+p.source+"|"+(p===X?he:ye).source+"|"+(t.evaluate||ye).source+"|$","g"),f="//# sourceURL="+(Ie.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,function(t,i,r,n,o,l){return r||(r=n),u+=e.slice(h,l).replace(be,ii),i&&(a=!0,u+="' +\n__e("+i+") +\n'"),o&&(s=!0,u+="';\n"+o+";\n__p += '"),r&&(u+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=l+t.length,t}),u+="';\n";var m=Ie.call(t,"variable")&&t.variable;if(m){if(le.test(m))throw new _e("Invalid `variable` option passed into `_.template`")}else u="with (obj) {\n"+u+"\n}\n";u=(s?u.replace(N,""):u).replace(z,"$1").replace(V,"$1;"),u="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var g=Xo(function(){return Se(l,f+"return "+u).apply(i,c)});if(g.source=u,Us(g))throw g;return g},Bi.times=function(e,t){if((e=po(e))<1||e>h)return[];var i=u,r=gi(e,u);t=sa(t),e-=u;for(var n=Ut(r,t);++i<e;)t(i);return n},Bi.toFinite=ho,Bi.toInteger=po,Bi.toLength=uo,Bi.toLower=function(e){return go(e).toLowerCase()},Bi.toNumber=fo,Bi.toSafeInteger=function(e){return e?nr(po(e),-9007199254740991,h):0===e?e:0},Bi.toString=go,Bi.toUpper=function(e){return go(e).toUpperCase()},Bi.trim=function(e,t,r){if((e=go(e))&&(r||t===i))return Yt(e);if(!e||!(t=on(t)))return e;var n=hi(e),a=hi(t);return bn(n,Jt(n,a),Qt(n,a)+1).join("")},Bi.trimEnd=function(e,t,r){if((e=go(e))&&(r||t===i))return e.slice(0,pi(e)+1);if(!e||!(t=on(t)))return e;var n=hi(e);return bn(n,0,Qt(n,hi(t))+1).join("")},Bi.trimStart=function(e,t,r){if((e=go(e))&&(r||t===i))return e.replace(ie,"");if(!e||!(t=on(t)))return e;var n=hi(e);return bn(n,Jt(n,hi(t))).join("")},Bi.truncate=function(e,t){var r=30,n="...";if(Zs(t)){var a="separator"in t?t.separator:a;r="length"in t?po(t.length):r,n="omission"in t?on(t.omission):n}var s=(e=go(e)).length;if(ri(e)){var o=hi(e);s=o.length}if(r>=s)return e;var l=r-ci(n);if(l<1)return n;var c=o?bn(o,0,l).join(""):e.slice(0,l);if(a===i)return c+n;if(o&&(l+=c.length-l),io(a)){if(e.slice(l).search(a)){var h,p=c;for(a.global||(a=Pe(a.source,go(pe.exec(a))+"g")),a.lastIndex=0;h=a.exec(p);)var u=h.index;c=c.slice(0,u===i?l:u)}}else if(e.indexOf(on(a),l)!=l){var d=c.lastIndexOf(a);d>-1&&(c=c.slice(0,d))}return c+n},Bi.unescape=function(e){return(e=go(e))&&G.test(e)?e.replace(H,ui):e},Bi.uniqueId=function(e){var t=++Fe;return go(e)+t},Bi.upperCase=Uo,Bi.upperFirst=Yo,Bi.each=ms,Bi.eachRight=gs,Bi.first=Va,al(Bi,(ml={},vr(Bi,function(e,t){Ie.call(Bi.prototype,t)||(ml[t]=e)}),ml),{chain:!1}),Bi.VERSION="4.17.23",Pt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Bi[e].placeholder=Bi}),Pt(["drop","take"],function(e,t){Ni.prototype[e]=function(r){r=r===i?1:mi(po(r),0);var n=this.__filtered__&&!t?new Ni(this):this.clone();return n.__filtered__?n.__takeCount__=gi(r,n.__takeCount__):n.__views__.push({size:gi(r,u),type:e+(n.__dir__<0?"Right":"")}),n},Ni.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Pt(["filter","map","takeWhile"],function(e,t){var i=t+1,r=1==i||3==i;Ni.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:sa(e,3),type:i}),t.__filtered__=t.__filtered__||r,t}}),Pt(["head","last"],function(e,t){var i="take"+(t?"Right":"");Ni.prototype[e]=function(){return this[i](1).value()[0]}}),Pt(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");Ni.prototype[e]=function(){return this.__filtered__?new Ni(this):this[i](1)}}),Ni.prototype.compact=function(){return this.filter(tl)},Ni.prototype.find=function(e){return this.filter(e).head()},Ni.prototype.findLast=function(e){return this.reverse().find(e)},Ni.prototype.invokeMap=Ur(function(e,t){return"function"==typeof e?new Ni(this):this.map(function(i){return kr(i,e,t)})}),Ni.prototype.reject=function(e){return this.filter(Ms(sa(e)))},Ni.prototype.slice=function(e,t){e=po(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Ni(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(r=(t=po(t))<0?r.dropRight(-t):r.take(t-e)),r)},Ni.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ni.prototype.toArray=function(){return this.take(u)},vr(Ni.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),a=Bi[n?"take"+("last"==t?"Right":""):t],s=n||/^find/.test(t);a&&(Bi.prototype[t]=function(){var t=this.__wrapped__,o=n?[1]:arguments,l=t instanceof Ni,c=o[0],h=l||Ns(t),p=function(e){var t=a.apply(Bi,Mt([e],o));return n&&u?t[0]:t};h&&r&&"function"==typeof c&&1!=c.length&&(l=h=!1);var u=this.__chain__,d=!!this.__actions__.length,f=s&&!u,m=l&&!d;if(!s&&h){t=m?t:new Ni(this);var g=e.apply(t,o);return g.__actions__.push({func:hs,args:[p],thisArg:i}),new qi(g,u)}return f&&m?e.apply(this,o):(g=this.thru(p),f?n?g.value()[0]:g.value():g)})}),Pt(["pop","push","shift","sort","splice","unshift"],function(e){var t=$e[e],i=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bi.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var n=this.value();return t.apply(Ns(n)?n:[],e)}return this[i](function(i){return t.apply(Ns(i)?i:[],e)})}}),vr(Ni.prototype,function(e,t){var i=Bi[t];if(i){var r=i.name+"";Ie.call($i,r)||($i[r]=[]),$i[r].push({name:t,func:i})}}),$i[On(i,2).name]=[{name:"wrapper",func:i}],Ni.prototype.clone=function(){var e=new Ni(this.__wrapped__);return e.__actions__=kn(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=kn(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=kn(this.__views__),e},Ni.prototype.reverse=function(){if(this.__filtered__){var e=new Ni(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ni.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,i=Ns(e),r=t<0,n=i?e.length:0,a=function(e,t,i){for(var r=-1,n=i.length;++r<n;){var a=i[r],s=a.size;switch(a.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=gi(t,e+s);break;case"takeRight":e=mi(e,t-s)}}return{start:e,end:t}}(0,n,this.__views__),s=a.start,o=a.end,l=o-s,c=r?o:s-1,h=this.__iteratees__,p=h.length,u=0,d=gi(l,this.__takeCount__);if(!i||!r&&n==l&&d==l)return un(e,this.__actions__);var f=[];e:for(;l--&&u<d;){for(var m=-1,g=e[c+=t];++m<p;){var v=h[m],y=v.iteratee,b=v.type,x=y(g);if(2==b)g=x;else if(!x){if(1==b)continue e;break e}}f[u++]=g}return f},Bi.prototype.at=ps,Bi.prototype.chain=function(){return cs(this)},Bi.prototype.commit=function(){return new qi(this.value(),this.__chain__)},Bi.prototype.next=function(){this.__values__===i&&(this.__values__=co(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Bi.prototype.plant=function(e){for(var t,r=this;r instanceof Li;){var n=Ra(r);n.__index__=0,n.__values__=i,t?a.__wrapped__=n:t=n;var a=n;r=r.__wrapped__}return a.__wrapped__=e,t},Bi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Ni){var t=e;return this.__actions__.length&&(t=new Ni(this)),(t=t.reverse()).__actions__.push({func:hs,args:[Za],thisArg:i}),new qi(t,this.__chain__)}return this.thru(Za)},Bi.prototype.toJSON=Bi.prototype.valueOf=Bi.prototype.value=function(){return un(this.__wrapped__,this.__actions__)},Bi.prototype.first=Bi.prototype.head,Ke&&(Bi.prototype[Ke]=function(){return this}),Bi}();dt?((dt.exports=di)._=di,ut._=di):pt._=di}.call(lodash)),lodash$1.exports;var e,t}var lodashExports=requireLodash(),_=getDefaultExportFromCjs(lodashExports);function BeeArrowDiff({id:e,className:t,value:i,tooltip:r,disabled:n,decimals:a,isRoot:s=!1,locale:o="de-DE"}){const l=null!=e?e:libExports.useId(1,"bee-arrow-diff-")[0],c=n?" disabled":"";let h="";switch(!0){case null==i:break;case i<=-.5:h="bee-arrow bee-arrow-dive";break;case i>-.5&&i<0:h="bee-arrow-dip";break;case 0===i:h="bee-arrow-steady";break;case i>0&&i<.5:h="bee-arrow-bump";break;case i>=.5:h="bee-arrow-jump";break;default:h="bee-arrow-steady"}return require$$0.jsx("div",{className:null!=t?t:"",children:s||!i&&0!==i?null:require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsxs("div",{id:l,className:"bee-arrow-diff "+h+c,children:[require$$0.jsx("div",{className:"bee-arrow-diff-icon",children:require$$0.jsx("i",{className:"icon-right-arrow bee-arrow"})}),require$$0.jsxs("div",{className:"bee-arrow-diff-text",children:[new Intl.NumberFormat(o,{style:"decimal",maximumFractionDigits:a||0}).format(100*i),"%"]})]}),r&&!n?require$$0.jsx(tooltip.Tooltip,{target:".bee-arrow-diff",children:r}):null]})})}function BeeAddEntryCard({id:e,className:t,disabled:i,footer:r,onClick:n}){const a=null!=e?e:libExports.useId(1,"bee-add-entry-card-")[0],s="bee-add-entry-card"+(t?" "+t:"");return require$$0.jsxs("div",{id:a,className:s,children:[require$$0.jsx(BeeIconButton,{iconClass:"pi pi-plus",rounded:!0,halfRounded:!1,disabled:null!=i&&i,type:"primary",isLoading:!1,onClick:e=>function(e){!i&&n&&n(e)}(e)}),r&&require$$0.jsx("div",{className:"bee-add-entry-card-footer",children:r})]})}var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},__assign.apply(this,arguments)};function __awaiter(e,t,i,r){return new(i||(i=Promise))(function(n,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(s,o)}l((r=r.apply(e,t||[])).next())})}function BeeSkeleton({id:e,className:t,shape:i="rectangle",size:r,width:n,height:a,borderRadius:s,animated:o=!0,showHover:l,showShade:c}){const h=null!=e?e:libExports.useId(1,"bee-skeleton-")[0],p=o?"wave":"none",u=l?" bee-skeleto--hover":"",d=c?" bee-skeleton--shade":"",f="bee-skeleton-circle"+u+d+(t?" "+t:""),m="bee-skeleton-rectangle"+u+d+(t?" "+t:""),g=require$$0.jsx(skeleton.Skeleton,{className:f,id:h,shape:"circle",size:r,animation:p,borderRadius:s}),v=require$$0.jsx(skeleton.Skeleton,{className:m,id:h,shape:"rectangle",animation:p,width:n,height:a,borderRadius:s});return"circle"===i?g:v}function BeeImage({id:e,className:t,url:i,showPlaceholder:r,secured:n=!1,secureKey:a,alt:s,title:o,titlePosition:l="left",copyright:c,onClick:h}){const p=null!=e?e:libExports.useId(1,"bee-img-")[0],u=p+"-pay",d="left"===l?" bee-img-title bee-img-title-left":"center"===l?" bee-img-title bee-img-title-center":"right"===l?" bee-img-title bee-img-title-right":" bee-img-title bee-img-title-left",f="bee-img"+(t?" "+t:""),m="100%",g="100%";function v(e,t,i){return __awaiter(this,void 0,void 0,function*(){const r=yield function(e,t){let i=new Headers;return i.set("x-bee-secure",t),fetch(e,{headers:i})}(t,i),n=yield r.blob(),a=URL.createObjectURL(n),s=document.getElementById(e);s&&(s.src=a)})}return require$$0.jsxs("div",{id:p,onClick:e=>function(e){h&&h(e)}(e),className:f,children:[o?require$$0.jsx("div",{className:d,children:o}):null,r?require$$0.jsx(BeeSkeleton,{shape:"rectangle",animated:!0,width:"100%",height:"100px"}):n&&a?(v(u,i,a),require$$0.jsx("img",{id:u,src:"",alt:s,width:m,height:g})):require$$0.jsx("img",{id:u,src:i,alt:s,width:m,height:g}),c?require$$0.jsx("footer",{className:"bee-img-copyright",children:require$$0.jsx("small",{children:c})}):null]})}function BeeAvatar({imageUrl:e,imageKey:t,imageAlt:i,isImageSecured:r,showPlaceholder:n,placeholderFirstname:a,placeholderLastname:s,size:o,type:l,showDelete:c,readOnly:h,disabled:p,onDelete:u,onClick:d,onAdd:f}){const m="bee-avatar"+("primary"===l?" bee-avatar--primary":"secondary"===l?" bee-avatar--secondary":" bee-avatar--light")+("xSmall"===o?" bee-avatar--xsmall":"small"===o?" bee-avatar--small":"medium"===o?" bee-avatar--medium":"large"===o?" bee-avatar--large":"xLarge"===o?" bee-avatar--xlarge":" bee-avatar--medium");return require$$0.jsx(require$$0.Fragment,{children:n?require$$0.jsx(card.Card,{className:m+" placeholder-avatar",children:a||s?require$$0.jsx("div",{className:"placeholder-avatar__initials",children:(a?a.substring(0,1):"")+(s?s.substring(0,1):"")}):require$$0.jsx("i",{className:"pi pi-user placeholder-avatar__icon"})}):require$$0.jsx(require$$0.Fragment,{children:e?require$$0.jsxs(card.Card,{className:m+" image-avatar",children:[require$$0.jsx(BeeImage,{url:e,alt:i,title:void 0,titlePosition:"left",copyright:void 0,secured:!0===r,showPlaceholder:!1,onClick:e=>function(e){null==d||d(e)}(e)},t),c&&!h?require$$0.jsx(BeeIconButton,{iconClass:"pi pi-trash",rounded:!0,disabled:!1,type:"danger",isLoading:!1,onClick:()=>{null==u||u()}}):null]}):require$$0.jsx(card.Card,{className:m+" empty-avatar",children:require$$0.jsx(BeeAddEntryCard,{disabled:p,onClick:e=>function(e){null==f||f(e)}(e)})})})})}function BeeChip({id:e,className:t,label:i,labelTemplate:r,iconClass:n,image:a,imageAlt:s,removable:o,type:l="primary",onRemove:c,onClick:h}){const p=null!=e?e:libExports.useId(1,"bee-chip-")[0],u=(h?"bee-chip-clickable ":"")+("primary"===l?"bee-chip bee-chip-primary":"secondary"===l?"bee-chip bee-chip-secondary":"valid"===l?"bee-chip bee-chip-valid":"info"===l?"bee-chip bee-chip-info":"warn"===l?"bee-chip bee-chip-warn":"error"===l?"bee-chip bee-chip-error":"surface"===l?"bee-chip bee-chip-surface":"bee-chip bee-chip-primary")+(t?" "+t:"");return require$$0.jsxs("div",{className:u,children:[o?require$$0.jsx("div",{className:"bee-chip-remove-btn",onClick:e=>function(e){c&&c(e)}(e),children:require$$0.jsx("i",{className:"pi pi-times-circle"})}):null,require$$0.jsx("div",{onClick:e=>function(e){h&&h(e)}(e),children:require$$0.jsx(chip.Chip,{id:p,label:null!=i?i:"",template:r,icon:n,image:a,imageAlt:s,className:"bee-chip-content",removable:null!=o&&o,onRemove:e=>(c&&c(e.originalEvent),!0)})})]})}function BeeChipArea({id:e,className:t,label:i,type:r="primary",data:n,required:a,readOnly:s,onClick:o,onRemove:l}){const c=null!=e?e:libExports.useId(1,"bee-chip-area-")[0],h="bee-chip-area"+("primary"===r?" bee-chip-area-primary":"secondary"===r?" bee-chip-area-secondary":" bee-chip-area-primary")+(s?" bee-chip-area-readOnly":"")+(t?" "+t:"");return require$$0.jsxs("div",{id:c,className:h,children:[require$$0.jsx(require$$0.Fragment,{children:s&&!n||s&&n.length<1||!n||n.length<1?require$$0.jsx(BeePlaceholder,{id:c,label:null!=i?i:""}):require$$0.jsx(require$$0.Fragment,{children:n.map(e=>{var t;return require$$0.jsx("div",{className:"bee-chip-area-chip",children:require$$0.jsx(BeeChip,{id:e.id,label:null!==(t=e.label)&&void 0!==t?t:"",labelTemplate:e.labelTemplate,removable:!s||!s&&e.removable,onRemove:t=>function(e,t){l&&l(e,t)}(t,e.id),onClick:t=>function(e,t){o&&o(e,t)}(t,e.id)})},e.id)})})}),i?require$$0.jsxs("label",{className:"bee-chip-area-label",children:[i,a?require$$0.jsx("span",{className:"bee-chip-area-label-required",children:require$$0.jsx("span",{className:"bee-chip-area-label-required-star",children:" *"})}):null]}):null]})}function BeeDivider({id:e,className:t,label:i,iconClass:r,border:n="solid",orientation:a="horizontal",align:s="center",type:o="default"}){const l=null!=e?e:libExports.useId(1,"bee-divider-")[0],c=r?r+" mr-2":void 0;let h="";h=i||r?" bee-divider-content":" bee-divider-nocontent";const p=("primary"===o?"bee-divider bee-divider-primary":"secondary"===o?"bee-divider-secondary":"bee-divider-default")+h+(t?" "+t:"");return require$$0.jsx(divider.Divider,{id:l,type:n,align:s,className:p,layout:a,children:i||r?require$$0.jsxs("div",{className:"inline-flex align-items-center bee-divider-label",children:[c?require$$0.jsx("i",{className:c}):null,i?require$$0.jsx("b",{children:i}):null]}):null})}function BeeLoadingBar({id:e,className:t,value:i,indeterminate:r=!1,type:n="primary",showValue:a,unit:s}){const o=null!=e?e:libExports.useId(1,"bee-loading-bar-")[0],l="primary"===n?"bee-loadingbar-primary":"secondary"===n?"bee-loadingbar-secondary":"bee-loadingbar-primary"+(t?" "+t:"");return require$$0.jsx(progressbar.ProgressBar,{id:o,value:i,className:l,mode:r?"indeterminate":"determinate",showValue:a,unit:s})}function BeeLoadingSpinner({id:e,className:t,strokeWidth:i="2",animationDuration:r="4s",type:n="primary",size:a}){const s=null!=e?e:libExports.useId(1,"bee-loading-spinner-")[0],o="primary"===n?"bee-loading-spinner-primary":"secondary"===n?"bee-loading-spinner-secondary":"mixed"===n?"bee-loading-spinner-mixed":"bee-loading-spinner-primary"+(t?" "+t:""),l=a?{width:a,height:a}:void 0;return require$$0.jsx(progressspinner.ProgressSpinner,{className:o,id:s,strokeWidth:i,animationDuration:r,style:l})}function BeeSlider({id:e,className:t,value:i,min:r=0,max:n=100,step:a=1,disabled:s,orientation:o="horizontal",type:l="primary",onChange:c,onSlideEnd:h}){const p=null!=e?e:libExports.useId(1,"bee-slider-")[0],u="primary"===l?"bee-slider-primary":"secondary"===l?"bee-slider-secondary":"bee-slider-primary"+(t?" "+t:"");return require$$0.jsx(slider.Slider,{id:p,value:i,min:r,max:n,step:a,className:u,disabled:null!=s&&s,orientation:o,onChange:e=>function(e){!s&&c&&c(e)}(e),onSlideEnd:e=>function(e){!s&&h&&h(e)}(e)})}"function"==typeof SuppressedError&&SuppressedError;var dist={},hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist;hasRequiredDist=1,Object.defineProperty(dist,"__esModule",{value:!0});var e=require$$0,t=React,i=function(){return i=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)};function r(e,t,i){for(var r,n=0,a=t.length;n<a;n++)!r&&n in t||(r||(r=Array.prototype.slice.call(t,0,n)),r[n]=t[n]);return e.concat(r||Array.prototype.slice.call(t))}function n(t){var r=t.size,n=void 0===r?25:r,a=t.SVGstrokeColor,s=void 0===a?"currentColor":a,o=t.SVGstorkeWidth,l=void 0===o?0:o,c=t.SVGclassName,h=void 0===c?"star-svg":c,p=t.SVGstyle;return e.jsx("svg",i({className:h,style:p,stroke:s,fill:"currentColor",strokeWidth:l,viewBox:"0 0 24 24",width:n,height:n,xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})}))}function a(e,t){switch(t.type){case"PointerMove":return i(i({},e),{hoverValue:t.payload,hoverIndex:t.index});case"PointerLeave":return i(i({},e),{ratingValue:e.ratingValue,hoverIndex:0,hoverValue:null});case"MouseClick":return i(i({},e),{valueIndex:e.hoverIndex,ratingValue:t.payload});default:return e}}function s(){return"undefined"!=typeof window&&window.matchMedia("(pointer: coarse)").matches||"ontouchstart"in window||"undefined"!=typeof navigator&&navigator.maxTouchPoints>0}return function(e,t){void 0===t&&(t={});var i=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}(".style-module_starRatingWrap__q-lJC{display:inline-block;touch-action:none}.style-module_simpleStarRating__nWUxf{display:inline-block;overflow:hidden;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.style-module_fillIcons__6---A{display:inline-block;overflow:hidden;position:absolute;top:0;white-space:nowrap}.style-module_emptyIcons__Bg-FZ{display:inline-block}.style-module_tooltip__tKc3i{background-color:#333;border-radius:5px;color:#fff;display:inline-block;padding:5px 15px;vertical-align:middle}"),dist.Rating=function(o){var l,c,h=o.onClick,p=o.onPointerMove,u=o.onPointerEnter,d=o.onPointerLeave,f=o.initialValue,m=void 0===f?0:f,g=o.iconsCount,v=void 0===g?5:g,y=o.size,b=void 0===y?40:y,x=o.readonly,_=void 0!==x&&x,S=o.rtl,w=void 0!==S&&S,C=o.customIcons,P=void 0===C?[]:C,E=o.allowFraction,k=void 0!==E&&E,$=o.style,A=o.className,T=void 0===A?"react-simple-star-rating":A,D=o.transition,M=void 0!==D&&D,I=o.allowHover,F=void 0===I||I,j=o.disableFillHover,R=void 0!==j&&j,B=o.fillIcon,O=void 0===B?null:B,L=o.fillColor,q=void 0===L?"#ffbc0b":L,N=o.fillColorArray,z=void 0===N?[]:N,V=o.fillStyle,H=o.fillClassName,W=void 0===H?"filled-icons":H,G=o.emptyIcon,U=void 0===G?null:G,Y=o.emptyColor,K=void 0===Y?"#cccccc":Y,X=o.emptyStyle,Z=o.emptyClassName,J=void 0===Z?"empty-icons":Z,Q=o.allowTitleTag,ee=void 0===Q||Q,te=o.showTooltip,ie=void 0!==te&&te,re=o.tooltipDefaultText,ne=void 0===re?"Your Rate":re,ae=o.tooltipArray,se=void 0===ae?[]:ae,oe=o.tooltipStyle,le=o.tooltipClassName,ce=void 0===le?"react-simple-star-rating-tooltip":le,he=o.SVGclassName,pe=void 0===he?"star-svg":he,ue=o.titleSeparator,de=void 0===ue?"out of":ue,fe=o.SVGstyle,me=o.SVGstorkeWidth,ge=void 0===me?0:me,ve=o.SVGstrokeColor,ye=void 0===ve?"currentColor":ve,be=t.useReducer(a,{hoverIndex:0,valueIndex:0,ratingValue:m,hoverValue:null}),xe=be[0],_e=xe.ratingValue,Se=xe.hoverValue,we=xe.hoverIndex,Ce=xe.valueIndex,Pe=be[1];t.useEffect(function(){m&&Pe({type:"MouseClick",payload:0})},[m]);var Ee=t.useMemo(function(){return k?2*v:v},[k,v]),ke=t.useMemo(function(){return m>Ee?0:k||Math.floor(m)===m?Math.round(m/v*100):2*Math.ceil(m)*10},[k,m,v,Ee]),$e=t.useMemo(function(){return(k?2*m-1:m-1)||0},[k,m]),Ae=t.useCallback(function(e){return v%2!=0?e/2/10:e*v/100},[v]),Te=function(e){for(var t=e.clientX,i=e.currentTarget.children[0].getBoundingClientRect(),r=i.left,n=i.right,a=i.width,s=w?n-t:t-r,o=Ee,l=Math.round(a/Ee),c=0;c<=Ee;c+=1)if(s<=l*c){o=0===c&&s<l?0:c;break}var h=o-1;o>0&&(Pe({type:"PointerMove",payload:100*o/Ee,index:h}),p&&Se&&p(Ae(Se),h,e))},De=function(e){Se&&(Pe({type:"MouseClick",payload:Se}),h&&h(Ae(Se),we,e))},Me=t.useMemo(function(){if(F){if(R){var e=_e&&_e||ke;return Se&&Se>e?Se:e}return Se&&Se||_e&&_e||ke}return _e&&_e||ke},[F,R,Se,_e,ke]);t.useEffect(function(){se.length>Ee&&console.error("tooltipArray Array length is bigger then Icons Count length.")},[se.length,Ee]);var Ie=t.useCallback(function(e){return Se&&e[we]||_e&&e[Ce]||m&&e[$e]},[Se,we,_e,Ce,m,$e]),Fe=t.useMemo(function(){return Se&&Ae(Se)||_e&&Ae(_e)||m&&Ae(ke)},[Se,Ae,_e,m,ke]);return e.jsxs("span",i({className:"style-module_starRatingWrap__q-lJC",style:{direction:"".concat(w?"rtl":"ltr")}},{children:[e.jsxs("span",i({className:"".concat("style-module_simpleStarRating__nWUxf"," ").concat(T),style:i({cursor:_?"":"pointer"},$),onPointerMove:_?void 0:Te,onPointerEnter:_?void 0:function(e){u&&u(e),s()&&Te(e)},onPointerLeave:_?void 0:function(e){s()&&De(),Pe({type:"PointerLeave"}),d&&d(e)},onClick:_?void 0:De,"aria-hidden":"true"},{children:[e.jsx("span",i({className:"".concat("style-module_emptyIcons__Bg-FZ"," ").concat(J),style:i({color:K},X)},{children:r([],Array(v)).map(function(i,r){var a;return e.jsx(t.Fragment,{children:(null===(a=P[r])||void 0===a?void 0:a.icon)||U||e.jsx(n,{SVGclassName:pe,SVGstyle:fe,SVGstorkeWidth:ge,SVGstrokeColor:ye,size:b})},r)})})),e.jsx("span",i({className:"".concat("style-module_fillIcons__6---A"," ").concat(W),style:i((l={},l[w?"right":"left"]=0,l.color=Ie(z)||q,l.transition=M?"width .2s ease, color .2s ease":"",l.width="".concat(Me,"%"),l),V),title:ee?"".concat(Fe," ").concat(de," ").concat(v):void 0},{children:r([],Array(v)).map(function(i,r){var a;return e.jsx(t.Fragment,{children:(null===(a=P[r])||void 0===a?void 0:a.icon)||O||e.jsx(n,{SVGclassName:pe,SVGstyle:fe,SVGstorkeWidth:ge,SVGstrokeColor:ye,size:b})},r)})}))]})),ie&&e.jsx("span",i({className:"".concat("style-module_tooltip__tKc3i"," ").concat(ce),style:i((c={},c[w?"marginRight":"marginLeft"]=20,c),oe)},{children:(se.length>0?Ie(se):Fe)||ne}))]}))},dist}var distExports=requireDist();function BeeStarBar({id:e,className:t,value:i,stars:r,disabled:n,readOnly:a,type:s="primary",size:o=40,onChange:l}){const c=null!=e?e:libExports.useId(1,"bee-starbar-")[0],h="bee-starbar "+("primary"===s?"bee-starbar-primary":"secondary"===s?"bee-starbar-secondary":"bee-starbar-primary")+(a?" bee-starbar-readonly":"")+(n?" bee-starbar-disabled":"")+(t?" "+t:"");return require$$0.jsx("div",{id:c,children:require$$0.jsx(distExports.Rating,{initialValue:(console.log(i/r*100),i/r*100),iconsCount:r,readonly:!(!a&&!n),className:h,allowFraction:!0,size:o,showTooltip:!1,tooltipClassName:"starbar-rating-tooltip",tooltipStyle:{visibility:"hidden",display:"none"},fillColor:n?"var(--surface-500)":"primary"===s?"var(--primary-color)":"secondary"===s?"var(--secondary-color)":"var(--primary-color)",emptyColor:n?"var(--surface-300)":"var(--surface-500)",onClick:e=>function(e){l&&l(e)}(e)})})}function BeeCopyInput({id:e,className:t,label:i,value:r,disabled:n,iconClass:a}){const s=null!=e?e:libExports.useId(1,"bee-copy-input-")[0],o="bee-copy-input-link"+(t?" "+t:"");return require$$0.jsx("div",{className:"bee-copy-input",children:require$$0.jsx(require$$0.Fragment,{children:r?require$$0.jsxs("div",{className:o,onClick:()=>{r&&navigator.clipboard.writeText(r)},children:[require$$0.jsx(BeeTextInput,{id:s+"input",label:i,value:r,disabled:null!=n&&n,formstate:"neutral",readOnly:!0,required:!1}),require$$0.jsx("i",{className:a+" icon"})]}):require$$0.jsx(BeePlaceholder,{id:s,label:null!=i?i:""})})})}function BeeVisibleItemCount({id:e,className:t,visibleData:i,allData:r,isLoading:n}){const a="bee-visible-item-count"+(n?" isLoading":"")+(t?" "+t:"");return require$$0.jsx("div",{id:e,className:a,children:function(e,t){return e&&e.length>0&&t&&t.length>0&&!n?require$$0.jsx(require$$0.Fragment,{children:e.length+" / "+t.length}):require$$0.jsx(require$$0.Fragment,{children:"– / –"})}(i,r)})}function BeeBreadcrumb({id:e,className:t,border:i,items:r,type:n="default",isLoading:a}){const s=null!=e?e:libExports.useId(1,"bee-breadcrumb-")[0],o="bee-breadcrumb "+("primary"===n?"bee-breadcrumb-primary":"secondary"===n?"bee-breadcrumb-secondary":"bee-breadcrumb-default")+(i?"":" bee-breadcrumb-no-border")+(t?" "+t:"");return a?require$$0.jsx(BeeSkeleton,{shape:"rectangle",size:"20",width:"180",height:"20",animated:!0}):require$$0.jsx("div",{id:s,className:o,children:require$$0.jsx(breadcrumb.BreadCrumb,{model:_.drop(r,1),home:r[0]})})}function BeeTabview({id:e,className:t,type:i="default",tabs:r,activeIndex:n,onChangeIndex:a}){const s=null!=e?e:libExports.useId(1,"bee-tabview-")[0],o="bee-tabview"+("primary"===i?" bee-tabview-primary":"secondary"===i?" bee-tabview-secondary":" bee-tabview-default")+(t?" "+t:"");return require$$0.jsx("div",{id:s,className:o,children:require$$0.jsx(tabview.TabView,{activeIndex:n,onTabChange:e=>function(e){a&&a(e)}(e),scrollable:!0,children:r.map(e=>require$$0.jsx(tabview.TabPanel,{header:e.title,disabled:e.disabled},"tab_"+e.title))})})}const enter=13,escape=27,ENTER_KEY="Enter";function BeeCheckbox({id:e,className:t,label:i,value:r,disabled:n,statusLabel:a,type:s="primary",formstate:o="neutral",stateTrue:l="Ja",stateFalse:c="Nein",required:h,readOnly:p,tooltip:u,tooltipOptions:d,onChange:f}){const m=null!=e?e:libExports.useId(1,"bee-checkbox-")[0],g=m+"input",v="primary"===s?" bee-checkbox-primary":"secondary"===s?" bee-checkbox-secondary":" bee-checkbox-primary";let y="";p&&(y=" bee-checkbox-readOnly",n=!0);const b="bee-checkbox "+("valid"===o?" bee-checkbox-valid":"error"===o?" bee-checkbox-error":"neutral"===o?" bee-checkbox-neutral":"none"===o?" bee-checkbox-field-neutral":" bee-checkbox-neutral")+y+(n?" bee-checkbox-disabled":"")+v;return require$$0.jsxs("div",{className:null!=t?t:"",title:u,children:[require$$0.jsxs("span",{id:m,className:b,onKeyDown:e=>{!function(e){e.stopPropagation(),e.key===ENTER_KEY&&f&&f({checked:!r})}(e)},children:[require$$0.jsxs("label",{className:"bee-checkbox-input",htmlFor:g,children:[p?require$$0.jsx(require$$0.Fragment,{children:r?require$$0.jsx("i",{className:"pi pi-check"}):require$$0.jsx("i",{className:"pi pi-times"})}):require$$0.jsx(checkbox.Checkbox,{inputId:g,checked:null!=r&&r,onChange:e=>function(e){!n&&f&&f(e)}(e),className:v,tooltip:u,tooltipOptions:d}),require$$0.jsx("span",{className:"bee-checkbox-value",children:!0===r?l:c})]}),null!=i&&""!==i?require$$0.jsxs("label",{htmlFor:g,className:"bee-checkbox-label",children:[i,h?require$$0.jsx("span",{className:"bee-checkbox-label-required",children:require$$0.jsx("span",{className:"bee-checkbox-label-required-star",children:" *"})}):null]}):null]}),"none"!=o&&a?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-checkbox-statusLabel",children:"neutral"===o&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"neutral"}):"valid"===o&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"valid"}):"error"===o&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"error"}):null})})():null]})}function BeeCheckboxTriState({id:e,className:t,label:i,stateNull:r="Empty",stateFalse:n="False",stateTrue:a="True",value:s,disabled:o,required:l,statusLabel:c,formstate:h="neutral",readOnly:p,tooltip:u,tooltipOptions:d,onChange:f}){const m=null!=e?e:libExports.useId(1,"bee-tri-checkbox-")[0],g=m+"input";let v="";p&&(v=" bee-tri-state-readOnly",o=!0);const y="bee-tri-state "+("valid"===h?" bee-tri-state-valid":"error"===h?" bee-tri-state-error":" bee-tri-state-neutral")+v+(o?" bee-tri-state-disabled":"")+(t?" "+t:""),b=i?"bee-tri-state-label":"";const x=!0===s||!1===s?s:null;return require$$0.jsxs("div",{className:null!=t?t:"",children:[require$$0.jsxs("div",{id:m,className:y,onKeyDown:e=>{!function(e){e.stopPropagation(),e.key===ENTER_KEY&&f&&f({target:{value:!s&&(!1===s?null:null==s||null)}})}(e)},children:[require$$0.jsxs("label",{className:"bee-tri-state-input",htmlFor:g,children:[p?require$$0.jsx(require$$0.Fragment,{children:!0===s?require$$0.jsx("i",{className:"pi pi-check"}):!1===s?require$$0.jsx("i",{className:"pi pi-times"}):require$$0.jsx("i",{className:"pi pi-question"})}):require$$0.jsx(tristatecheckbox.TriStateCheckbox,{id:g,value:x,onChange:e=>function(e){!o&&f&&f(e)}(e),tooltip:u,tooltipOptions:d}),require$$0.jsx("span",{className:"bee-tri-state-value",children:!0===s?a:!1===s?n:r})]}),null!=i&&""!==i?require$$0.jsxs("label",{htmlFor:g,className:b,children:[i,l?require$$0.jsx("span",{className:"bee-tri-state-label-required",children:require$$0.jsx("span",{className:"bee-tri-state-label-required-star",children:" *"})}):null]}):null]}),"none"!=h&&c?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-checkbox-tristate-statusLabel",children:"error"===h&&c?require$$0.jsx(BeeLabel,{size:e,value:c,type:"error"}):"valid"===h&&c?require$$0.jsx(BeeLabel,{size:e,value:c,type:"valid"}):"neutral"===h&&c?require$$0.jsx(BeeLabel,{size:e,value:c,type:"neutral"}):null})})():null]})}function BeeColorSelect({id:e,className:t,label:i,value:r,inline:n=!1,disabled:a,required:s,statusLabel:o,formstate:l="neutral",readOnly:c,defaultColor:h,format:p="rgb",tooltip:u,tooltipOptions:d,onChange:f}){const m=null!=e?e:libExports.useId(1,"bee-color-select-")[0],g=m+"input",v=a?" bee-color-select-disabled":"";let y="";c&&(y=" bee-color-select-readOnly",a=!0);const b="bee-color-select"+("valid"===l?" bee-color-select-valid":"error"===l?" bee-color-select-error":" bee-color-select-neutral")+y+v+(t?" "+t:""),x=i?"bee-color-select-label":"";function _(e){!a&&f&&f(e)}return require$$0.jsxs("div",{id:m,className:b,children:[i?require$$0.jsxs("label",{className:x,htmlFor:g,children:[i,s&&i?require$$0.jsx("span",{className:"bee-color-select-label-required",children:require$$0.jsx("span",{className:"bee-color-select-label-required-star",children:" *"})}):null]}):null,require$$0.jsx("div",{className:"bee-color-select-input",children:c?require$$0.jsx(colorpicker.ColorPicker,{id:g,value:r,defaultColor:h,format:p,onChange:e=>_(e),disabled:null!=a&&a,inline:!1,tooltip:u,tooltipOptions:d}):require$$0.jsx(colorpicker.ColorPicker,{id:g,value:r,defaultColor:h,format:p,onChange:e=>_(e),disabled:null!=a&&a,inline:n,tooltip:u,tooltipOptions:d})}),"none"!=l&&o?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-color-select-statusLabel",children:"error"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"error"}):"valid"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"valid"}):"neutral"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"neutral"}):null})})():null]})}function BeeCurrencySelect({id:e,className:t,label:i,value:r,disabled:n,currency:a="EUR",locale:s="de-DE",statusLabel:o,formstate:l="neutral",readOnly:c,required:h,placeholder:p,min:u,max:d,tooltip:f,tooltipOptions:m,onChange:g}){const v=null!=e?e:libExports.useId(1,"bee-cur-select-")[0],y=v+"input";let b="";c&&(b=" bee-cur-select-readOnly",n=!0);const x="p-float-label bee-cur-select-container"+("valid"===l?" bee-cur-select-valid":"error"===l?" bee-cur-select-error":" bee-cur-select-neutral")+b;return require$$0.jsxs(require$$0.Fragment,{children:[c&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:v,label:i})}):require$$0.jsxs("span",{id:v,className:x+(t?" "+t:""),children:[require$$0.jsx(inputnumber.InputNumber,{id:y,value:null!=r?r:null,disabled:null!=n&&n,mode:"currency",currency:a,locale:s,showButtons:!0,placeholder:p,min:u,max:d,onValueChange:e=>function(e){!n&&g&&g(e)}(e),tooltip:f,tooltipOptions:m}),i?require$$0.jsxs("label",{htmlFor:y,children:[i,h&&i?require$$0.jsx("span",{className:"bee-cur-select-label-required",children:require$$0.jsx("span",{className:"bee-cur-select-label-required-star",children:" *"})}):null]}):null]}),"none"!=l&&o?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-cur-select-statusLabel",children:"error"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"error"}):"valid"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"valid"}):"neutral"===l&&o?require$$0.jsx(BeeLabel,{size:e,value:o,type:"neutral"}):null})})():null]})}function BeeDropDown({id:e,className:t,label:i,value:r,valueTemplate:n,itemTemplate:a,options:s,optionLabel:o,optionValue:l,emptyPlaceholder:c,filter:h,filterBy:p,filterPlaceholder:u,disabled:d,statusLabel:f,formstate:m="neutral",readOnly:g,required:v,editable:y,showDelete:b,deleteIcon:x,emptyMessage:_,emptyFilterMessage:S,tooltip:w,tooltipOptions:C,onChange:P}){const E=null!=e?e:libExports.useId(1,"bee-drop-down-")[0],k=E+"input";let $="";g&&($=" bee-dropdown-readOnly",d=!0);const A=("valid"===m?"bee-dropdown-valid":"error"===m?"bee-dropdown-error":"bee-dropdown-neutral")+$,T=x||"pi pi-times-circle";function D(e){!d&&P&&P(e)}const M=React.useCallback((e,t)=>{var r,a;if(!!(null==e||"string"==typeof e&&0===e.length||"object"==typeof e&&0===Object.keys(e).length)){const e=null!==(r=null!=c?c:t.placeholder)&&void 0!==r?r:"string"==typeof i?i:"";return e?"string"==typeof e?require$$0.jsx("span",{children:e}):e:require$$0.jsx("span",{children:" "})}const s="function"==typeof n?n(e,t):n,o="string"==typeof s&&0===s.trim().length;if(null!=s&&!1!==s&&!o)return s;const l=null!==(a=null!=c?c:t.placeholder)&&void 0!==a?a:"string"==typeof i?i:"";return l?"string"==typeof l?require$$0.jsx("span",{children:l}):l:require$$0.jsx("span",{children:" "})},[c,i,n]);return require$$0.jsxs("div",{className:"bee-dropdown",children:[g&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:E,label:i})}):require$$0.jsxs("span",{id:E,className:"p-float-label bee-dropdown-container"+(t?" "+t:""),children:[require$$0.jsx(dropdown.Dropdown,{id:k,value:r,valueTemplate:n?M:void 0,options:s,disabled:null!=d&&d,className:A,onChange:e=>D(e),optionLabel:o,optionValue:l,itemTemplate:null!=a?a:void 0,placeholder:c,emptyMessage:null!=_?_:"Keine Einträge gefunden",emptyFilterMessage:S,editable:null!=y&&y,filter:null!=h&&h,filterPlaceholder:u,filterBy:p,tooltip:w,tooltipOptions:C}),i?require$$0.jsxs("label",{htmlFor:k,children:[i,v&&i?require$$0.jsx("span",{className:"bee-dropdown-label-required",children:require$$0.jsx("span",{className:"bee-dropdown-label-required-star",children:" *"})}):null]}):null,r&&b&&require$$0.jsx("div",{className:"filter-cancel",children:require$$0.jsx(BeeIconButton,{iconClass:T,rounded:!0,disabled:null!=d&&d,type:"lightPrimary",isLoading:!1,onClick:()=>D({label:"",value:null})})})]}),"none"!=m&&f?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-dropdown-statusLabel",children:"error"===m&&f?require$$0.jsx(BeeLabel,{size:e,value:f,type:"error"}):"valid"===m&&f?require$$0.jsx(BeeLabel,{size:e,value:f,type:"valid"}):"neutral"===m&&f?require$$0.jsx(BeeLabel,{size:e,value:f,type:"neutral"}):null})})():null]})}function BeeNumberSelect({id:e,className:t,label:i,value:r,minFractionDigits:n,maxFractionDigits:a,min:s,max:o,stepSize:l,disabled:c,grouping:h=!0,statusLabel:p,formstate:u="neutral",readOnly:d,required:f,placeholder:m,tooltip:g,tooltipOptions:v,onChange:y,onFocusOut:b}){const x=null!=e?e:libExports.useId(1,"bee-num-select-")[0],_=x+"input";let S="";d&&(S=" bee-num-select-readOnly",c=!0);const w="p-float-label bee-num-select-container"+("valid"===u?" bee-num-select-valid":"error"===u?" bee-num-select-error":" bee-num-select-neutral")+S;return require$$0.jsxs(require$$0.Fragment,{children:[d&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:x,label:i})}):require$$0.jsxs("span",{id:x,className:w+(t?" "+t:""),children:[require$$0.jsx(inputnumber.InputNumber,{id:_,value:null!=r?r:null,disabled:null!=c&&c,mode:"decimal",useGrouping:h,minFractionDigits:n,maxFractionDigits:a,min:s,max:o,showButtons:!0,step:null!=l?l:1,placeholder:m,tooltip:g,tooltipOptions:v,onValueChange:e=>function(e){!c&&y&&y(e)}(e),onBlur:e=>function(e){!c&&b&&b(e)}(e)}),i?require$$0.jsxs("label",{htmlFor:_,children:[i,f&&i?require$$0.jsx("span",{className:"bee-num-select-label-required",children:require$$0.jsx("span",{className:"bee-num-select-label-required-star",children:" *"})}):null]}):null]}),"none"!=u&&p?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-num-select-statusLabel",children:"error"===u&&p?require$$0.jsx(BeeLabel,{size:e,value:p,type:"error"}):"valid"===u&&p?require$$0.jsx(BeeLabel,{size:e,value:p,type:"valid"}):"neutral"===u&&p?require$$0.jsx(BeeLabel,{size:e,value:p,type:"neutral"}):null})})():null]})}function BeeSwitch({id:e,className:t,label:i,value:r,disabled:n,statusLabel:a,formstate:s="neutral",stateFalse:o="Nein",stateTrue:l="Ja",required:c,readOnly:h,tooltip:p,tooltipOptions:u,onChange:d}){const f=null!=e?e:libExports.useId(1,"bee-switch-")[0],m=f+"input";let g="";h&&(g=" bee-switch-readOnly",n=!0);const v="bee-switch"+("valid"===s?" bee-switch-valid":"error"===s?" bee-switch-error":" bee-switch-neutral")+g+(n?" bee-switch-disabled":"")+(t?" "+t:""),y=i?"bee-switch-label":"";const b=!0===r;return require$$0.jsxs("div",{id:f,className:v,children:[require$$0.jsxs("div",{className:"bee-switch-input",children:[require$$0.jsx(inputswitch.InputSwitch,{inputId:m,checked:b,className:b?"p-inputswitch-checked":void 0,onChange:e=>function(e){!n&&d&&d(e)}(e),disabled:null!=n&&n,tooltip:p,tooltipOptions:u}),require$$0.jsx("label",{className:"bee-switch-value",htmlFor:m,children:b?l:o})]}),i?require$$0.jsxs("label",{className:y,htmlFor:m,children:[i,c&&i?require$$0.jsx("span",{className:"bee-switch-label-required",children:require$$0.jsx("span",{className:"bee-switch-label-required-star",children:" *"})}):null]}):null,"none"!=s&&a?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-switch-statusLabel",children:"error"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"error"}):"valid"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"valid"}):"neutral"===s&&a?require$$0.jsx(BeeLabel,{size:e,value:a,type:"neutral"}):null})})():null]})}function BeeTreeSelect({id:e,className:t,label:i,value:r,showDelete:n,options:a,valueTemplate:s,display:o="comma",selectionMode:l="single",placeholder:c,panelClassName:h,filter:p,filterTemplate:u,filterValue:d,filterBy:f,filterPlaceholder:m,disabled:g,readOnly:v,statusLabel:y,formstate:b="neutral",required:x,emptyMessage:_,tooltip:S,tooltipOptions:w,onChange:C,onNodeSelect:P,onHide:E}){var k;const $=null!=e?e:libExports.useId(1,"bee-treeselect-")[0],A=$+"input";let T="";v&&(T=" bee-ts-readOnly",g=!0);const D=("valid"===b?" bee-ts-valid":"error"===b?" bee-ts-error":" bee-ts-neutral")+T,M=" bee-ts-container ",I=p?" bee-ts-panel":" bee-ts-panel bee-ts-invisible-header";function F(e){!g&&C&&C(e)}function j(e){!g&&P&&P(e)}function R(){!g&&E&&E()}const B=React.useCallback((e,t)=>{var r,n,a,o;if(!!(null==e||"string"==typeof e&&0===e.length||"object"==typeof e&&0===Object.keys(e).length)){const e=null!==(n=null!==(r=t.placeholder)&&void 0!==r?r:i)&&void 0!==n?n:"";return e?require$$0.jsx("span",{children:e}):require$$0.jsx("span",{children:" "})}const l="function"==typeof s?s(e,t):s,c="string"==typeof l&&0===l.trim().length;if(null!=l&&!1!==l&&!c)return l;const h=null!==(o=null!==(a=t.placeholder)&&void 0!==a?a:i)&&void 0!==o?o:"";return h?require$$0.jsx("span",{children:h}):require$$0.jsx("span",{children:" "})},[i,c,s]);return require$$0.jsxs(require$$0.Fragment,{children:[v&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:$,label:i})}):require$$0.jsx(require$$0.Fragment,{children:require$$0.jsxs("div",{id:$,className:t?t+M:M,children:[require$$0.jsx("div",{className:!v&&r&&Object.keys(r).length>0?"bee-ts-filter__deleteBtn":"bee-ts-filter__deleteBtn bee-ts-filter--hidden",children:n?require$$0.jsx(BeeIconButton,{iconClass:"pi pi-times-circle",rounded:!0,disabled:!1,type:"lightPrimary",isLoading:!1,onClick:()=>{F(void 0),j(void 0),R()}}):null}),require$$0.jsxs("div",{className:"p-float-label",children:[require$$0.jsx(treeselect.TreeSelect,{id:A,value:r,valueTemplate:s?B:void 0,options:a,disabled:g,className:D,panelClassName:h?h+I:I,display:o,selectionMode:l,placeholder:null!==(k=null!=c?c:i)&&void 0!==k?k:void 0,filter:p,filterTemplate:u,filterValue:d,filterBy:f,filterPlaceholder:null!=m?m:"Suche",onChange:e=>F(e),onNodeSelect:e=>j(e),onHide:()=>R(),emptyMessage:_,tooltip:S,tooltipOptions:w}),i?require$$0.jsxs("label",{htmlFor:A,className:"bee-ts-label",children:[i,x&&i?require$$0.jsx("span",{className:"bee-ts-label-required",children:require$$0.jsx("span",{className:"bee-ts-label-required-star",children:" *"})}):null]}):null]})]})}),"none"!=b&&y?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-ts-statusLabel",children:"error"===b&&y?require$$0.jsx(BeeLabel,{size:e,value:y,type:"error"}):"valid"===b&&y?require$$0.jsx(BeeLabel,{size:e,value:y,type:"valid"}):"neutral"===b&&y?require$$0.jsx(BeeLabel,{size:e,value:y,type:"neutral"}):null})})():null]})}function BeeChipDropdown({id:e,className:t,label:i,value:r,options:n,optionLabel:a,statusLabel:s,disabled:o,formstate:l="neutral",readOnly:c,required:h,placeholder:p,maxSelectedLabels:u,filter:d,filterBy:f,filterPlaceholder:m,emptyFilterMessage:g,emptyMessage:v,onChange:y}){const b=null!=e?e:libExports.useId(1,"bee-chip-dropdown-")[0],x=b+"input";let _="";c&&(_=" bee-chip-dropdown-readOnly",o=!0);const S=("valid"===l?"bee-chip-dropdown-valid":"error"===l?"bee-chip-dropdown-error":"bee-chip-dropdown-neutral")+_;return require$$0.jsxs("div",{children:[c&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:b,label:null!=i?i:""})}):require$$0.jsxs("span",{id:b,className:"p-float-label bee-chip-dropdown-container"+(t?" "+t:""),children:[require$$0.jsx(multiselect.MultiSelect,Object.assign({display:"chip",id:x,value:r,options:n,disabled:null!=o&&o,className:S,onChange:e=>{return t=e,void(!o&&y&&y(t));var t},optionLabel:a,panelHeaderTemplate:e=>{const t=`${e.className} p-multiselect-header bee-chip-dropdown__header`,i="bee-chip-dropdown_selectall",r=`${i}_label`;return require$$0.jsxs("div",{className:t,children:[e.checkboxElement,require$$0.jsx("label",{id:r,className:"p-checkbox-label",htmlFor:i,children:"Alle auswählen"})]})},placeholder:p,maxSelectedLabels:u,filter:null!=d&&d,filterBy:f},void 0!==m&&{filterPlaceholder:m},void 0!==v&&{emptyMessage:v},void 0!==g&&{emptyFilterMessage:g})),i?require$$0.jsxs("label",{htmlFor:x,children:[i,h&&i?require$$0.jsx("span",{className:"bee-chip-dropdown-label-required",children:require$$0.jsx("span",{className:"bee-chip-dropdown-label-required-star",children:" *"})}):null]}):null]}),"none"!=l&&s?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-chip-dropdown-statusLabel",children:"error"===l&&s?require$$0.jsx(BeeLabel,{size:e,value:s,type:"error"}):"valid"===l&&s?require$$0.jsx(BeeLabel,{size:e,value:s,type:"valid"}):"neutral"===l&&s?require$$0.jsx(BeeLabel,{size:e,value:s,type:"neutral"}):null})})():null]})}var ChatMessageSourceEnum,ChatParticipantTypeEnum,ServerStatus;function parseParticipantName(e){var t,i;if(!(null==e?void 0:e.trim()))return{firstName:"U",lastName:"N"};const r=e.trim().split(" ").filter(e=>e.length>0);return 0===r.length?{firstName:"U",lastName:"N"}:{firstName:null!==(t=r[0])&&void 0!==t?t:"U",lastName:null!==(i=r[r.length-1])&&void 0!==i?i:"N"}}function BeeChatMessage({maxWindow:e=!1,msg:t,participant:i,project:r,chatMsgSource:n,isCurrentUser:a=!1,showDeleteButton:s=!1,documentIconClass:o="pi pi-file",trashIconClass:l="pi pi-trash",sourceAuditIconClass:c="pi pi-briefcase",sourceLcIconClass:h="pi pi-comments",onMsgDelete:p,onDownload:u}){const d=React.useMemo(()=>{var e;return null!==(e=null==i?void 0:i.name)&&void 0!==e?e:"Unbekannter Benutzer"},[null==i?void 0:i.name]),f=React.useMemo(()=>null==i?void 0:i.type,[null==i?void 0:i.type]),{firstName:m,lastName:g}=React.useMemo(()=>parseParticipantName(d),[d]),v=React.useMemo(()=>f!==exports.ChatParticipantTypeEnum.USER||a?f===exports.ChatParticipantTypeEnum.USER&&a?"lc-m-chat-message--self":f===exports.ChatParticipantTypeEnum.SYSTEM?"lc-m-chat-message--system":"lc-m-chat-message--otherUser":"lc-m-chat-message--otherUser",[f,a]);function y(e){const t=new Date(e);return`${t.getDate().toString().padStart(2,"0")}.${(t.getMonth()+1).toString().padStart(2,"0")}.${t.getFullYear().toString().slice(-2)} - ${t.getHours().toString().padStart(2,"0")}:${t.getMinutes().toString().padStart(2,"0")}`}const b=(null==t?void 0:t.mediaId)&&"object"==typeof t.mediaId?t.mediaId:null;function x(){var t,i;if(!b)return null;const r=null!==(t=b.document)&&void 0!==t?t:b.image;if(!r)return null;const n=null!==(i=r.filename)&&void 0!==i?i:b.document?"Unbekannte Datei":"Unbekanntes Bild";return require$$0.jsxs("div",{className:"chat-message_media-container",children:[require$$0.jsx(BeeMixButton,{label:n,iconClass:o,type:"lightPrimary",iconPos:"left",onClick:u}),e&&null!=r.fileSize?require$$0.jsx(BeeLabel,{value:`Größe: ${r.fileSize}kb`,size:"small",type:"neutral"}):null]})}return require$$0.jsx("div",{className:"lc-m-chat-message "+v,children:require$$0.jsxs("div",{className:"chat-message__message-container-avatar",children:[(null==t?void 0:t.deletedAt)?null:t?require$$0.jsxs("div",{className:"chat-message__message-container",children:[require$$0.jsxs("div",{className:"chat-message_headline-container align-items-center"+(r===exports.ChatMessageSourceEnum.AUDIT?" pl-0":""),children:[require$$0.jsxs("div",{className:"chat-message__user-info",children:[r===exports.ChatMessageSourceEnum.AUDIT&&n===exports.ChatMessageSourceEnum.AUDIT&&require$$0.jsx("i",{className:c}),r===exports.ChatMessageSourceEnum.AUDIT&&n===exports.ChatMessageSourceEnum.LC&&require$$0.jsx("i",{className:h}),r===exports.ChatMessageSourceEnum.AUDIT&&require$$0.jsx("div",{className:"mr-1 ml-1",children:require$$0.jsx(BeeLabel,{value:"||",size:"small",type:"neutral"})}),require$$0.jsx(BeeLabel,{value:d,size:"small",type:"neutral"})]}),(null==t?void 0:t.createdAt)?require$$0.jsx(BeeLabel,{value:y(t.createdAt),size:"small",type:"neutral"}):null]}),t.mediaId?x():require$$0.jsx("div",{className:"chat-message",children:null!==(_=null==t?void 0:t.message)&&void 0!==_?_:"Keine Nachricht"}),s&&a&&p&&require$$0.jsx(BeeIconButton,{iconClass:l,type:"lightPrimary",rounded:!1,onClick:p})]}):null,require$$0.jsx(BeeAvatar,{showPlaceholder:!0,placeholderFirstname:m,placeholderLastname:g,showDelete:!1,disabled:!1,size:"xSmall",type:"primary"})]})});var _}exports.ChatMessageSourceEnum=void 0,ChatMessageSourceEnum=exports.ChatMessageSourceEnum||(exports.ChatMessageSourceEnum={}),ChatMessageSourceEnum.LC="LC",ChatMessageSourceEnum.AUDIT="AUDIT",exports.ChatParticipantTypeEnum=void 0,ChatParticipantTypeEnum=exports.ChatParticipantTypeEnum||(exports.ChatParticipantTypeEnum={}),ChatParticipantTypeEnum.ADMIN="ADMIN",ChatParticipantTypeEnum.USER="USER",ChatParticipantTypeEnum.SYSTEM="SYSTEM",exports.ServerStatus=void 0,ServerStatus=exports.ServerStatus||(exports.ServerStatus={}),ServerStatus.SERVER_STATUS_LOADING="loading",ServerStatus.SERVER_STATUS_ERROR="error",ServerStatus.SERVER_STATUS_SUCCESS="success",ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE="externalUpdate";const DEFAULT_SUCCESS_TOOLTIP="Änderung gespeichert",DEFAULT_ERROR_TOOLTIP="Die Änderung konnte nicht gespeichert werden",DEFAULT_EXTERNAL_CHANGE_TOOLTIP="Eine andere Person hat dieses Feld soeben bearbeitet";function BeeServerStatusInput({status:e,successIcon:t="pi pi-check",loadingIcon:i,errorIcon:r="pi pi-times",externalChangeIcon:n="pi pi-user",hideIcons:a,children:s,onResetStatus:o,successTooltip:l=DEFAULT_SUCCESS_TOOLTIP,errorTooltip:c=DEFAULT_ERROR_TOOLTIP,externalChangeTooltip:h=DEFAULT_EXTERNAL_CHANGE_TOOLTIP}){const p=e===exports.ServerStatus.SERVER_STATUS_LOADING?"server-status-loading":e===exports.ServerStatus.SERVER_STATUS_ERROR?"server-status-error":e===exports.ServerStatus.SERVER_STATUS_SUCCESS?"server-status-success":e===exports.ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE?"server-status-externalChange":"";return React.useEffect(()=>{if(e===exports.ServerStatus.SERVER_STATUS_SUCCESS||e===exports.ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE){const e=setTimeout(()=>{null==o||o()},5e3);return()=>clearTimeout(e)}},[e,o]),require$$0.jsxs("div",{className:e?`serverStatus-input ${p} p-input-icon-right serverStatus-input-icon-right`:"serverStatus-input",children:[require$$0.jsx(require$$0.Fragment,{children:s}),e&&!a?require$$0.jsx(require$$0.Fragment,{children:e===exports.ServerStatus.SERVER_STATUS_SUCCESS?require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx(tooltip.Tooltip,{target:".icon--success",content:l}),require$$0.jsx("i",{className:t+" icon--success"})]}):e===exports.ServerStatus.SERVER_STATUS_LOADING?require$$0.jsx(require$$0.Fragment,{children:i?require$$0.jsx("i",{className:i+" icon--loading"}):require$$0.jsx(BeeLoadingSpinner,{strokeWidth:"2",type:"primary"})}):e===exports.ServerStatus.SERVER_STATUS_ERROR?require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx(tooltip.Tooltip,{target:".icon--error",content:c}),require$$0.jsx("i",{className:r+" icon--error"})]}):e===exports.ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE?require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx(tooltip.Tooltip,{target:".icon--externalChange",content:h}),require$$0.jsx("i",{className:n+" icon--externalChange"})]}):null}):null]})}function BeeChangesChip({className:e,values:t,type:i="primary"}){const r=`bee-changes-chip ${`bee-changes-chip--${i}`} ${e?" "+e:""}`;return 0===t.length?null:require$$0.jsx("div",{className:r,children:function(e){return e.map((e,t)=>{const i=e.value<10?e.value.toString():"9+";return require$$0.jsxs("div",{className:"bee-changes-chip__icon-wrapper",children:[require$$0.jsx("i",{className:e.icon}),require$$0.jsx("div",{}),require$$0.jsx(badge.Badge,{value:i,severity:"info"})]},t)})}(t)})}function BeeFilterDropDown({id:e,className:t,label:i,value:r,options:n,optionLabel:a,optionValue:s,disabled:o,dropdownIcon:l,deleteIcon:c,statusLabel:h,formstate:p="neutral",readOnly:u,onChange:d}){const f=null!=e?e:libExports.useId(1,"bee-filter-dropdown-")[0],m=f+"input",[g,v]=React.useState(r);let y="";u&&(y=" bee-filter-dropdown-readOnly",o=!0);const b=("valid"===p?"bee-filter-dropdown-valid":"error"===p?"bee-filter-dropdown-error":"bee-filter-dropdown-neutral")+y,x="p-float-label bee-filter-dropdown-container flex "+(t?" "+t:""),_=null!=c?c:"pi pi-times-circle";React.useEffect(()=>{v(r)},[r]);return require$$0.jsxs("div",{className:"bee-filter-dropdown",children:[u&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:f,label:i})}):require$$0.jsxs("span",{id:f,className:x,children:[require$$0.jsx(dropdown.Dropdown,{id:m,value:g,options:n,optionLabel:a,optionValue:s,disabled:null!=o&&o,className:b,dropdownIcon:null!=l?l:"",emptyMessage:"Keine Einträge gefunden",onChange:e=>{return t=e,void(!o&&d&&d(t));var t}}),g&&""!==g?require$$0.jsx("div",{className:"cancel",children:require$$0.jsx(BeeIconButton,{iconClass:_,rounded:!0,disabled:o||!1,type:"lightPrimary",isLoading:!1,onClick:()=>{v("")}})}):null,i?require$$0.jsx("label",{htmlFor:m,children:i}):null]}),"none"!=p&&h?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-filter-dropdown-statusLabel",children:"error"===p&&null!=h?require$$0.jsx(BeeLabel,{size:e,value:String(h),type:"error"}):"valid"===p&&null!=h?require$$0.jsx(BeeLabel,{size:e,value:String(h),type:"valid"}):"neutral"===p&&null!=h?require$$0.jsx(BeeLabel,{size:e,value:String(h),type:"neutral"}):null})})():null]})}function BeeFilterTreeSelect({id:e,className:t,label:i,value:r,options:n,valueTemplate:a,display:s="comma",selectionMode:o="single",placeholder:l,filter:c,filterTemplate:h,filterValue:p,filterBy:u,filterPlaceholder:d,confirmBtnText:f,confirmBtnDisabled:m,confirmBtnTooltip:g,deleteIcon:v,disabled:y,readOnly:b,statusLabel:x,formstate:_="neutral",required:S,hideDelete:w,onSelectNodes:C,onChange:P,onHide:E}){const k=null!=e?e:libExports.useId(1,"bee-filter-ts-")[0],$=k+"input",[A,T]=React.useState(r);let D="";b&&(D=" bee-filter-ts-readOnly",y=!0);const M=("valid"===_?"bee-filter-ts-valid":"error"===_?"bee-filter-ts-error":"bee-filter-ts-neutral")+D,I=" p-float-label bee-filter-ts-container",F=c?"bee-filter-ts-panel":"bee-filter-ts-panel bee-filter-ts-invisible-header",j=v||"pi pi-times-circle";function R(){const e=document.querySelector("body");if(e){const t=new MouseEvent("click",{bubbles:!0,view:window});e.dispatchEvent(t)}}function B(){!y&&E&&E()}React.useEffect(()=>{T(r)},[r]);return require$$0.jsxs(require$$0.Fragment,{children:[b&&!r?require$$0.jsx("div",{className:null!=t?t:"",children:require$$0.jsx(BeePlaceholder,{id:k,label:i})}):require$$0.jsxs("div",{id:k,className:t?t+I:I,children:[require$$0.jsx("div",{className:!b&&r&&Object.keys(r).length>0?"bee-filter-ts-filter__deleteBtn":"bee-filter-ts-filter__deleteBtn bee-filter-ts-filter--hidden",children:!A||""===A||w?null:require$$0.jsx("div",{className:"cancel",children:require$$0.jsx(BeeIconButton,{iconClass:j,rounded:!0,disabled:y||!1,type:"lightPrimary",isLoading:!1,onClick:()=>{T(""),!y&&C&&(C(void 0),R())}})})}),require$$0.jsxs("span",{className:"p-float-label",children:[require$$0.jsx(treeselect.TreeSelect,{id:$,value:A,options:n,disabled:y||!1,className:M,valueTemplate:a,panelClassName:F,display:null!=s?s:"comma",selectionMode:o,placeholder:l,filter:c,filterTemplate:h,filterValue:p,filterBy:u,filterPlaceholder:d||"Suche",onChange:e=>{T(e.value),function(e){!y&&P&&P(e)}(e)},onHide:()=>{T(r),B()},panelFooterTemplate:()=>require$$0.jsx("div",{className:"p-d-flex p-jc-end p-ai-center",style:{padding:"1rem"},children:require$$0.jsx(BeeButton,{label:f||"Übernehmen",type:"secondary",disabled:m||!1,tooltip:m&&g?g:void 0,onClick:()=>{B(),!y&&C&&(C(A),R())}})})}),i?require$$0.jsxs("label",{htmlFor:$,className:"bee-filter-ts-label",children:[i,S&&i?require$$0.jsx("span",{className:"bee-filter-ts-label-required",children:require$$0.jsx("span",{className:"bee-filter-ts-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=_&&x?(()=>{const e="medium";return require$$0.jsx("div",{className:"bee-filter-ts-statusLabel",children:"error"===_&&null!=x?require$$0.jsx(BeeLabel,{size:e,value:String(x),type:"error"}):"valid"===_&&null!=x?require$$0.jsx(BeeLabel,{size:e,value:String(x),type:"valid"}):"neutral"===_&&null!=x?require$$0.jsx(BeeLabel,{size:e,value:String(x),type:"neutral"}):null})})():null]})}function BeeGalleryImage({id:e,className:t,imageUrl:i,imageKey:r,imageAlt:n,imageTitle:a,imageCopyright:s,isImageSecured:o=!1,showPlaceHolder:l=!1,activateHover:c=!0,readOnly:h,onClick:p,onRemove:u,onAdd:d}){const f=null!=e?e:libExports.useId(1,"bee-gallery-img-")[0],m="bee-gallery-img "+(h?"bee-gallery-img-readOnly":"")+(c?" bee-gallery-img-hover":" bee-gallery-img-noHover")+" bee-gallery-img-placeholder"+(t?" "+t:"");return require$$0.jsx("div",{id:f,className:m,children:i?require$$0.jsxs("div",{children:[h?null:require$$0.jsx("div",{className:"bee-gallery-img-close-button",children:require$$0.jsx(BeeIconButton,{iconClass:"pi pi-times",rounded:!0,disabled:!1,type:"secondary",isLoading:!1,onClick:e=>function(e){u&&u(e)}(e)})}),require$$0.jsx("div",{className:"bee-gallery-img-content",children:require$$0.jsx(BeeImage,{url:i,alt:n,title:a,titlePosition:"left",copyright:s,secured:o,secureKey:o?r:void 0,showPlaceholder:l,onClick:e=>function(e){p&&p(e)}(e)},r)})]}):h?null:require$$0.jsx("div",{className:"bee-gallery-img-add-button",children:require$$0.jsx(BeeAddEntryCard,{disabled:h||!1,onClick:e=>function(e){d&&d(e)}(e)})})})}var UserAgent_DEPRECATED_1,hasRequiredUserAgent_DEPRECATED,ExecutionEnvironment_1,hasRequiredExecutionEnvironment,isEventSupported_1,hasRequiredIsEventSupported,normalizeWheel_1,hasRequiredNormalizeWheel$1,normalizeWheel$1,hasRequiredNormalizeWheel;function requireUserAgent_DEPRECATED(){if(hasRequiredUserAgent_DEPRECATED)return UserAgent_DEPRECATED_1;hasRequiredUserAgent_DEPRECATED=1;var e,t,i,r,n,a,s,o,l,c,h,p,u,d,f,m=!1;function g(){if(!m){m=!0;var g=navigator.userAgent,v=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(g),y=/(Mac OS X)|(Windows)|(Linux)/.exec(g);if(p=/\b(iPhone|iP[ao]d)/.exec(g),u=/\b(iP[ao]d)/.exec(g),c=/Android/i.exec(g),d=/FBAN\/\w+;/i.exec(g),f=/Mobile/i.exec(g),h=!!/Win64/.exec(g),v){(e=v[1]?parseFloat(v[1]):v[5]?parseFloat(v[5]):NaN)&&document&&document.documentMode&&(e=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(g);a=b?parseFloat(b[1])+4:e,t=v[2]?parseFloat(v[2]):NaN,i=v[3]?parseFloat(v[3]):NaN,(r=v[4]?parseFloat(v[4]):NaN)?(v=/(?:Chrome\/(\d+\.\d+))/.exec(g),n=v&&v[1]?parseFloat(v[1]):NaN):n=NaN}else e=t=i=n=r=NaN;if(y){if(y[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(g);s=!x||parseFloat(x[1].replace("_","."))}else s=!1;o=!!y[2],l=!!y[3]}else s=o=l=!1}}var v={ie:function(){return g()||e},ieCompatibilityMode:function(){return g()||a>e},ie64:function(){return v.ie()&&h},firefox:function(){return g()||t},opera:function(){return g()||i},webkit:function(){return g()||r},safari:function(){return v.webkit()},chrome:function(){return g()||n},windows:function(){return g()||o},osx:function(){return g()||s},linux:function(){return g()||l},iphone:function(){return g()||p},mobile:function(){return g()||p||u||c||f},nativeApp:function(){return g()||d},android:function(){return g()||c},ipad:function(){return g()||u}};return UserAgent_DEPRECATED_1=v}function requireExecutionEnvironment(){if(hasRequiredExecutionEnvironment)return ExecutionEnvironment_1;hasRequiredExecutionEnvironment=1;var e=!("undefined"==typeof window||!window.document||!window.document.createElement),t={canUseDOM:e,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:e&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:e&&!!window.screen,isInWorker:!e};return ExecutionEnvironment_1=t}function requireIsEventSupported(){if(hasRequiredIsEventSupported)return isEventSupported_1;hasRequiredIsEventSupported=1;var e,t=requireExecutionEnvironment();return t.canUseDOM&&(e=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
|
29
28
|
/**
|
|
30
29
|
* Checks if an event is supported in the current execution environment.
|
|
31
30
|
*
|
|
@@ -39,7 +38,7 @@ function G(e){return e+.5|0}const X=(e,t,n)=>Math.max(Math.min(e,n),t);function
|
|
|
39
38
|
* @return {boolean} True if the event is supported.
|
|
40
39
|
* @internal
|
|
41
40
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
42
|
-
*/,mo=function(n,i){if(!t.canUseDOM||i&&!("addEventListener"in document))return!1;var a="on"+n,r=a in document;if(!r){var o=document.createElement("div");o.setAttribute(a,"return;"),r="function"==typeof o[a]}return!r&&e&&"wheel"===n&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}}function wo(){if(bo)return vo;bo=1;var e=function(){if(po)return uo;po=1;var e,t,n,i,a,r,o,s,l,c,u,d,p,h,f,m=!1;function g(){if(!m){m=!0;var g=navigator.userAgent,v=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(g),b=/(Mac OS X)|(Windows)|(Linux)/.exec(g);if(d=/\b(iPhone|iP[ao]d)/.exec(g),p=/\b(iP[ao]d)/.exec(g),c=/Android/i.exec(g),h=/FBAN\/\w+;/i.exec(g),f=/Mobile/i.exec(g),u=!!/Win64/.exec(g),v){(e=v[1]?parseFloat(v[1]):v[5]?parseFloat(v[5]):NaN)&&document&&document.documentMode&&(e=document.documentMode);var x=/(?:Trident\/(\d+.\d+))/.exec(g);r=x?parseFloat(x[1])+4:e,t=v[2]?parseFloat(v[2]):NaN,n=v[3]?parseFloat(v[3]):NaN,(i=v[4]?parseFloat(v[4]):NaN)?(v=/(?:Chrome\/(\d+\.\d+))/.exec(g),a=v&&v[1]?parseFloat(v[1]):NaN):a=NaN}else e=t=n=a=i=NaN;if(b){if(b[1]){var y=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(g);o=!y||parseFloat(y[1].replace("_","."))}else o=!1;s=!!b[2],l=!!b[3]}else o=s=l=!1}}var v={ie:function(){return g()||e},ieCompatibilityMode:function(){return g()||r>e},ie64:function(){return v.ie()&&u},firefox:function(){return g()||t},opera:function(){return g()||n},webkit:function(){return g()||i},safari:function(){return v.webkit()},chrome:function(){return g()||a},windows:function(){return g()||s},osx:function(){return g()||o},linux:function(){return g()||l},iphone:function(){return g()||d},mobile:function(){return g()||d||p||c||f},nativeApp:function(){return g()||h},android:function(){return g()||c},ipad:function(){return g()||p}};return uo=v}(),t=_o();function n(e){var t=0,n=0,i=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,a=10*n,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||a)&&e.deltaMode&&(1==e.deltaMode?(i*=40,a*=40):(i*=800,a*=800)),i&&!t&&(t=i<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:a}}return n.getEventType=function(){return e.firefox()?"DOMMouseScroll":t("wheel")?"wheel":"mousewheel"},vo=n}var jo=q(yo?xo:(yo=1,xo=wo()));function ko(e,t,n,i,a){void 0===a&&(a=0);var r=zo(t.width,t.height,a),o=r.width,s=r.height;return{x:So(e.x,o,n.width,i),y:So(e.y,s,n.height,i)}}function So(e,t,n,i){var a=t*i/2-n/2;return Ao(e,-a,a)}function Co(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function No(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function Mo(e,t){return Math.min(e,Math.max(0,t))}function Oo(e,t){return t}function Do(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function zo(e,t,n){var i=n*Math.PI/180;return{width:Math.abs(Math.cos(i)*e)+Math.abs(Math.sin(i)*t),height:Math.abs(Math.sin(i)*e)+Math.abs(Math.cos(i)*t)}}function Ao(e,t,n){return Math.min(Math.max(e,t),n)}function Eo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return"string"==typeof e&&e.length>0}).join(" ").trim()}var Po=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.cropperRef=B.createRef(),n.imageRef=B.createRef(),n.videoRef=B.createRef(),n.containerPosition={x:0,y:0},n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.previousCropSize=null,n.isInitialized=!1,n.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver(function(t){e?e=!1:n.computeSizes()}),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturechange",n.onGestureChange),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd),n.currentDoc.removeEventListener("scroll",n.onScroll))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.previousCropSize=e,n.emitCropData(),n.setInitialCrop(e),n.isInitialized=!0),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,i,a,r){var o=zo(t.width,t.height,n),s=Ao(i.width/o.width*(100/e.width),a,r);return{crop:{x:s*o.width/2-i.width/2-o.width*s*(e.x/100),y:s*o.height/2-i.height/2-o.height*s*(e.y/100)},zoom:s}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),i=t.crop,a=t.zoom;n.props.onCropChange(i),n.props.onZoomChange&&n.props.onZoomChange(a)}else if(n.props.initialCroppedAreaPixels){var r=function(e,t,n,i,a,r){void 0===n&&(n=0);var o=zo(t.naturalWidth,t.naturalHeight,n),s=Ao(function(e,t,n){var i=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*i):n.width/(e.width*i)}(e,t,i),a,r),l=i.height>i.width?i.height/e.height:i.width/e.width;return{crop:{x:((o.width-e.width)/2-e.x)*l,y:((o.height-e.height)/2-e.y)*l},zoom:s}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);i=r.crop,a=r.zoom;n.props.onCropChange(i),n.props.onZoomChange&&n.props.onZoomChange(a)}},n.computeSizes=function(){var e,t,i,a,r,o,s=n.imageRef.current||n.videoRef.current;if(s&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect(),n.saveContainerPosition();var l=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(i=n.imageRef.current)||void 0===i?void 0:i.naturalHeight)||(null===(a=n.videoRef.current)||void 0===a?void 0:a.videoHeight)||0,d=c/u,p=void 0;if(s.offsetWidth<c||s.offsetHeight<u)switch(n.state.mediaObjectFit){default:case"contain":p=l>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":p={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":p={width:n.containerRect.height*d,height:n.containerRect.height}}else p={width:s.offsetWidth,height:s.offsetHeight};n.mediaSize=$r($r({},p),{naturalWidth:c,naturalHeight:u}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var h=n.props.cropSize?n.props.cropSize:function(e,t,n,i,a,r){void 0===r&&(r=0);var o=zo(e,t,r),s=o.width,l=o.height,c=Math.min(s,n),u=Math.min(l,i);return c>u*a?{width:u*a,height:u}:{width:c,height:c/a}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(r=n.state.cropSize)||void 0===r?void 0:r.height)===h.height&&(null===(o=n.state.cropSize)||void 0===o?void 0:o.width)===h.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(h),n.setState({cropSize:h},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(h),h}},n.saveContainerPosition=function(){if(n.containerRef){var e=n.containerRef.getBoundingClientRect();n.containerPosition={x:e.left,y:e.top}}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.saveContainerPosition(),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onScroll=function(e){n.currentDoc&&(e.preventDefault(),n.saveContainerPosition())},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),n.saveContainerPosition(),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureChange),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureChange=function(e){if(e.preventDefault(),!n.isTouching){var i=t.getMousePoint(e),a=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(a,i,{shouldUpdatePosition:!0}),n.props.onRotationChange){var r=n.gestureRotationStart+e.rotation;n.props.onRotationChange(r)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,i,a=e.x,r=e.y;n.dragStartPosition={x:a,y:r},n.dragStartCrop=$r({},n.props.crop),null===(i=(t=n.props).onInteractionStart)||void 0===i||i.call(t)},n.onDrag=function(e){var t=e.x,i=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame(function(){if(n.state.cropSize&&void 0!==t&&void 0!==i){var e=t-n.dragStartPosition.x,a=i-n.dragStartPosition.y,r={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+a},o=n.props.restrictPosition?ko(r,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):r;n.props.onCropChange(o)}}))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var i=t.getMousePoint(e),a=jo(e).pixelY,r=n.props.zoom-a*n.props.zoomSpeed/200;n.setNewZoom(r,i,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout(function(){return n.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},n.getPointOnContainer=function(e,t){var i=e.x,a=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(i-t.x),y:n.containerRect.height/2-(a-t.y)}},n.getPointOnMedia=function(e){var t=e.x,i=e.y,a=n.props,r=a.crop,o=a.zoom;return{x:(t+r.x)/o,y:(i+r.y)/o}},n.setNewZoom=function(e,t,i){var a=(void 0===i?{}:i).shouldUpdatePosition,r=void 0===a||a;if(n.state.cropSize&&n.props.onZoomChange){var o=Ao(e,n.props.minZoom,n.props.maxZoom);if(r){var s=n.getPointOnContainer(t,n.containerPosition),l=n.getPointOnMedia(s),c={x:l.x*o-s.x,y:l.y*o-s.y},u=n.props.restrictPosition?ko(c,n.mediaSize,n.state.cropSize,o,n.props.rotation):c;n.props.onCropChange(u)}n.props.onZoomChange(o)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,i,a,r,o){void 0===r&&(r=0),void 0===o&&(o=!0);var s=o?Mo:Oo,l=zo(t.width,t.height,r),c=zo(t.naturalWidth,t.naturalHeight,r),u={x:s(100,((l.width-n.width/a)/2-e.x/a)/l.width*100),y:s(100,((l.height-n.height/a)/2-e.y/a)/l.height*100),width:s(100,n.width/l.width*100/a),height:s(100,n.height/l.height*100/a)},d=Math.round(s(c.width,u.width*c.width/100)),p=Math.round(s(c.height,u.height*c.height/100)),h=c.width>=c.height*i?{width:Math.round(p*i),height:p}:{width:d,height:Math.round(d/i)};return{croppedAreaPercentages:u,croppedAreaPixels:$r($r({},h),{x:Math.round(s(c.width-h.width,u.x*c.width/100)),y:Math.round(s(c.height-h.height,u.y*c.height/100))})}}(n.props.restrictPosition?ko(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,i=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,i),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,i)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,i=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,i)}},n.recomputeCropPosition=function(){var e,t;if(n.state.cropSize){var i=n.props.crop;if(n.isInitialized&&(null===(e=n.previousCropSize)||void 0===e?void 0:e.width)&&(null===(t=n.previousCropSize)||void 0===t?void 0:t.height))if(Math.abs(n.previousCropSize.width-n.state.cropSize.width)>1e-6||Math.abs(n.previousCropSize.height-n.state.cropSize.height)>1e-6){var a=n.state.cropSize.width/n.previousCropSize.width,r=n.state.cropSize.height/n.previousCropSize.height;i={x:n.props.crop.x*a,y:n.props.crop.y*r}}var o=n.props.restrictPosition?ko(i,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):i;n.previousCropSize=n.state.cropSize,n.props.onCropChange(o),n.emitCropData()}},n.onKeyDown=function(e){var t,i,a=n.props,r=a.crop,o=a.onCropChange,s=a.keyboardStep,l=a.zoom,c=a.rotation,u=s;if(n.state.cropSize){e.shiftKey&&(u*=.2);var d=$r({},r);switch(e.key){case"ArrowUp":d.y-=u,e.preventDefault();break;case"ArrowDown":d.y+=u,e.preventDefault();break;case"ArrowLeft":d.x-=u,e.preventDefault();break;case"ArrowRight":d.x+=u,e.preventDefault();break;default:return}n.props.restrictPosition&&(d=ko(d,n.mediaSize,n.state.cropSize,l,c)),e.repeat||null===(i=(t=n.props).onInteractionStart)||void 0===i||i.call(t),o(d)}},n.onKeyUp=function(e){var t,i;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}n.emitCropData(),null===(i=(t=n.props).onInteractionEnd)||void 0===i||i.call(t)},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Vr(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,i,a,r,o,s,l,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(i=e.cropSize)||void 0===i?void 0:i.width)!==(null===(a=this.props.cropSize)||void 0===a?void 0:a.width)?this.computeSizes():(null===(r=e.crop)||void 0===r?void 0:r.x)===(null===(o=this.props.crop)||void 0===o?void 0:o.x)&&(null===(s=e.crop)||void 0===s?void 0:s.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load());var u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.getObjectFit=function(){var e,t,n,i;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var a=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(n=this.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(i=this.videoRef.current)||void 0===i?void 0:i.videoHeight)||0)<a?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),i=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Co(n,i),this.lastPinchRotation=No(n,i),this.onDragStart(Do(n,i))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var i=t.getTouchPoint(e.touches[0]),a=t.getTouchPoint(e.touches[1]),r=Do(i,a);this.onDrag(r),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=Co(i,a),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,r,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var o=No(i,a),s=n.props.rotation+(o-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(s),n.lastPinchRotation=o})}},t.prototype.render=function(){var e,t=this,n=this.props,i=n.image,a=n.video,r=n.mediaProps,o=n.cropperProps,s=n.transform,l=n.crop,c=l.x,u=l.y,d=n.rotation,p=n.zoom,h=n.cropShape,f=n.showGrid,m=n.roundCropAreaPixels,g=n.style,v=g.containerStyle,b=g.cropAreaStyle,x=g.mediaStyle,y=n.classes,_=y.containerClassName,w=y.cropAreaClassName,j=y.mediaClassName,k=null!==(e=this.state.mediaObjectFit)&&void 0!==e?e:this.getObjectFit();return B.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef=e},"data-testid":"container",style:v,className:Eo("reactEasyCrop_Container",_)},i?B.createElement("img",$r({alt:"",className:Eo("reactEasyCrop_Image","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical",j)},r,{src:i,ref:this.imageRef,style:$r($r({},x),{transform:s||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(d,"deg) scale(").concat(p,")")}),onLoad:this.onMediaLoad})):a&&B.createElement("video",$r({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:Eo("reactEasyCrop_Video","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical",j)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:$r($r({},x),{transform:s||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(d,"deg) scale(").concat(p,")")}),controls:!1}),(Array.isArray(a)?a:[{src:a}]).map(function(e){return B.createElement("source",$r({key:e.src},e))})),this.state.cropSize&&B.createElement("div",$r({ref:this.cropperRef,style:$r($r({},b),{width:m?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:m?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:Eo("reactEasyCrop_CropArea","round"===h&&"reactEasyCrop_CropAreaRound",f&&"reactEasyCrop_CropAreaGrid",w)},o)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:1},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(B.Component);const Ro=100;var Io=t.forwardRef(function(n,i){const{image:a,id:r,className:o,cropShape:s="rect",aspectWidth:l,aspectHeight:c,cropSize:u,maxOutputSize:d,showZoom:p,showRotation:h,controlsPosition:f="overlay",minZoom:m,maxZoom:g,zoomStep:v,disabled:b,zoomLabel:x,rotateLabel:y}=n,[_]=H.useId(1,"bee-image-cropper-"),w=null!=r?r:_,j="bee-image-cropper",k=b?`${j}__control-group--disabled`:"",[S,C]=t.useState({x:0,y:0}),[N,M]=t.useState(1),[O,D]=t.useState(0),[z,A]=t.useState(null),E=null!=d?d:1024,P=null!=f?f:"overlay",R=null!=v?v:.1;function I(e){return e*Math.PI/180}return t.useImperativeHandle(i,()=>({getCroppedFile:()=>new Promise((e,t)=>{var n;z?(n=a,new Promise((e,t)=>{const i=new Image;i.onload=()=>e(i),i.onerror=()=>t(new Error("Failed to load image")),i.crossOrigin="anonymous",i.src=n})).then(n=>{let i=n;0!==O&&(i=function(e,t){const n=function(e,t,n){const i=I(n),a=Math.abs(Math.cos(i)),r=Math.abs(Math.sin(i));return{width:e*a+t*r,height:e*r+t*a}}(e.width,e.height,t),i=document.createElement("canvas");i.width=n.width,i.height=n.height;const a=i.getContext("2d");if(!a)return console.warn("[Line 215] BeeImageCropper > createRotatedImageCanvas(): Could not get canvas 2d context - returning empty canvas"),i;return a.translate(i.width/2,i.height/2),a.rotate(I(t)),a.drawImage(e,-e.width/2,-e.height/2),i}(n,O));const a=function(e){const t=e.width,n=e.height,i=Math.max(t,n);if(i>E){const e=E/i;return{width:Math.round(t*e),height:Math.round(n*e)}}return{width:t,height:n}}(z),r=document.createElement("canvas");r.width=a.width,r.height=a.height;const o=r.getContext("2d");o?(o.drawImage(i,z.x,z.y,z.width,z.height,0,0,a.width,a.height),r.toBlob(n=>{if(!n)return void t(new Error("Failed to create blob"));const i=new File([n],"cropped.png",{type:"image/png"});e(i)},"image/png")):t(new Error("Could not get canvas context"))}).catch(e=>{t(e)}):t(new Error("No cropped area pixels"))})}),[a,z,O,E]),e.jsxs("div",{id:w,className:`${j} ${null!=o?o:""}`,children:[e.jsxs("div",{className:`${j}__crop-container`,role:"application","aria-label":"Bildausschnitt anpassen - Ziehen zum Verschieben, Scrollen zum Zoomen",children:[e.jsx(Po,Object.assign({image:a,crop:S,zoom:N,rotation:O,aspect:l&&c?l/c:1,cropShape:null!=s?s:"rect"},null!=u?{cropSize:u}:{},{minZoom:null!=m?m:1,maxZoom:null!=g?g:3,zoomSpeed:.1,mediaProps:{crossOrigin:"anonymous"},onCropChange:C,onZoomChange:M,onCropComplete:e=>{A(e)}})),"overlay"===P&&(p||h)&&e.jsxs("div",{className:`${j}__overlay-controls`,children:[p&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${j}__overlay-btn`,type:"button","aria-label":"Zoom verkleinern",disabled:null!=b&&b,onClick:()=>{const e=null!=m?m:1;M(Math.max(N-R,e))},children:e.jsx("i",{className:"pi pi-minus","aria-hidden":"true"})}),e.jsx("button",{className:`${j}__overlay-btn`,type:"button","aria-label":"Zoom vergrößern",disabled:null!=b&&b,onClick:()=>{const e=null!=g?g:3;M(Math.min(N+R,e))},children:e.jsx("i",{className:"pi pi-plus","aria-hidden":"true"})})]}),h&&e.jsxs(e.Fragment,{children:[e.jsx("button",{className:`${j}__overlay-btn ${j}__overlay-btn--flipped`,type:"button","aria-label":"90° gegen Uhrzeigersinn drehen",disabled:null!=b&&b,onClick:()=>{D(O-90)},children:e.jsx("i",{className:"pi pi-refresh","aria-hidden":"true"})}),e.jsx("button",{className:`${j}__overlay-btn`,type:"button","aria-label":"90° im Uhrzeigersinn drehen",disabled:null!=b&&b,onClick:()=>{D(O+90)},children:e.jsx("i",{className:"pi pi-refresh","aria-hidden":"true"})})]})]})]}),"external"===P&&e.jsxs("div",{className:`${j}__controls`,role:"toolbar","aria-label":"Bildbearbeitungsoptionen",children:[p&&e.jsxs("div",{className:`${j}__control-group ${j}__control-group--zoom ${k}`,role:"group","aria-labelledby":`${w}-zoom-label`,children:[e.jsx("span",{id:`${w}-zoom-label`,className:`${j}__control-group__label`,children:null!=x?x:"Zoom"}),e.jsx(Xr,{value:N,type:"primary",disabled:null!=b&&b,min:null!=m?m:1,max:null!=g?g:3,step:R,onChange:e=>{null!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.value)&&M(Number(e.value))}}),e.jsx(Pr,{value:N*Ro,disabled:null!=b&&b,min:(null!=m?m:1)*Ro,max:(null!=g?g:3)*Ro,maxFractionDigits:0,readOnly:!1,required:!1,onChange:e=>{null!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.value)&&M(e.value/Ro)}})]}),h&&e.jsxs("div",{className:`${j}__control-group ${j}__control-group--rotation ${k}`,role:"group","aria-labelledby":`${w}-rotation-label`,children:[e.jsx("span",{id:`${w}-rotation-label`,className:`${j}__control-group__label`,children:null!=y?y:"Rotation"}),e.jsx(Y,{className:`${j}__rotation-btn ${j}__rotation-btn--flipped`,iconClass:"pi pi-refresh",type:"lightPrimary",rounded:!0,disabled:b,onClick:()=>{D(O-90)}}),e.jsx(Y,{className:`${j}__rotation-btn`,iconClass:"pi pi-refresh",type:"lightPrimary",rounded:!0,disabled:b,onClick:()=>{D(O+90)}})]})]})]})});function To({id:n,className:i,label:a,value:r,disabled:o,readOnly:s,deleteIcon:l,required:c,formstate:u="neutral",type:d="primary",onSearch:p}){const h=null!=n?n:H.useId(1,"bee-searchbar-")[0],f=t.useRef(null),[m,g]=t.useState(null!=r?r:""),v="bee-search-bar flex"+(i?" "+i:""),b=null!=l?l:"pi pi-times-circle";t.useEffect(()=>{g(null!=r?r:"")},[r]);const x=t.useCallback(Br.debounce(()=>{(null==f?void 0:f.current)&&f.current.click()},1e3),[]),y=e=>{g(e),p&&p(e)},_=()=>{x&&x.cancel()},w=()=>{_(),o||y(m)};return e.jsxs("div",{id:h,className:v,onKeyDown:e=>{"Enter"===e.key&&w()},children:[e.jsx("div",{className:"w-full",children:e.jsx(Dr,{value:null!==m?m:"",disabled:null!=o&&o,readOnly:null!=s&&s,required:null!=c&&c,formstate:u,halfRounded:!0,label:a,onChange:e=>{return t=e.target.value,g(t),void x();var t}})}),s?null:e.jsxs("div",{className:"bee-search-bar-button-col",children:[e.jsx(Y,{iconClass:"pi pi-search",rounded:!1,halfRounded:!0,disabled:null!=o&&o,type:d,isLoading:!1,onClick:()=>w()}),e.jsx("button",{ref:f,type:"button",onClick:()=>w(),style:{display:"none"}})]}),m&&""!==m?e.jsx("div",{className:"search-cancel",children:e.jsx(Y,{iconClass:b,rounded:!0,disabled:null!=o&&o,type:"lightPrimary",isLoading:!1,onClick:e=>{g(""),y(""),_(),e.stopPropagation()}})}):null]})}function Lo({id:t,className:n,images:i,showAddOption:a,activateHover:r,readOnly:o,onClick:s,onRemove:l,onAdd:c}){const u=null!=t?t:H.useId(1,"bee-flat-img-gallery-")[0],d="grid bee-flat-img-gallery"+(n?" "+n:"");const p=t=>{var n,i,a,u,d,p,h,f;const m=null!==(n=null==t?void 0:t.id)&&void 0!==n?n:"-1";return e.jsx("div",{className:"bee-flat-img-gallery-entry col-4 sm:col-3 md:col-2 lg:col-2 xl:col-1",children:e.jsx(co,{id:m,readOnly:null!=o&&o,activateHover:null!=r&&r,imageUrl:null!==(i=null==t?void 0:t.url)&&void 0!==i?i:"",imageKey:null!==(a=null==t?void 0:t.key)&&void 0!==a?a:"",imageAlt:null!==(u=null==t?void 0:t.alt)&&void 0!==u?u:"",imageTitle:null!==(d=null==t?void 0:t.title)&&void 0!==d?d:"",imageCopyright:null!==(p=null==t?void 0:t.copyright)&&void 0!==p?p:"",isImageSecured:null!==(h=null==t?void 0:t.secured)&&void 0!==h&&h,showPlaceHolder:null!==(f=null==t?void 0:t.showPlaceholder)&&void 0!==f&&f,onClick:()=>function(e){s&&s(e)}(m),onRemove:()=>function(e){l&&l(e)}(m),onAdd:e=>function(e){c&&c(e)}(e)})},"img_"+m)};return e.jsx("div",{id:u,className:d,children:(e=>{if(e){let t=a?[p(null)]:[];for(let n=0;n<e.length;n++){const i=e[n];t.push(p(null!=i?i:null))}return t}})(i)})}const Fo=t.forwardRef(({id:n,className:i,type:a="primary",images:r,activeIndex:o=0},s)=>{const l=null!=n?n:H.useId(1,"bee-img-detail-slider-")[0],[c,u]=t.useState(o);let d=t.useRef(null);t.useImperativeHandle(s,()=>({openGallery:f,showImage:m}));const p="primary"===a?"bee-img-detail-slider-primary":"secondary"===a?"bee-img-detail-slider-secondary":"bee-img-detail-slider-primary",h="card bee-img-slider bee-img-detail-slider"+(i?" "+i:"");function f(){d&&d.current&&d.current.show()}function m(e){u(e)}return e.jsx("div",{id:l,className:h,children:e.jsx(E.Galleria,{ref:d,value:r,className:p,activeIndex:c,onItemChange:e=>u(e.index),numVisible:7,circular:!0,fullScreen:!0,showItemNavigators:!0,showThumbnails:!1,item:t=>e.jsx(Yr,{url:t&&t.url?t.url:"",alt:t?t.alt:void 0,title:void 0,copyright:t&&t.copyright?t.copyright:void 0,secured:!(!t||!t.secured)&&t.secured,showPlaceholder:!(!t||!t.showPlaceholder)&&t.showPlaceholder},t&&t.access?t.access:""),thumbnail:t=>e.jsx(Yr,{url:t&&t.url?t.url:"",alt:t?t.alt:void 0,title:t&&t.title?t.title:void 0,copyright:t&&t.copyright?t.copyright:void 0,secured:!(!t||!t.secured)&&t.secured,showPlaceholder:!(!t||!t.showPlaceholder)&&t.showPlaceholder},t&&t.access?t.access:""),caption:t=>t.title||t.copyright?e.jsxs("div",{children:[t.title?e.jsx("div",{className:"bee-img-slider-title",children:e.jsx(Ar,{value:t.title,headlineType:"h3",type:"primary"})}):null,t.copyright?e.jsx("div",{className:"bee-img-slider-copyright",children:e.jsx(Er,{value:"© "+t.copyright,size:"xSmall",type:"secondary"})}):null]}):null})})});var Bo,Wo={exports:{}},qo={exports:{}},Vo={};var $o,Ho,Uo,Yo,Ko,Zo,Go,Xo,Jo,Qo,es,ts,ns,is,as,rs={};
|
|
41
|
+
*/,isEventSupported_1=function(i,r){if(!t.canUseDOM||r&&!("addEventListener"in document))return!1;var n="on"+i,a=n in document;if(!a){var s=document.createElement("div");s.setAttribute(n,"return;"),a="function"==typeof s[n]}return!a&&e&&"wheel"===i&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}}function requireNormalizeWheel$1(){if(hasRequiredNormalizeWheel$1)return normalizeWheel_1;hasRequiredNormalizeWheel$1=1;var e=requireUserAgent_DEPRECATED(),t=requireIsEventSupported();function i(e){var t=0,i=0,r=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),r=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||n)&&e.deltaMode&&(1==e.deltaMode?(r*=40,n*=40):(r*=800,n*=800)),r&&!t&&(t=r<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:r,pixelY:n}}return i.getEventType=function(){return e.firefox()?"DOMMouseScroll":t("wheel")?"wheel":"mousewheel"},normalizeWheel_1=i}function requireNormalizeWheel(){return hasRequiredNormalizeWheel?normalizeWheel$1:(hasRequiredNormalizeWheel=1,normalizeWheel$1=requireNormalizeWheel$1())}var normalizeWheelExports=requireNormalizeWheel(),normalizeWheel=getDefaultExportFromCjs(normalizeWheelExports);function getCropSize(e,t,i,r,n,a){void 0===a&&(a=0);var s=rotateSize(e,t,a),o=s.width,l=s.height,c=Math.min(o,i),h=Math.min(l,r);return c>h*n?{width:h*n,height:h}:{width:c,height:c/n}}function getMediaZoom(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function restrictPosition(e,t,i,r,n){void 0===n&&(n=0);var a=rotateSize(t.width,t.height,n),s=a.width,o=a.height;return{x:restrictPositionCoord(e.x,s,i.width,r),y:restrictPositionCoord(e.y,o,i.height,r)}}function restrictPositionCoord(e,t,i,r){var n=t*r/2-i/2;return clamp(e,-n,n)}function getDistanceBetweenPoints(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function getRotationBetweenPoints(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function computeCroppedArea(e,t,i,r,n,a,s){void 0===a&&(a=0),void 0===s&&(s=!0);var o=s?limitArea:noOp,l=rotateSize(t.width,t.height,a),c=rotateSize(t.naturalWidth,t.naturalHeight,a),h={x:o(100,((l.width-i.width/n)/2-e.x/n)/l.width*100),y:o(100,((l.height-i.height/n)/2-e.y/n)/l.height*100),width:o(100,i.width/l.width*100/n),height:o(100,i.height/l.height*100/n)},p=Math.round(o(c.width,h.width*c.width/100)),u=Math.round(o(c.height,h.height*c.height/100)),d=c.width>=c.height*r?{width:Math.round(u*r),height:u}:{width:p,height:Math.round(p/r)};return{croppedAreaPercentages:h,croppedAreaPixels:__assign(__assign({},d),{x:Math.round(o(c.width-d.width,h.x*c.width/100)),y:Math.round(o(c.height-d.height,h.y*c.height/100))})}}function limitArea(e,t){return Math.min(e,Math.max(0,t))}function noOp(e,t){return t}function getInitialCropFromCroppedAreaPercentages(e,t,i,r,n,a){var s=rotateSize(t.width,t.height,i),o=clamp(r.width/s.width*(100/e.width),n,a);return{crop:{x:o*s.width/2-r.width/2-s.width*o*(e.x/100),y:o*s.height/2-r.height/2-s.height*o*(e.y/100)},zoom:o}}function getZoomFromCroppedAreaPixels(e,t,i){var r=getMediaZoom(t);return i.height>i.width?i.height/(e.height*r):i.width/(e.width*r)}function getInitialCropFromCroppedAreaPixels(e,t,i,r,n,a){void 0===i&&(i=0);var s=rotateSize(t.naturalWidth,t.naturalHeight,i),o=clamp(getZoomFromCroppedAreaPixels(e,t,r),n,a),l=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((s.width-e.width)/2-e.x)*l,y:((s.height-e.height)/2-e.y)*l},zoom:o}}function getCenter(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function getRadianAngle(e){return e*Math.PI/180}function rotateSize(e,t,i){var r=getRadianAngle(i);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function clamp(e,t,i){return Math.min(Math.max(e,t),i)}function classNames(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return"string"==typeof e&&e.length>0}).join(" ").trim()}var css_248z=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",MIN_ZOOM=1,MAX_ZOOM=3,KEYBOARD_STEP=1,Cropper=function(e){function t(){var i=null!==e&&e.apply(this,arguments)||this;return i.cropperRef=React__namespace.createRef(),i.imageRef=React__namespace.createRef(),i.videoRef=React__namespace.createRef(),i.containerPosition={x:0,y:0},i.containerRef=null,i.styleRef=null,i.containerRect=null,i.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},i.dragStartPosition={x:0,y:0},i.dragStartCrop={x:0,y:0},i.gestureZoomStart=0,i.gestureRotationStart=0,i.isTouching=!1,i.lastPinchDistance=0,i.lastPinchRotation=0,i.rafDragTimeout=null,i.rafPinchTimeout=null,i.wheelTimer=null,i.currentDoc="undefined"!=typeof document?document:null,i.currentWindow="undefined"!=typeof window?window:null,i.resizeObserver=null,i.previousCropSize=null,i.isInitialized=!1,i.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},i.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&i.containerRef){var e=!0;i.resizeObserver=new window.ResizeObserver(function(t){e?e=!1:i.computeSizes()}),i.resizeObserver.observe(i.containerRef)}},i.preventZoomSafari=function(e){return e.preventDefault()},i.cleanEvents=function(){i.currentDoc&&(i.currentDoc.removeEventListener("mousemove",i.onMouseMove),i.currentDoc.removeEventListener("mouseup",i.onDragStopped),i.currentDoc.removeEventListener("touchmove",i.onTouchMove),i.currentDoc.removeEventListener("touchend",i.onDragStopped),i.currentDoc.removeEventListener("gesturechange",i.onGestureChange),i.currentDoc.removeEventListener("gestureend",i.onGestureEnd),i.currentDoc.removeEventListener("scroll",i.onScroll))},i.clearScrollEvent=function(){i.containerRef&&i.containerRef.removeEventListener("wheel",i.onWheel),i.wheelTimer&&clearTimeout(i.wheelTimer)},i.onMediaLoad=function(){var e=i.computeSizes();e&&(i.previousCropSize=e,i.emitCropData(),i.setInitialCrop(e),i.isInitialized=!0),i.props.onMediaLoaded&&i.props.onMediaLoaded(i.mediaSize)},i.setInitialCrop=function(e){if(i.props.initialCroppedAreaPercentages){var t=getInitialCropFromCroppedAreaPercentages(i.props.initialCroppedAreaPercentages,i.mediaSize,i.props.rotation,e,i.props.minZoom,i.props.maxZoom),r=t.crop,n=t.zoom;i.props.onCropChange(r),i.props.onZoomChange&&i.props.onZoomChange(n)}else if(i.props.initialCroppedAreaPixels){var a=getInitialCropFromCroppedAreaPixels(i.props.initialCroppedAreaPixels,i.mediaSize,i.props.rotation,e,i.props.minZoom,i.props.maxZoom);r=a.crop,n=a.zoom;i.props.onCropChange(r),i.props.onZoomChange&&i.props.onZoomChange(n)}},i.computeSizes=function(){var e,t,r,n,a,s,o=i.imageRef.current||i.videoRef.current;if(o&&i.containerRef){i.containerRect=i.containerRef.getBoundingClientRect(),i.saveContainerPosition();var l=i.containerRect.width/i.containerRect.height,c=(null===(e=i.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=i.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,h=(null===(r=i.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(n=i.videoRef.current)||void 0===n?void 0:n.videoHeight)||0,p=c/h,u=void 0;if(o.offsetWidth<c||o.offsetHeight<h)switch(i.state.mediaObjectFit){default:case"contain":u=l>p?{width:i.containerRect.height*p,height:i.containerRect.height}:{width:i.containerRect.width,height:i.containerRect.width/p};break;case"horizontal-cover":u={width:i.containerRect.width,height:i.containerRect.width/p};break;case"vertical-cover":u={width:i.containerRect.height*p,height:i.containerRect.height}}else u={width:o.offsetWidth,height:o.offsetHeight};i.mediaSize=__assign(__assign({},u),{naturalWidth:c,naturalHeight:h}),i.props.setMediaSize&&i.props.setMediaSize(i.mediaSize);var d=i.props.cropSize?i.props.cropSize:getCropSize(i.mediaSize.width,i.mediaSize.height,i.containerRect.width,i.containerRect.height,i.props.aspect,i.props.rotation);return(null===(a=i.state.cropSize)||void 0===a?void 0:a.height)===d.height&&(null===(s=i.state.cropSize)||void 0===s?void 0:s.width)===d.width||i.props.onCropSizeChange&&i.props.onCropSizeChange(d),i.setState({cropSize:d},i.recomputeCropPosition),i.props.setCropSize&&i.props.setCropSize(d),d}},i.saveContainerPosition=function(){if(i.containerRef){var e=i.containerRef.getBoundingClientRect();i.containerPosition={x:e.left,y:e.top}}},i.onMouseDown=function(e){i.currentDoc&&(e.preventDefault(),i.currentDoc.addEventListener("mousemove",i.onMouseMove),i.currentDoc.addEventListener("mouseup",i.onDragStopped),i.saveContainerPosition(),i.onDragStart(t.getMousePoint(e)))},i.onMouseMove=function(e){return i.onDrag(t.getMousePoint(e))},i.onScroll=function(e){i.currentDoc&&(e.preventDefault(),i.saveContainerPosition())},i.onTouchStart=function(e){i.currentDoc&&(i.isTouching=!0,i.props.onTouchRequest&&!i.props.onTouchRequest(e)||(i.currentDoc.addEventListener("touchmove",i.onTouchMove,{passive:!1}),i.currentDoc.addEventListener("touchend",i.onDragStopped),i.saveContainerPosition(),2===e.touches.length?i.onPinchStart(e):1===e.touches.length&&i.onDragStart(t.getTouchPoint(e.touches[0]))))},i.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?i.onPinchMove(e):1===e.touches.length&&i.onDrag(t.getTouchPoint(e.touches[0]))},i.onGestureStart=function(e){i.currentDoc&&(e.preventDefault(),i.currentDoc.addEventListener("gesturechange",i.onGestureChange),i.currentDoc.addEventListener("gestureend",i.onGestureEnd),i.gestureZoomStart=i.props.zoom,i.gestureRotationStart=i.props.rotation)},i.onGestureChange=function(e){if(e.preventDefault(),!i.isTouching){var r=t.getMousePoint(e),n=i.gestureZoomStart-1+e.scale;if(i.setNewZoom(n,r,{shouldUpdatePosition:!0}),i.props.onRotationChange){var a=i.gestureRotationStart+e.rotation;i.props.onRotationChange(a)}}},i.onGestureEnd=function(e){i.cleanEvents()},i.onDragStart=function(e){var t,r,n=e.x,a=e.y;i.dragStartPosition={x:n,y:a},i.dragStartCrop=__assign({},i.props.crop),null===(r=(t=i.props).onInteractionStart)||void 0===r||r.call(t)},i.onDrag=function(e){var t=e.x,r=e.y;i.currentWindow&&(i.rafDragTimeout&&i.currentWindow.cancelAnimationFrame(i.rafDragTimeout),i.rafDragTimeout=i.currentWindow.requestAnimationFrame(function(){if(i.state.cropSize&&void 0!==t&&void 0!==r){var e=t-i.dragStartPosition.x,n=r-i.dragStartPosition.y,a={x:i.dragStartCrop.x+e,y:i.dragStartCrop.y+n},s=i.props.restrictPosition?restrictPosition(a,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):a;i.props.onCropChange(s)}}))},i.onDragStopped=function(){var e,t;i.isTouching=!1,i.cleanEvents(),i.emitCropData(),null===(t=(e=i.props).onInteractionEnd)||void 0===t||t.call(e)},i.onWheel=function(e){if(i.currentWindow&&(!i.props.onWheelRequest||i.props.onWheelRequest(e))){e.preventDefault();var r=t.getMousePoint(e),n=normalizeWheel(e).pixelY,a=i.props.zoom-n*i.props.zoomSpeed/200;i.setNewZoom(a,r,{shouldUpdatePosition:!0}),i.state.hasWheelJustStarted||i.setState({hasWheelJustStarted:!0},function(){var e,t;return null===(t=(e=i.props).onInteractionStart)||void 0===t?void 0:t.call(e)}),i.wheelTimer&&clearTimeout(i.wheelTimer),i.wheelTimer=i.currentWindow.setTimeout(function(){return i.setState({hasWheelJustStarted:!1},function(){var e,t;return null===(t=(e=i.props).onInteractionEnd)||void 0===t?void 0:t.call(e)})},250)}},i.getPointOnContainer=function(e,t){var r=e.x,n=e.y;if(!i.containerRect)throw new Error("The Cropper is not mounted");return{x:i.containerRect.width/2-(r-t.x),y:i.containerRect.height/2-(n-t.y)}},i.getPointOnMedia=function(e){var t=e.x,r=e.y,n=i.props,a=n.crop,s=n.zoom;return{x:(t+a.x)/s,y:(r+a.y)/s}},i.setNewZoom=function(e,t,r){var n=(void 0===r?{}:r).shouldUpdatePosition,a=void 0===n||n;if(i.state.cropSize&&i.props.onZoomChange){var s=clamp(e,i.props.minZoom,i.props.maxZoom);if(a){var o=i.getPointOnContainer(t,i.containerPosition),l=i.getPointOnMedia(o),c={x:l.x*s-o.x,y:l.y*s-o.y},h=i.props.restrictPosition?restrictPosition(c,i.mediaSize,i.state.cropSize,s,i.props.rotation):c;i.props.onCropChange(h)}i.props.onZoomChange(s)}},i.getCropData=function(){return i.state.cropSize?computeCroppedArea(i.props.restrictPosition?restrictPosition(i.props.crop,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):i.props.crop,i.mediaSize,i.state.cropSize,i.getAspect(),i.props.zoom,i.props.rotation,i.props.restrictPosition):null},i.emitCropData=function(){var e=i.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;i.props.onCropComplete&&i.props.onCropComplete(t,r),i.props.onCropAreaChange&&i.props.onCropAreaChange(t,r)}},i.emitCropAreaChange=function(){var e=i.getCropData();if(e){var t=e.croppedAreaPercentages,r=e.croppedAreaPixels;i.props.onCropAreaChange&&i.props.onCropAreaChange(t,r)}},i.recomputeCropPosition=function(){var e,t;if(i.state.cropSize){var r=i.props.crop;if(i.isInitialized&&(null===(e=i.previousCropSize)||void 0===e?void 0:e.width)&&(null===(t=i.previousCropSize)||void 0===t?void 0:t.height))if(Math.abs(i.previousCropSize.width-i.state.cropSize.width)>1e-6||Math.abs(i.previousCropSize.height-i.state.cropSize.height)>1e-6){var n=i.state.cropSize.width/i.previousCropSize.width,a=i.state.cropSize.height/i.previousCropSize.height;r={x:i.props.crop.x*n,y:i.props.crop.y*a}}var s=i.props.restrictPosition?restrictPosition(r,i.mediaSize,i.state.cropSize,i.props.zoom,i.props.rotation):r;i.previousCropSize=i.state.cropSize,i.props.onCropChange(s),i.emitCropData()}},i.onKeyDown=function(e){var t,r,n=i.props,a=n.crop,s=n.onCropChange,o=n.keyboardStep,l=n.zoom,c=n.rotation,h=o;if(i.state.cropSize){e.shiftKey&&(h*=.2);var p=__assign({},a);switch(e.key){case"ArrowUp":p.y-=h,e.preventDefault();break;case"ArrowDown":p.y+=h,e.preventDefault();break;case"ArrowLeft":p.x-=h,e.preventDefault();break;case"ArrowRight":p.x+=h,e.preventDefault();break;default:return}i.props.restrictPosition&&(p=restrictPosition(p,i.mediaSize,i.state.cropSize,l,c)),e.repeat||null===(r=(t=i.props).onInteractionStart)||void 0===r||r.call(t),s(p)}},i.onKeyUp=function(e){var t,r;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":e.preventDefault();break;default:return}i.emitCropData(),null===(r=(t=i.props).onInteractionEnd)||void 0===r||r.call(t)},i}return __extends(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=css_248z,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,i,r,n,a,s,o,l,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(i=this.props.cropSize)||void 0===i?void 0:i.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.width)?this.computeSizes():(null===(a=e.crop)||void 0===a?void 0:a.x)===(null===(s=this.props.crop)||void 0===s?void 0:s.x)&&(null===(o=e.crop)||void 0===o?void 0:o.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load());var h=this.getObjectFit();h!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:h},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,i=e.aspect;return t?t.width/t.height:i},t.prototype.getObjectFit=function(){var e,t,i,r;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var n=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(i=this.imageRef.current)||void 0===i?void 0:i.naturalHeight)||(null===(r=this.videoRef.current)||void 0===r?void 0:r.videoHeight)||0)<n?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var i=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=getDistanceBetweenPoints(i,r),this.lastPinchRotation=getRotationBetweenPoints(i,r),this.onDragStart(getCenter(i,r))},t.prototype.onPinchMove=function(e){var i=this;if(this.currentDoc&&this.currentWindow){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]),a=getCenter(r,n);this.onDrag(a),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var e=getDistanceBetweenPoints(r,n),t=i.props.zoom*(e/i.lastPinchDistance);i.setNewZoom(t,a,{shouldUpdatePosition:!1}),i.lastPinchDistance=e;var s=getRotationBetweenPoints(r,n),o=i.props.rotation+(s-i.lastPinchRotation);i.props.onRotationChange&&i.props.onRotationChange(o),i.lastPinchRotation=s})}},t.prototype.render=function(){var e,t=this,i=this.props,r=i.image,n=i.video,a=i.mediaProps,s=i.cropperProps,o=i.transform,l=i.crop,c=l.x,h=l.y,p=i.rotation,u=i.zoom,d=i.cropShape,f=i.showGrid,m=i.roundCropAreaPixels,g=i.style,v=g.containerStyle,y=g.cropAreaStyle,b=g.mediaStyle,x=i.classes,_=x.containerClassName,S=x.cropAreaClassName,w=x.mediaClassName,C=null!==(e=this.state.mediaObjectFit)&&void 0!==e?e:this.getObjectFit();return React__namespace.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef=e},"data-testid":"container",style:v,className:classNames("reactEasyCrop_Container",_)},r?React__namespace.createElement("img",__assign({alt:"",className:classNames("reactEasyCrop_Image","contain"===C&&"reactEasyCrop_Contain","horizontal-cover"===C&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===C&&"reactEasyCrop_Cover_Vertical",w)},a,{src:r,ref:this.imageRef,style:__assign(__assign({},b),{transform:o||"translate(".concat(c,"px, ").concat(h,"px) rotate(").concat(p,"deg) scale(").concat(u,")")}),onLoad:this.onMediaLoad})):n&&React__namespace.createElement("video",__assign({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:classNames("reactEasyCrop_Video","contain"===C&&"reactEasyCrop_Contain","horizontal-cover"===C&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===C&&"reactEasyCrop_Cover_Vertical",w)},a,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:__assign(__assign({},b),{transform:o||"translate(".concat(c,"px, ").concat(h,"px) rotate(").concat(p,"deg) scale(").concat(u,")")}),controls:!1}),(Array.isArray(n)?n:[{src:n}]).map(function(e){return React__namespace.createElement("source",__assign({key:e.src},e))})),this.state.cropSize&&React__namespace.createElement("div",__assign({ref:this.cropperRef,style:__assign(__assign({},y),{width:m?Math.round(this.state.cropSize.width):this.state.cropSize.width,height:m?Math.round(this.state.cropSize.height):this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:classNames("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",f&&"reactEasyCrop_CropAreaGrid",S)},s)))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:MAX_ZOOM,minZoom:MIN_ZOOM,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:KEYBOARD_STEP},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(React__namespace.Component);const MIN_ZOOM_DEFAULT=1,MAX_ZOOM_DEFAULT=3,PERCENTAGE_MULTIPLIER=100,ZOOM_STEP=.1;var BeeImageCropper=React.forwardRef(function(e,t){const{image:i,id:r,className:n,cropShape:a="rect",aspectWidth:s,aspectHeight:o,cropSize:l,maxOutputSize:c,showZoom:h,showRotation:p,controlsPosition:u="overlay",minZoom:d,maxZoom:f,zoomStep:m,disabled:g,zoomLabel:v,rotateLabel:y}=e,[b]=libExports.useId(1,"bee-image-cropper-"),x=null!=r?r:b,_="bee-image-cropper",S=g?`${_}__control-group--disabled`:"",[w,C]=React.useState({x:0,y:0}),[P,E]=React.useState(1),[k,$]=React.useState(0),[A,T]=React.useState(null),D=null!=c?c:1024,M=null!=u?u:"overlay",I=null!=m?m:ZOOM_STEP;function F(e){return e*Math.PI/180}return React.useImperativeHandle(t,()=>({getCroppedFile:()=>new Promise((e,t)=>{var r;A?(r=i,new Promise((e,t)=>{const i=new Image;i.onload=()=>e(i),i.onerror=()=>t(new Error("Failed to load image")),i.crossOrigin="anonymous",i.src=r})).then(i=>{let r=i;0!==k&&(r=function(e,t){const i=function(e,t,i){const r=F(i),n=Math.abs(Math.cos(r)),a=Math.abs(Math.sin(r));return{width:e*n+t*a,height:e*a+t*n}}(e.width,e.height,t),r=document.createElement("canvas");r.width=i.width,r.height=i.height;const n=r.getContext("2d");if(!n)return console.warn("[Line 215] BeeImageCropper > createRotatedImageCanvas(): Could not get canvas 2d context - returning empty canvas"),r;return n.translate(r.width/2,r.height/2),n.rotate(F(t)),n.drawImage(e,-e.width/2,-e.height/2),r}(i,k));const n=function(e){const t=e.width,i=e.height,r=Math.max(t,i);if(r>D){const e=D/r;return{width:Math.round(t*e),height:Math.round(i*e)}}return{width:t,height:i}}(A),a=document.createElement("canvas");a.width=n.width,a.height=n.height;const s=a.getContext("2d");s?(s.drawImage(r,A.x,A.y,A.width,A.height,0,0,n.width,n.height),a.toBlob(i=>{if(!i)return void t(new Error("Failed to create blob"));const r=new File([i],"cropped.png",{type:"image/png"});e(r)},"image/png")):t(new Error("Could not get canvas context"))}).catch(e=>{t(e)}):t(new Error("No cropped area pixels"))})}),[i,A,k,D]),require$$0.jsxs("div",{id:x,className:`${_} ${null!=n?n:""}`,children:[require$$0.jsxs("div",{className:`${_}__crop-container`,role:"application","aria-label":"Bildausschnitt anpassen - Ziehen zum Verschieben, Scrollen zum Zoomen",children:[require$$0.jsx(Cropper,Object.assign({image:i,crop:w,zoom:P,rotation:k,aspect:s&&o?s/o:1,cropShape:null!=a?a:"rect"},null!=l?{cropSize:l}:{},{minZoom:null!=d?d:MIN_ZOOM_DEFAULT,maxZoom:null!=f?f:MAX_ZOOM_DEFAULT,zoomSpeed:.1,mediaProps:{crossOrigin:"anonymous"},onCropChange:C,onZoomChange:E,onCropComplete:e=>{T(e)}})),"overlay"===M&&(h||p)&&require$$0.jsxs("div",{className:`${_}__overlay-controls`,children:[h&&require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("button",{className:`${_}__overlay-btn`,type:"button","aria-label":"Zoom verkleinern",disabled:null!=g&&g,onClick:()=>{const e=null!=d?d:MIN_ZOOM_DEFAULT;E(Math.max(P-I,e))},children:require$$0.jsx("i",{className:"pi pi-minus","aria-hidden":"true"})}),require$$0.jsx("button",{className:`${_}__overlay-btn`,type:"button","aria-label":"Zoom vergrößern",disabled:null!=g&&g,onClick:()=>{const e=null!=f?f:MAX_ZOOM_DEFAULT;E(Math.min(P+I,e))},children:require$$0.jsx("i",{className:"pi pi-plus","aria-hidden":"true"})})]}),p&&require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsx("button",{className:`${_}__overlay-btn ${_}__overlay-btn--flipped`,type:"button","aria-label":"90° gegen Uhrzeigersinn drehen",disabled:null!=g&&g,onClick:()=>{$(k-90)},children:require$$0.jsx("i",{className:"pi pi-refresh","aria-hidden":"true"})}),require$$0.jsx("button",{className:`${_}__overlay-btn`,type:"button","aria-label":"90° im Uhrzeigersinn drehen",disabled:null!=g&&g,onClick:()=>{$(k+90)},children:require$$0.jsx("i",{className:"pi pi-refresh","aria-hidden":"true"})})]})]})]}),"external"===M&&require$$0.jsxs("div",{className:`${_}__controls`,role:"toolbar","aria-label":"Bildbearbeitungsoptionen",children:[h&&require$$0.jsxs("div",{className:`${_}__control-group ${_}__control-group--zoom ${S}`,role:"group","aria-labelledby":`${x}-zoom-label`,children:[require$$0.jsx("span",{id:`${x}-zoom-label`,className:`${_}__control-group__label`,children:null!=v?v:"Zoom"}),require$$0.jsx(BeeSlider,{value:P,type:"primary",disabled:null!=g&&g,min:null!=d?d:MIN_ZOOM_DEFAULT,max:null!=f?f:MAX_ZOOM_DEFAULT,step:I,onChange:e=>{null!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.value)&&E(Number(e.value))}}),require$$0.jsx(BeePercentageInput,{value:P*PERCENTAGE_MULTIPLIER,disabled:null!=g&&g,min:(null!=d?d:MIN_ZOOM_DEFAULT)*PERCENTAGE_MULTIPLIER,max:(null!=f?f:MAX_ZOOM_DEFAULT)*PERCENTAGE_MULTIPLIER,maxFractionDigits:0,readOnly:!1,required:!1,onChange:e=>{null!==(null==e?void 0:e.value)&&void 0!==(null==e?void 0:e.value)&&E(e.value/PERCENTAGE_MULTIPLIER)}})]}),p&&require$$0.jsxs("div",{className:`${_}__control-group ${_}__control-group--rotation ${S}`,role:"group","aria-labelledby":`${x}-rotation-label`,children:[require$$0.jsx("span",{id:`${x}-rotation-label`,className:`${_}__control-group__label`,children:null!=y?y:"Rotation"}),require$$0.jsx(BeeIconButton,{className:`${_}__rotation-btn ${_}__rotation-btn--flipped`,iconClass:"pi pi-refresh",type:"lightPrimary",rounded:!0,disabled:g,onClick:()=>{$(k-90)}}),require$$0.jsx(BeeIconButton,{className:`${_}__rotation-btn`,iconClass:"pi pi-refresh",type:"lightPrimary",rounded:!0,disabled:g,onClick:()=>{$(k+90)}})]})]})]})});function BeePanel({id:e,className:t,variant:i="default",header:r,children:n,collapsed:a,type:s="primary",showToggle:o=!0,showAdd:l=!1,addLabel:c,readOnly:h,disabled:p,isPmView:u=!1,onToggle:d,onAddAddendum:f}){const m="primary"===s?"bee-panel--primary":"secondary"===s?"bee-panel--secondary":"bee-panel--primary",g=p?" disabled":"",v="audit"===i?" bee-panel--audit":"";return require$$0.jsx(panel.Panel,Object.assign({id:e,headerTemplate:e=>{const t=e.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",n="audit"===i,a=n?`${e.className} justify-content-between`:`${e.className} mb-3`,s=n?`${e.titleClassName} pl-1 w-full`:`${e.titleClassName} pl-1`,d=l&&!h&&!u;return require$$0.jsxs("div",{className:a+" bee-panel__header",children:[require$$0.jsxs("div",{className:"bee-panel__header-row "+(n?"flex justify-content-start w-full":"flex"),children:[!n&&require$$0.jsx("div",{className:s+" bee-panel__title",children:r}),!h&&require$$0.jsx("div",{className:"bee-panel__toggle-wrapper "+(o?"":"bee-panel__toggle-invisible"),children:require$$0.jsx("button",{className:e.togglerClassName,onClick:e.onTogglerClick,children:require$$0.jsx("span",{className:t})})}),n&&require$$0.jsx("div",{className:s+" bee-panel__title",children:r})]}),n&&require$$0.jsx("div",{children:d&&require$$0.jsx(BeeMixButton,{label:null!=c?String(c):"",iconClass:"pi pi-plus",iconPos:"left",disabled:null!=p&&p,type:"lightPrimary",isLoading:!1,onClick:()=>null==f?void 0:f()})})]})},toggleable:!0,collapsed:a,className:"bee-panel"+m+g+v+(t?" "+t:"")},null!=d?{onToggle:d}:{},{children:require$$0.jsx(require$$0.Fragment,{children:n})}))}function BeeSearchBar({id:e,className:t,label:i,value:r,disabled:n,readOnly:a,deleteIcon:s,required:o,formstate:l="neutral",type:c="primary",onSearch:h}){const p=null!=e?e:libExports.useId(1,"bee-searchbar-")[0],u=React.useRef(null),[d,f]=React.useState(null!=r?r:""),m="bee-search-bar flex"+(t?" "+t:""),g=null!=s?s:"pi pi-times-circle";React.useEffect(()=>{f(null!=r?r:"")},[r]);const v=React.useCallback(lodashExports.debounce(()=>{(null==u?void 0:u.current)&&u.current.click()},1e3),[]),y=e=>{f(e),h&&h(e)},b=()=>{v&&v.cancel()},x=()=>{b(),n||y(d)};return require$$0.jsxs("div",{id:p,className:m,onKeyDown:e=>{"Enter"===e.key&&x()},children:[require$$0.jsx("div",{className:"w-full",children:require$$0.jsx(BeeTextInput,{value:null!==d?d:"",disabled:null!=n&&n,readOnly:null!=a&&a,required:null!=o&&o,formstate:l,halfRounded:!0,label:i,onChange:e=>{return t=e.target.value,f(t),void v();var t}})}),a?null:require$$0.jsxs("div",{className:"bee-search-bar-button-col",children:[require$$0.jsx(BeeIconButton,{iconClass:"pi pi-search",rounded:!1,halfRounded:!0,disabled:null!=n&&n,type:c,isLoading:!1,onClick:()=>x()}),require$$0.jsx("button",{ref:u,type:"button",onClick:()=>x(),style:{display:"none"}})]}),d&&""!==d?require$$0.jsx("div",{className:"search-cancel",children:require$$0.jsx(BeeIconButton,{iconClass:g,rounded:!0,disabled:null!=n&&n,type:"lightPrimary",isLoading:!1,onClick:e=>{f(""),y(""),b(),e.stopPropagation()}})}):null]})}function BeeSkeletonList({id:e,className:t,noSkeletons:i=3,width:r,height:n,showHover:a,showShade:s}){const o=null!=e?e:libExports.useId(1,"bee-skeleton-list-")[0],l=Math.max(0,Math.floor(i)),c="bee-skeleton-list grid grid-nogutter flex-wrap"+(t?" "+t:"");return require$$0.jsx("div",{id:o,className:c,children:Array.from({length:l}).map(()=>require$$0.jsx(BeeSkeleton,{width:r,height:n,showHover:a,showShade:s}))})}function BeeFlatImageGallery({id:e,className:t,images:i,showAddOption:r,activateHover:n,readOnly:a,onClick:s,onRemove:o,onAdd:l}){const c=null!=e?e:libExports.useId(1,"bee-flat-img-gallery-")[0],h="grid bee-flat-img-gallery"+(t?" "+t:"");const p=e=>{var t,i,r,c,h,p,u,d;const f=null!==(t=null==e?void 0:e.id)&&void 0!==t?t:"-1";return require$$0.jsx("div",{className:"bee-flat-img-gallery-entry col-4 sm:col-3 md:col-2 lg:col-2 xl:col-1",children:require$$0.jsx(BeeGalleryImage,{id:f,readOnly:null!=a&&a,activateHover:null!=n&&n,imageUrl:null!==(i=null==e?void 0:e.url)&&void 0!==i?i:"",imageKey:null!==(r=null==e?void 0:e.key)&&void 0!==r?r:"",imageAlt:null!==(c=null==e?void 0:e.alt)&&void 0!==c?c:"",imageTitle:null!==(h=null==e?void 0:e.title)&&void 0!==h?h:"",imageCopyright:null!==(p=null==e?void 0:e.copyright)&&void 0!==p?p:"",isImageSecured:null!==(u=null==e?void 0:e.secured)&&void 0!==u&&u,showPlaceHolder:null!==(d=null==e?void 0:e.showPlaceholder)&&void 0!==d&&d,onClick:()=>function(e){s&&s(e)}(f),onRemove:()=>function(e){o&&o(e)}(f),onAdd:e=>function(e){l&&l(e)}(e)})},"img_"+f)};return require$$0.jsx("div",{id:c,className:h,children:(e=>{if(e){let t=r?[p(null)]:[];for(let i=0;i<e.length;i++){const r=e[i];t.push(p(null!=r?r:null))}return t}})(i)})}function BeeNutzungsartMix({id:e,className:t,label:i,disabled:r,forceRerenderToggle:n,aOffice:a,aRetail:s,aWohnen:o,aLogistik:l,aSonstige:c,type:h="primary",formstate:p="neutral",statusLabel:u,readOnly:d,required:f,onChange:m}){const g=null!=e?e:libExports.useId(1,"bee-nutzungsart-mix-")[0],[v,y]=React.useState(a),[b,x]=React.useState(s),[_,S]=React.useState(o),[w,C]=React.useState(l),[P,E]=React.useState(c),[k,$]=React.useState(d),A="bee-nutzungsart-mix"+(t?" "+t:""),T="bee-nutzungsarten-table-title",D="bee-nutzungsarten-table-percentage";let M="";d&&(M=" bee-nutzungsart-mix-readOnly");const I="bee-nutzungsart-mix-input "+M+(r?" bee-nutzungsart-mix-disabled":"")+("valid"===p?" bee-nutzungsart-mix-valid":"error"===p?" bee-nutzungsart-mix-error":" bee-nutzungsart-mix-neutral"),F="medium";function j(){!r&&m&&m({anteilOffice:v,anteilRetail:b,anteilWohnen:_,anteilLogistik:w,anteilSonstige:P})}function R(e){y(e);z(100-(e+b+_+w+P))}function B(e){x(e);V(100-(v+e+_+w+P))}function O(e){S(e);H(100-(v+b+e+w+P))}function L(e){C(e);W(100-(v+b+_+e+P))}function q(e){E(e);N(100-(v+b+_+w+e))}function N(e){const t=v+e;y(t<0?0:t),t<0&&z(t)}function z(e){const t=b+e;x(t<0?0:t),t<0&&V(t)}function V(e){const t=_+e;S(t<0?0:t),t<0&&H(t)}function H(e){const t=w+e;C(t<0?0:t),t<0&&W(t)}function W(e){const t=P+e;E(t<0?0:t),t<0&&N(t)}return require$$0.jsxs("div",{className:A,children:[(n!==k&&($(n),y(a),x(s),S(o),C(l),E(c)),require$$0.jsx(require$$0.Fragment,{})),require$$0.jsxs("label",{className:"bee-nutzungsarten-mix-label",children:[i,f&&i?require$$0.jsx("span",{className:"bee-nutzungsart-mix-label-required",children:require$$0.jsx("span",{className:"bee-nutzungsart-mix-label-required-star",children:" *"})}):null]}),require$$0.jsx("div",{id:g,className:I,children:require$$0.jsx("table",{children:require$$0.jsxs("tbody",{children:[require$$0.jsxs("tr",{children:[require$$0.jsx("td",{className:T,children:require$$0.jsx("label",{children:"Office"})}),require$$0.jsx("td",{children:require$$0.jsx(BeeSlider,{type:h,disabled:!1,value:v,min:0,max:100,step:1,onChange:e=>R(Array.isArray(e.value)?e.value[0]:e.value),onSlideEnd:e=>{R(Array.isArray(e.value)?e.value[0]:e.value),j()}})}),require$$0.jsx("td",{className:D,children:require$$0.jsx("label",{children:v+"%"})})]}),require$$0.jsxs("tr",{children:[require$$0.jsx("td",{className:T,children:require$$0.jsx("label",{children:"Retail"})}),require$$0.jsx("td",{children:require$$0.jsx(BeeSlider,{type:h,disabled:!1,value:b,min:0,max:100,step:1,onChange:e=>B(Array.isArray(e.value)?e.value[0]:e.value),onSlideEnd:e=>{B(Array.isArray(e.value)?e.value[0]:e.value),j()}})}),require$$0.jsx("td",{className:D,children:require$$0.jsx("label",{children:b+"%"})})]}),require$$0.jsxs("tr",{children:[require$$0.jsx("td",{className:T,children:require$$0.jsx("label",{children:"Wohnen"})}),require$$0.jsx("td",{children:require$$0.jsx(BeeSlider,{type:h,disabled:!1,value:_,min:0,max:100,step:1,onChange:e=>O(Array.isArray(e.value)?e.value[0]:e.value),onSlideEnd:e=>{O(Array.isArray(e.value)?e.value[0]:e.value),j()}})}),require$$0.jsx("td",{className:D,children:require$$0.jsx("label",{children:_+"%"})})]}),require$$0.jsxs("tr",{children:[require$$0.jsx("td",{className:T,children:require$$0.jsx("label",{children:"Logistik"})}),require$$0.jsx("td",{children:require$$0.jsx(BeeSlider,{type:h,disabled:!1,value:w,min:0,max:100,step:1,onChange:e=>L(Array.isArray(e.value)?e.value[0]:e.value),onSlideEnd:e=>{L(Array.isArray(e.value)?e.value[0]:e.value),j()}})}),require$$0.jsx("td",{className:D,children:require$$0.jsx("label",{children:w+"%"})})]}),require$$0.jsxs("tr",{children:[require$$0.jsx("td",{className:T,children:require$$0.jsx("label",{children:"Sonstige"})}),require$$0.jsx("td",{children:require$$0.jsx(BeeSlider,{type:h,disabled:!1,value:P,min:0,max:100,step:1,onChange:e=>q(Array.isArray(e.value)?e.value[0]:e.value),onSlideEnd:e=>{q(Array.isArray(e.value)?e.value[0]:e.value),j()}})}),require$$0.jsx("td",{className:D,children:require$$0.jsx("label",{children:P+"%"})})]})]})})}),"none"!=p&&u?require$$0.jsx("div",{className:"bee-validated-nutzungsart-mix-label",children:"error"===p&&u?require$$0.jsx(BeeLabel,{size:F,value:u,type:"error"}):"valid"===p&&u?require$$0.jsx(BeeLabel,{size:F,value:u,type:"valid"}):"neutral"===p&&u?require$$0.jsx(BeeLabel,{size:F,value:u,type:"neutral"}):null}):null]})}const BeeImageSlider=React.forwardRef(({id:e,className:t,type:i="primary",images:r,activeIndex:n=0},a)=>{const s=null!=e?e:libExports.useId(1,"bee-img-detail-slider-")[0],[o,l]=React.useState(n);let c=React.useRef(null);React.useImperativeHandle(a,()=>({openGallery:u,showImage:d}));const h="primary"===i?"bee-img-detail-slider-primary":"secondary"===i?"bee-img-detail-slider-secondary":"bee-img-detail-slider-primary",p="card bee-img-slider bee-img-detail-slider"+(t?" "+t:"");function u(){c&&c.current&&c.current.show()}function d(e){l(e)}return require$$0.jsx("div",{id:s,className:p,children:require$$0.jsx(galleria.Galleria,{ref:c,value:r,className:h,activeIndex:o,onItemChange:e=>l(e.index),numVisible:7,circular:!0,fullScreen:!0,showItemNavigators:!0,showThumbnails:!1,item:e=>require$$0.jsx(BeeImage,{url:e&&e.url?e.url:"",alt:e?e.alt:void 0,title:void 0,copyright:e&&e.copyright?e.copyright:void 0,secured:!(!e||!e.secured)&&e.secured,showPlaceholder:!(!e||!e.showPlaceholder)&&e.showPlaceholder},e&&e.access?e.access:""),thumbnail:e=>require$$0.jsx(BeeImage,{url:e&&e.url?e.url:"",alt:e?e.alt:void 0,title:e&&e.title?e.title:void 0,copyright:e&&e.copyright?e.copyright:void 0,secured:!(!e||!e.secured)&&e.secured,showPlaceholder:!(!e||!e.showPlaceholder)&&e.showPlaceholder},e&&e.access?e.access:""),caption:e=>e.title||e.copyright?require$$0.jsxs("div",{children:[e.title?require$$0.jsx("div",{className:"bee-img-slider-title",children:require$$0.jsx(BeeContentHeadline,{value:e.title,headlineType:"h3",type:"primary"})}):null,e.copyright?require$$0.jsx("div",{className:"bee-img-slider-copyright",children:require$$0.jsx(BeeContentParagraph,{value:"© "+e.copyright,size:"xSmall",type:"secondary"})}):null]}):null})})});function BeeFilterSortSearch({className:e,filter:t,sort:i,search:r}){var n,a,s,o,l,c,h,p,u,d,f,m,g,v,y,b;const x="bee-filter-sort-search grid"+(e?" "+e:"");return require$$0.jsxs("div",{className:x,children:[t&&(!t.filterType||"dropdown"===t.filterType)&&require$$0.jsx("div",{className:"bee-filter-sort-search__filter col col-6 sm:col-4",children:require$$0.jsx(BeeDropDown,{label:t.label,value:t.value,options:t.options,optionLabel:t.optionLabel,disabled:null!==(n=t.disabled)&&void 0!==n&&n,formstate:null!==(a=t.formstate)&&void 0!==a?a:"neutral",readOnly:null!==(s=t.readOnly)&&void 0!==s&&s,required:null!==(o=t.required)&&void 0!==o&&o,showDelete:!0,deleteIcon:"pi pi-times-circle",onChange:e=>t.onChange(e.value)})}),t&&"treeselect"===t.filterType&&require$$0.jsx("div",{className:"bee-filter-sort-search__filter col col-6 sm:col-4",children:require$$0.jsx(BeeFilterTreeSelect,{label:t.label,value:t.value,options:t.options,disabled:null!==(l=t.disabled)&&void 0!==l&&l,formstate:null!==(c=t.formstate)&&void 0!==c?c:"neutral",readOnly:null!==(h=t.readOnly)&&void 0!==h&&h,required:null!==(p=t.required)&&void 0!==p&&p,onSelectNodes:e=>t.onChange(e),selectionMode:t.selectionMode,display:t.display,placeholder:t.placeholder})}),i&&require$$0.jsx("div",{className:"bee-filter-sort-search__sort col col-6 sm:col-4",children:require$$0.jsx(BeeDropDown,{label:i.label,value:i.value,options:i.options,optionLabel:i.optionLabel,disabled:null!==(u=i.disabled)&&void 0!==u&&u,formstate:null!==(d=i.formstate)&&void 0!==d?d:"neutral",readOnly:null!==(f=i.readOnly)&&void 0!==f&&f,required:null!==(m=i.required)&&void 0!==m&&m,onChange:e=>i.onChange(e.value)})}),r&&require$$0.jsx("div",{className:"bee-filter-sort-search__search col col-12 sm:col-4",children:require$$0.jsx(BeeSearchBar,{label:r.label,value:r.value,disabled:null!==(g=r.disabled)&&void 0!==g&&g,readOnly:null!==(v=r.readOnly)&&void 0!==v&&v,required:null!==(y=r.required)&&void 0!==y&&y,formstate:null!==(b=r.formstate)&&void 0!==b?b:"neutral",type:r.type,onSearch:r.onSearch})})]})}function BeeConfirmDialog({id:e,className:t,visible:i,message:r,messageIcon:n,acceptIcon:a,rejectIcon:s,acceptLabel:o,rejectLabel:l,header:c,type:h="default",onAccept:p,onReject:u,onHide:d}){const f=null!=e?e:libExports.useId(1,"bee-confirm-dialog")[0],m="bee-confirm-dialog"+("primary"===h?" bee-confirm-dialog-primary":"secondary"===h?" bee-confirm-dialog-secondary":"default"===h?" bee-confirm-dialog-default":"danger"===h?" bee-confirm-dialog-danger":" bee-confirm-dialog-default")+(t?" "+t:"");return require$$0.jsx(confirmdialog.ConfirmDialog,{id:f,className:m,visible:i,message:r,header:c,icon:n,modal:!0,draggable:!1,acceptIcon:a||null,rejectIcon:s||null,acceptLabel:o,rejectLabel:l,onHide:()=>{d&&d()},accept:()=>{p&&p()},reject:()=>{u&&u()}})}function BeeDeletionDialog({id:e,className:t,visible:i,message:r,header:n,type:a="default",messageIcon:s,acceptLabel:o,rejectLabel:l,onAccept:c,onReject:h,onHide:p}){const u=null!=e?e:libExports.useId(1,"bee-deletion-dialog")[0],d="bee-deletion-dialog"+("primary"===a?" bee-deletion-dialog-primary":"secondary"===a?" bee-deletion-dialog-secondary":" bee-deletion-dialog-default")+(t?" "+t:"");return require$$0.jsx(confirmdialog.ConfirmDialog,{id:u,className:d,visible:i,message:r,header:n,icon:s,acceptClassName:"p-button-danger",acceptIcon:"pi pi-trash",acceptLabel:o,rejectLabel:l,modal:!0,draggable:!1,onHide:()=>{p&&p()},accept:()=>{c&&c()},reject:()=>{h&&h()}})}function BeeErrorDialog({id:e,className:t,visible:i,message:r,header:n,type:a="default",messageIcon:s,acceptLabel:o,acceptIcon:l,onAccept:c,onHide:h}){const p=null!=e?e:libExports.useId(1,"bee-error-dialog")[0],u="bee-error-dialog"+("primary"===a?" bee-error-dialog-primary":"secondary"===a?" bee-error-dialog-secondary":"default"===a?" bee-error-dialog-default":" bee-error-dialog-danger")+(t?" "+t:"");return require$$0.jsx(confirmdialog.ConfirmDialog,{id:p,className:u,visible:i,message:r,header:n,icon:s,acceptIcon:l||null,acceptLabel:o,rejectClassName:"bee-error-dialog-reject-btn",onHide:()=>{h&&h()},accept:()=>{c&&c()}})}function BeeInfoDialog({id:e,className:t,visible:i,message:r,header:n,type:a="default",acceptLabel:s,onAccept:o}){const l=null!=e?e:libExports.useId(1,"bee-info-dialog")[0],c="bee-info-dialog"+("primary"===a?" bee-info-dialog-primary":"secondary"===a?" bee-info-dialog-secondary":"default"===a?" bee-info-dialog-default":"danger"===a?" bee-info-dialog-danger":" bee-info-dialog-default")+(t?" "+t:"");return require$$0.jsx(confirmdialog.ConfirmDialog,{id:l,className:c,visible:i,message:r,header:n,acceptLabel:s,rejectClassName:"bee-info-dialog-reject-btn",rejectLabel:"",accept:()=>{o&&o()}})}var propTypes={exports:{}},reactIs={exports:{}},reactIs_production_min={},hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:switch(e=e.type){case l:case c:case r:case a:case n:case p:return e;default:switch(e=e&&e.$$typeof){case o:case h:case f:case d:case s:return e;default:return u}}case i:return u}}}function x(e){return b(e)===c}return reactIs_production_min.AsyncMode=l,reactIs_production_min.ConcurrentMode=c,reactIs_production_min.ContextConsumer=o,reactIs_production_min.ContextProvider=s,reactIs_production_min.Element=t,reactIs_production_min.ForwardRef=h,reactIs_production_min.Fragment=r,reactIs_production_min.Lazy=f,reactIs_production_min.Memo=d,reactIs_production_min.Portal=i,reactIs_production_min.Profiler=a,reactIs_production_min.StrictMode=n,reactIs_production_min.Suspense=p,reactIs_production_min.isAsyncMode=function(e){return x(e)||b(e)===l},reactIs_production_min.isConcurrentMode=x,reactIs_production_min.isContextConsumer=function(e){return b(e)===o},reactIs_production_min.isContextProvider=function(e){return b(e)===s},reactIs_production_min.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_production_min.isForwardRef=function(e){return b(e)===h},reactIs_production_min.isFragment=function(e){return b(e)===r},reactIs_production_min.isLazy=function(e){return b(e)===f},reactIs_production_min.isMemo=function(e){return b(e)===d},reactIs_production_min.isPortal=function(e){return b(e)===i},reactIs_production_min.isProfiler=function(e){return b(e)===a},reactIs_production_min.isStrictMode=function(e){return b(e)===n},reactIs_production_min.isSuspense=function(e){return b(e)===p},reactIs_production_min.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===a||e===n||e===p||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===o||e.$$typeof===h||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},reactIs_production_min.typeOf=b,reactIs_production_min}var reactIs_development={},hasRequiredReactIs_development,hasRequiredReactIs,objectAssign,hasRequiredObjectAssign,ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret,has,hasRequiredHas,checkPropTypes_1,hasRequiredCheckPropTypes,factoryWithTypeCheckers,hasRequiredFactoryWithTypeCheckers,factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims,hasRequiredPropTypes;
|
|
43
42
|
/** @license React v16.13.1
|
|
44
43
|
* react-is.development.js
|
|
45
44
|
*
|
|
@@ -47,10 +46,12 @@ function G(e){return e+.5|0}const X=(e,t,n)=>Math.max(Math.min(e,n),t);function
|
|
|
47
46
|
*
|
|
48
47
|
* This source code is licensed under the MIT license found in the
|
|
49
48
|
* LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/function
|
|
49
|
+
*/function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,d=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var u=e.$$typeof;switch(u){case t:var m=e.type;switch(m){case l:case c:case r:case a:case n:case p:return m;default:var g=m&&m.$$typeof;switch(g){case o:case h:case f:case d:case s:return g;default:return u}}case i:return u}}}var x=l,_=c,S=o,w=s,C=t,P=h,E=r,k=f,$=d,A=i,T=a,D=n,M=p,I=!1;function F(e){return b(e)===c}reactIs_development.AsyncMode=x,reactIs_development.ConcurrentMode=_,reactIs_development.ContextConsumer=S,reactIs_development.ContextProvider=w,reactIs_development.Element=C,reactIs_development.ForwardRef=P,reactIs_development.Fragment=E,reactIs_development.Lazy=k,reactIs_development.Memo=$,reactIs_development.Portal=A,reactIs_development.Profiler=T,reactIs_development.StrictMode=D,reactIs_development.Suspense=M,reactIs_development.isAsyncMode=function(e){return I||(I=!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.")),F(e)||b(e)===l},reactIs_development.isConcurrentMode=F,reactIs_development.isContextConsumer=function(e){return b(e)===o},reactIs_development.isContextProvider=function(e){return b(e)===s},reactIs_development.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},reactIs_development.isForwardRef=function(e){return b(e)===h},reactIs_development.isFragment=function(e){return b(e)===r},reactIs_development.isLazy=function(e){return b(e)===f},reactIs_development.isMemo=function(e){return b(e)===d},reactIs_development.isPortal=function(e){return b(e)===i},reactIs_development.isProfiler=function(e){return b(e)===a},reactIs_development.isStrictMode=function(e){return b(e)===n},reactIs_development.isSuspense=function(e){return b(e)===p},reactIs_development.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===a||e===n||e===p||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===s||e.$$typeof===o||e.$$typeof===h||e.$$typeof===g||e.$$typeof===v||e.$$typeof===y||e.$$typeof===m)},reactIs_development.typeOf=b}()),reactIs_development}function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,"production"===process.env.NODE_ENV?reactIs.exports=requireReactIs_production_min():reactIs.exports=requireReactIs_development()),reactIs.exports}
|
|
51
50
|
/*
|
|
52
51
|
object-assign
|
|
53
52
|
(c) Sindre Sorhus
|
|
54
53
|
@license MIT
|
|
55
|
-
*/function ss(){if(Yo)return Uo;Yo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Uo=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 i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(i,a){for(var r,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(i),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))t.call(r,c)&&(s[c]=r[c]);if(e){o=e(r);for(var u=0;u<o.length;u++)n.call(r,o[u])&&(s[o[u]]=r[o[u]])}}return s},Uo}function ls(){if(Zo)return Ko;Zo=1;return Ko="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function cs(){return Xo?Go:(Xo=1,Go=Function.call.bind(Object.prototype.hasOwnProperty))}function us(){if(Qo)return Jo;Qo=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=ls(),n={},i=cs();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,r,o,s,l){if("production"!==process.env.NODE_ENV)for(var c in a)if(i(a,c)){var u;try{if("function"!=typeof a[c]){var d=Error((s||"React class")+": "+o+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=a[c](r,c,s,o,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=l?l():"";e("Failed "+o+" type: "+u.message+(null!=p?p:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Jo=a}function ds(){if(ts)return es;ts=1;var e=os(),t=ss(),n=ls(),i=cs(),a=us(),r=function(){};function o(){return null}return"production"!==process.env.NODE_ENV&&(r=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),es=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator;var u="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(o),arrayOf:function(e){return f(function(t,i,a,r,o){if("function"!=typeof e)return new h("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var s=t[i];if(!Array.isArray(s))return new h("Invalid "+r+" `"+o+"` of type `"+b(s)+"` supplied to `"+a+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,a,r,o+"["+l+"]",n);if(c instanceof Error)return c}return null})},element:f(function(e,t,n,i,a){var r=e[t];return s(r)?null:new h("Invalid "+i+" `"+a+"` of type `"+b(r)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:f(function(t,n,i,a,r){var o=t[n];return e.isValidElementType(o)?null:new h("Invalid "+a+" `"+r+"` of type `"+b(o)+"` supplied to `"+i+"`, expected a single ReactElement type.")}),instanceOf:function(e){return f(function(t,n,i,a,r){if(!(t[n]instanceof e)){var o=e.name||u;return new h("Invalid "+a+" `"+r+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `")+i+"`, expected instance of `"+o+"`.")}var s;return null})},node:f(function(e,t,n,i,a){return v(e[t])?null:new h("Invalid "+i+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return f(function(t,a,r,o,s){if("function"!=typeof e)return new h("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[a],c=b(l);if("object"!==c)return new h("Invalid "+o+" `"+s+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in l)if(i(l,u)){var d=e(l,u,r,o,s+"."+u,n);if(d instanceof Error)return d}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r(arguments.length>1?"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."),o;return f(function(t,n,i,a,r){for(var o=t[n],s=0;s<e.length;s++)if(p(o,e[s]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===x(t)?String(t):t});return new h("Invalid "+a+" `"+r+"` of value `"+String(o)+"` supplied to `"+i+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&r("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(a)+" at index "+t+"."),o}return f(function(t,a,r,o,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,a,r,o,s,n);if(null==u)return null;u.data&&i(u.data,"expectedType")&&l.push(u.data.expectedType)}return new h("Invalid "+o+" `"+s+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return f(function(t,i,a,r,o){var s=t[i],l=b(s);if("object"!==l)return new h("Invalid "+r+" `"+o+"` of type `"+l+"` supplied to `"+a+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return g(a,r,o,c,x(u));var d=u(s,c,a,r,o+"."+c,n);if(d)return d}return null})},exact:function(e){return f(function(a,r,o,s,l){var c=a[r],u=b(c);if("object"!==u)return new h("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");var d=t({},a[r],e);for(var p in d){var f=e[p];if(i(e,p)&&"function"!=typeof f)return g(o,s,l,p,x(f));if(!f)return new h("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(a[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,p,o,s,l+"."+p,n);if(m)return m}return null})}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},i=0;function a(a,o,s,c,d,p,f){if(c=c||u,p=p||s,f!==n){if(l){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 g=c+":"+s;!t[g]&&i<3&&(r("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,i++)}}return null==o[s]?a?null===o[s]?new h("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new h("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(o,s,c,d,p)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function m(e){return f(function(t,n,i,a,r,o){var s=t[n];return b(s)!==e?new h("Invalid "+a+" `"+r+"` of type `"+x(s)+"` supplied to `"+i+"`, expected `"+e+"`.",{expectedType:e}):null})}function g(e,t,n,i,a){return new h((e||"React class")+": "+t+" type `"+n+"."+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}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||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,i=t.call(e);if(t!==e.entries){for(;!(n=i.next()).done;)if(!v(n.value))return!1}else for(;!(n=i.next()).done;){var a=n.value;if(a&&!v(a[1]))return!1}return!0;default:return!1}}function b(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 x(e){if(null==e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},es}function ps(){if(is)return ns;is=1;var e=ls();function t(){}function n(){}return n.resetWarningCache=t,ns=function(){function i(t,n,i,a,r,o){if(o!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function a(){return i}i.isRequired=i;var r={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r}}function hs(){if(as)return Wo.exports;if(as=1,"production"!==process.env.NODE_ENV){var e=os();Wo.exports=ds()(e.isElement,true)}else Wo.exports=ps()();return Wo.exports}var fs=q(hs());const ms=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function gs(e,t,n){const i=function(e){const{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){const n=t.split(".").pop().toLowerCase(),i=ms.get(n);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}(e),{webkitRelativePath:a}=e,r="string"==typeof t?t:"string"==typeof a&&a.length>0?a:`./${e.name}`;return"string"!=typeof i.path&&vs(i,"path",r),vs(i,"relativePath",r),i}function vs(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const bs=[".DS_Store","Thumbs.db"];function xs(e){return"object"==typeof e&&null!==e}function ys(e){return e.filter(e=>-1===bs.indexOf(e.name))}function _s(e){if(null===e)return[];const t=[];for(let n=0;n<e.length;n++){const i=e[n];t.push(i)}return t}function ws(e){if("function"!=typeof e.webkitGetAsEntry)return ks(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?Cs(t):ks(e,t)}function js(e){return e.reduce((e,t)=>[...e,...Array.isArray(t)?js(t):[t]],[])}function ks(e,t){return Hr(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){const t=yield e.getAsFileSystemHandle();if(null===t)throw new Error(`${e} is not a File`);if(void 0!==t){const e=yield t.getFile();return e.handle=t,gs(e)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return gs(i,null!==(n=null==t?void 0:t.fullPath)&&void 0!==n?n:void 0)})}function Ss(e){return Hr(this,void 0,void 0,function*(){return e.isDirectory?Cs(e):function(e){return Hr(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(n=>{const i=gs(n,e.fullPath);t(i)},e=>{n(e)})})})}(e)})}function Cs(e){const t=e.createReader();return new Promise((e,n)=>{const i=[];!function a(){t.readEntries(t=>Hr(this,void 0,void 0,function*(){if(t.length){const e=Promise.all(t.map(Ss));i.push(e),a()}else try{const t=yield Promise.all(i);e(t)}catch(e){n(e)}}),e=>{n(e)})}()})}var Ns,Ms={};var Os=q((Ns||(Ns=1,Ms.__esModule=!0,Ms.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(0===n.length)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?i.toLowerCase().endsWith(t):t.endsWith("/*")?r===t.replace(/\/.*$/,""):a===t})}return!0}),Ms));function Ds(e){return function(e){if(Array.isArray(e))return Is(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rs(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function As(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zs(Object(n),!0).forEach(function(t){Es(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Es(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ps(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,a,r=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return r}(e,t)||Rs(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rs(e,t){if(e){if("string"==typeof e)return Is(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Is(e,t):void 0}}function Is(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Ts="function"==typeof Os?Os:Os.default,Ls=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),t=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:"file-invalid-type",message:"File type must be ".concat(t)}},Fs=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Bs=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Ws={code:"too-many-files",message:"Too many files"};function qs(e,t){var n="application/x-moz-file"===e.type||Ts(e,t)||function(e){return""===e.type&&"function"==typeof e.getAsFile}(e);return[n,n?null:Ls(t)]}function Vs(e,t,n){if($s(e.size))if($s(t)&&$s(n)){if(e.size>n)return[!1,Fs(n)];if(e.size<t)return[!1,Bs(t)]}else{if($s(t)&&e.size<t)return[!1,Bs(t)];if($s(n)&&e.size>n)return[!1,Fs(n)]}return[!0,null]}function $s(e){return null!=e}function Hs(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Us(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function Ys(e){e.preventDefault()}function Ks(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return t.some(function(t){return!Hs(e)&&t&&t.apply(void 0,[e].concat(i)),Hs(e)})}}function Zs(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Gs(e){return/^.*\.[\w]+$/.test(e)}var Xs=["children"],Js=["open"],Qs=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],el=["refKey","onChange","onClick"];function tl(e){return function(e){if(Array.isArray(e))return al(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||il(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var i,a,r=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return r}(e,t)||il(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function il(e,t){if(e){if("string"==typeof e)return al(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?al(e,t):void 0}}function al(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach(function(t){sl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ll(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var cl=t.forwardRef(function(e,n){var i=e.children,a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=ol(ol({},ul),e),i=n.accept,a=n.disabled,r=n.getFilesFromEvent,o=n.maxSize,s=n.minSize,l=n.multiple,c=n.maxFiles,u=n.onDragEnter,d=n.onDragLeave,p=n.onDragOver,h=n.onDrop,f=n.onDropAccepted,m=n.onDropRejected,g=n.onFileDialogCancel,v=n.onFileDialogOpen,b=n.useFsAccessApi,x=n.autoFocus,y=n.preventDropOnDocument,_=n.noClick,w=n.noKeyboard,j=n.noDrag,k=n.noDragEventsBubbling,S=n.onError,C=n.validator,N=t.useMemo(function(){return function(e){if($s(e))return Object.entries(e).reduce(function(e,t){var n=Ps(t,2),i=n[0],a=n[1];return[].concat(Ds(e),[i],Ds(a))},[]).filter(function(e){return Zs(e)||Gs(e)}).join(",")}(i)},[i]),M=t.useMemo(function(){return function(e){return $s(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=Ps(e,2),n=t[0],i=t[1],a=!0;return Zs(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),Array.isArray(i)&&i.every(Gs)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(e,t){var n=Ps(t,2),i=n[0],a=n[1];return As(As({},e),{},Es({},i,a))},{})}]:e}(i)},[i]),O=t.useMemo(function(){return"function"==typeof v?v:hl},[v]),D=t.useMemo(function(){return"function"==typeof g?g:hl},[g]),z=t.useRef(null),A=t.useRef(null),E=nl(t.useReducer(pl,dl),2),P=E[0],R=E[1],I=P.isFocused,T=P.isFileDialogActive,L=t.useRef("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),F=function(){!L.current&&T&&setTimeout(function(){A.current&&(A.current.files.length||(R({type:"closeDialog"}),D()))},300)};t.useEffect(function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}},[A,T,D,L]);var B=t.useRef([]),W=t.useRef([]),q=function(e){z.current&&z.current.contains(e.target)||(e.preventDefault(),B.current=[])};t.useEffect(function(){return y&&(document.addEventListener("dragover",Ys,!1),document.addEventListener("drop",q,!1)),function(){y&&(document.removeEventListener("dragover",Ys),document.removeEventListener("drop",q))}},[z,y]),t.useEffect(function(){var e=function(e){W.current=[].concat(tl(W.current),[e.target]),Us(e)&&R({isDragGlobal:!0,type:"setDragGlobal"})},t=function(e){W.current=W.current.filter(function(t){return t!==e.target&&null!==t}),W.current.length>0||R({isDragGlobal:!1,type:"setDragGlobal"})},n=function(){W.current=[],R({isDragGlobal:!1,type:"setDragGlobal"})},i=function(){W.current=[],R({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",e,!1),document.addEventListener("dragleave",t,!1),document.addEventListener("dragend",n,!1),document.addEventListener("drop",i,!1),function(){document.removeEventListener("dragenter",e),document.removeEventListener("dragleave",t),document.removeEventListener("dragend",n),document.removeEventListener("drop",i)}},[z]),t.useEffect(function(){return!a&&x&&z.current&&z.current.focus(),function(){}},[z,x,a]);var V=t.useCallback(function(e){S?S(e):console.error(e)},[S]),$=t.useCallback(function(e){e.preventDefault(),e.persist(),ie(e),B.current=[].concat(tl(B.current),[e.target]),Us(e)&&Promise.resolve(r(e)).then(function(t){if(!Hs(e)||k){var n=t.length,i=n>0&&function(e){var t=e.files,n=e.accept,i=e.minSize,a=e.maxSize,r=e.multiple,o=e.maxFiles,s=e.validator;return!(!r&&t.length>1||r&&o>=1&&t.length>o)&&t.every(function(e){var t=Ps(qs(e,n),1)[0],r=Ps(Vs(e,i,a),1)[0],o=s?s(e):null;return t&&r&&!o})}({files:t,accept:N,minSize:s,maxSize:o,multiple:l,maxFiles:c,validator:C});R({isDragAccept:i,isDragReject:n>0&&!i,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e)}}).catch(function(e){return V(e)})},[r,u,V,k,N,s,o,l,c,C]),H=t.useCallback(function(e){e.preventDefault(),e.persist(),ie(e);var t=Us(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1},[p,k]),U=t.useCallback(function(e){e.preventDefault(),e.persist(),ie(e);var t=B.current.filter(function(e){return z.current&&z.current.contains(e)}),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(R({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Us(e)&&d&&d(e))},[z,d,k]),Y=t.useCallback(function(e,t){var n=[],i=[];e.forEach(function(e){var t=nl(qs(e,N),2),a=t[0],r=t[1],l=nl(Vs(e,s,o),2),c=l[0],u=l[1],d=C?C(e):null;if(a&&c&&!d)n.push(e);else{var p=[r,u];d&&(p=p.concat(d)),i.push({file:e,errors:p.filter(function(e){return e})})}}),(!l&&n.length>1||l&&c>=1&&n.length>c)&&(n.forEach(function(e){i.push({file:e,errors:[Ws]})}),n.splice(0)),R({acceptedFiles:n,fileRejections:i,type:"setFiles"}),h&&h(n,i,t),i.length>0&&m&&m(i,t),n.length>0&&f&&f(n,t)},[R,l,N,s,o,c,h,f,m,C]),K=t.useCallback(function(e){e.preventDefault(),e.persist(),ie(e),B.current=[],Us(e)&&Promise.resolve(r(e)).then(function(t){Hs(e)&&!k||Y(t,e)}).catch(function(e){return V(e)}),R({type:"reset"})},[r,Y,V,k]),Z=t.useCallback(function(){if(L.current){R({type:"openDialog"}),O();var e={multiple:l,types:M};window.showOpenFilePicker(e).then(function(e){return r(e)}).then(function(e){Y(e,null),R({type:"closeDialog"})}).catch(function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(D(e),R({type:"closeDialog"})):!function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?V(e):(L.current=!1,A.current?(A.current.value=null,A.current.click()):V(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided.")))})}else A.current&&(R({type:"openDialog"}),O(),A.current.value=null,A.current.click())},[R,O,D,b,Y,V,M,l]),G=t.useCallback(function(e){z.current&&z.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Z()))},[z,Z]),X=t.useCallback(function(){R({type:"focus"})},[]),J=t.useCallback(function(){R({type:"blur"})},[]),Q=t.useCallback(function(){_||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?Z():setTimeout(Z,0))},[_,Z]),ee=function(e){return a?null:e},te=function(e){return w?null:ee(e)},ne=function(e){return j?null:ee(e)},ie=function(e){k&&e.stopPropagation()},ae=t.useMemo(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,i=e.role,r=e.onKeyDown,o=e.onFocus,s=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,p=e.onDrop,h=ll(e,Qs);return ol(ol(sl({onKeyDown:te(Ks(r,G)),onFocus:te(Ks(o,X)),onBlur:te(Ks(s,J)),onClick:ee(Ks(l,Q)),onDragEnter:ne(Ks(c,$)),onDragOver:ne(Ks(u,H)),onDragLeave:ne(Ks(d,U)),onDrop:ne(Ks(p,K)),role:"string"==typeof i&&""!==i?i:"presentation"},n,z),a||w?{}:{tabIndex:0}),h)}},[z,G,X,J,Q,$,H,U,K,w,j,a]),re=t.useCallback(function(e){e.stopPropagation()},[]),oe=t.useMemo(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,i=e.onChange,a=e.onClick,r=ll(e,el);return ol(ol({},sl({accept:N,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ee(Ks(i,K)),onClick:ee(Ks(a,re)),tabIndex:-1},n,A)),r)}},[A,i,l,K,a]);return ol(ol({},P),{},{isFocused:I&&!a,getRootProps:ae,getInputProps:oe,rootRef:z,inputRef:A,open:ee(Z)})}(ll(e,Xs)),r=a.open,o=ll(a,Js);return t.useImperativeHandle(n,function(){return{open:r}},[r]),t.createElement(t.Fragment,null,i(ol(ol({},o),{},{open:r})))});cl.displayName="Dropzone";var ul={disabled:!1,getFilesFromEvent:function(e){return Hr(this,void 0,void 0,function*(){return xs(e)&&xs(e.dataTransfer)?function(e,t){return Hr(this,void 0,void 0,function*(){if(e.items){const n=_s(e.items).filter(e=>"file"===e.kind);if("drop"!==t)return n;return ys(js(yield Promise.all(n.map(ws))))}return ys(_s(e.files).map(e=>gs(e)))})}(e.dataTransfer,e.type):function(e){return xs(e)&&xs(e.target)}(e)?function(e){return _s(e.target.files).map(e=>gs(e))}(e):Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?function(e){return Hr(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>gs(e))})}(e):[]})},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};cl.defaultProps=ul,cl.propTypes={children:fs.func,accept:fs.objectOf(fs.arrayOf(fs.string)),multiple:fs.bool,preventDropOnDocument:fs.bool,noClick:fs.bool,noKeyboard:fs.bool,noDrag:fs.bool,noDragEventsBubbling:fs.bool,minSize:fs.number,maxSize:fs.number,maxFiles:fs.number,disabled:fs.bool,getFilesFromEvent:fs.func,onFileDialogCancel:fs.func,onFileDialogOpen:fs.func,useFsAccessApi:fs.bool,autoFocus:fs.bool,onDragEnter:fs.func,onDragLeave:fs.func,onDragOver:fs.func,onDrop:fs.func,onDropAccepted:fs.func,onDropRejected:fs.func,onError:fs.func,validator:fs.func};var dl={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function pl(e,t){switch(t.type){case"focus":return ol(ol({},e),{},{isFocused:!0});case"blur":return ol(ol({},e),{},{isFocused:!1});case"openDialog":return ol(ol({},dl),{},{isFileDialogActive:!0});case"closeDialog":return ol(ol({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ol(ol({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ol(ol({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:!1});case"setDragGlobal":return ol(ol({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return ol({},dl);default:return e}}function hl(){}function fl(e){const t=Math,n=t.log;let i=n(e)/n(1e3)|0;return(e/t.pow(1e3,i)).toFixed(2)+" "+(i?"kMGTPEZY"[--i]+"B":"Bytes")}const ml={"image/*":[".png",".jpg",".jpeg",".gif",".webp"]};function gl({name:n,messages:i,participants:a,chatRoomId:r,currentUserId:o,readOnly:s,disabled:l,showLoaderOldMsgs:c,showLoaderNewMsgs:u,project:d,maxWindow:p=!1,inputValue:h,onInputChange:f,onMessageSubmit:m,canDeleteMessage:g,onMsgDelete:v,onDownloadFile:b}){const[x,y]=t.useState(""),[_,w]=t.useState(!1),j=t.useRef(null),k=void 0!==f,S=k?null!=h?h:"":x,C=k?null!=f?f:()=>{}:y;function N(){const e=null==S?void 0:S.trim();!e||l||s||(null==m||m(e),C(""))}function M(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),e.stopPropagation(),N())}const O=p,D=!0;function z(t){return e.jsxs(e.Fragment,{children:[c&&e.jsx("div",{className:"bee-chat-window__loader-old",children:e.jsx(Gr,{type:"primary",size:"2rem"})}),e.jsx("div",{className:"bee-chat-window__separator"}),i&&i.length>0?i.map(n=>{var i,s;const l=function(e){if(e.participantId)return null==a?void 0:a.find(t=>t.id===e.participantId)}(n),c=(null==l?void 0:l.userId)===o;return e.jsx(so,Object.assign({maxWindow:t,msg:n,participant:l,project:d,chatMsgSource:d,isCurrentUser:c},n.id&&(null==l?void 0:l.id)&&v?{showDeleteButton:!g||g(n),onMsgDelete:()=>{var e,t;v(null!=r?r:"",null!==(e=l.id)&&void 0!==e?e:"",null!==(t=n.id)&&void 0!==t?t:"")}}:{},{onDownload:()=>null==b?void 0:b(n)}),null!==(s=null!==(i=n.id)&&void 0!==i?i:n.createdAt)&&void 0!==s?s:Math.random())}):e.jsx("div",{className:"bee-chat-window__no-messages",children:"Es sind keine Nachrichten verfügbar"}),e.jsx("div",{className:"bee-chat-window__separator"}),u&&e.jsx("div",{className:"bee-chat-window__loader-new",children:e.jsx(Gr,{type:"primary",size:"2rem"})})]})}function A(t){const n=t?5:1;return!s&&e.jsx("div",{className:"footer-container",children:e.jsxs("div",{className:"textarea-container",onKeyDown:M,children:[e.jsx(Rr,{label:"Kommentar schreiben...",value:S,rows:n,autoResize:t,readOnly:null!=s&&s,required:!1,onChange:e=>{var t;return C(null!==(t=e.target.value)&&void 0!==t?t:"")}}),e.jsx(Y,{iconClass:"pi pi-send",rounded:!1,disabled:l||!(null==S?void 0:S.trim()),type:"lightPrimary",isLoading:!1,onClick:N})]})})}return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"bee-chat-window bee-chat-window__room",children:[e.jsxs("div",{className:"bee-chat-window__header",children:[e.jsx("h3",{className:"bee-chat-window__title",children:n}),e.jsx(Y,{className:"bee-chat-window__maximize-btn",iconClass:_?"pi pi-window-minimize":"pi pi-window-maximize",rounded:!0,type:"lightPrimary",onClick:()=>w(!_)})]}),e.jsxs("div",{className:"bee-chat-window__body",children:[e.jsx("div",{className:"bee-chat-window__messages",ref:j,children:e.jsx("div",{className:"bee-chat-window__content",children:z(O)})}),A(O)]})]}),e.jsx(R.Dialog,{header:n,visible:_,onHide:()=>w(!1),className:"bee-chat-window__dialog bee-dialog-primary",maximizable:!1,draggable:!1,footer:s?e.jsx("div",{className:"bee-chat-window__footer-spacer"}):A(D),children:e.jsx("div",{className:"bee-chat-window__messages bee-chat-window__messages--dialog",children:e.jsx("div",{className:"bee-chat-window__content",children:z(D)})})})]})}exports.BasicPriceChart=function({legend:n,chartOptions:i,noChartDisplay:a,id:r,className:o}){var s;const l=t.useRef(null),c=t.useRef(null);return t.useLayoutEffect(()=>{var e,t;if(!l.current)return;const n=l.current.getContext("2d");if(!n)return;const a=null==n?void 0:n.createLinearGradient(0,0,300,0);return null==a||a.addColorStop(0,Mr("--secondary-color")),null==a||a.addColorStop(.3,Mr("--secondary-dark-color")),null==a||a.addColorStop(.7,Mr("--primary-color")),c.current&&c.current.destroy(),(null===(e=i.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(i.data.datasets[0].backgroundColor=[a,"rgba(0, 0, 0, 0.2)"]),(null===(t=i.data.datasets[0])||void 0===t?void 0:t.borderColor)&&(i.data.datasets[0].borderColor=[a,"rgba(0, 0, 0, 0.2)"]),c.current=new $a(n,i),()=>{var e;null===(e=c.current)||void 0===e||e.destroy()}},[i]),e.jsx("div",{id:r,className:"basic-price-chart"+(o?" "+o:""),children:e.jsx("div",{className:"basic-price-chart__content",children:(null===(s=i.data.datasets[0])||void 0===s?void 0:s.data.every(e=>0===e))?e.jsx("div",{className:"basic-price-chart__empty",children:null!=a?a:e.jsx("div",{children:"Kein Chart verfügbar"})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"basic-price-chart__chart",children:e.jsx("canvas",{ref:l})}),n]})})})},exports.BeeAddEntryCard=qr,exports.BeeAddressForm=function({disabled:t=!1,readOnly:n=!1,required:i=!1,countryOptions:a,regionOptions:r,countryOptionLabel:o="label",regionOptionLabel:s="label",street:l,housenumber:c,zip:u,city:d,country:p,region:h,isErrorStreet:f=!1,isErrorHousenumber:m=!1,isErrorZip:g=!1,isErrorCity:v=!1,isErrorCountry:b=!1,isErrorRegion:x=!1,onStreetChange:y,onHousenumberChange:_,onZipChange:w,onCityChange:j,onCountryChange:k,onRegionChange:S,onStreetFocusOut:C,onHousenumberFocusOut:N,onZipFocusOut:M,onCityFocusOut:O,onCountryFocusOut:D,onRegionFocusOut:z,className:A}){function E(e){null==y||y(e)}function P(e){null==_||_(e)}function R(e){null==w||w(e)}function I(e){null==j||j(e)}function T(e){null==C||C(e)}function L(e){null==N||N(e)}function F(e){null==M||M(e)}function B(e){null==O||O(e)}const W="bee-address-form grid"+(A?" "+A:"");return e.jsxs("div",{className:W,children:[e.jsx("div",{className:"col-12 sm:col-9 md:col-9 lg:col-8",children:e.jsx(Dr,{label:"Straße",statusLabel:f?"Bitte geben Sie eine Straße an.":void 0,value:l,disabled:t,formstate:f?"error":"none",readOnly:n,required:i,onChange:E,onFocusOut:T})}),e.jsx("div",{className:"col-12 sm:col-3 md:col-3 lg:col-4",children:e.jsx(Dr,{label:"Hausnr.",statusLabel:m?"Bitte geben Sie eine Hausnr. an.":void 0,value:c,disabled:t,formstate:m?"error":"none",readOnly:n,required:i,onChange:P,onFocusOut:L})}),e.jsx("div",{className:"col-12 sm:col-3 md:col-3 lg:col-4",children:e.jsx(Dr,{label:"PLZ",statusLabel:g?"Bitte geben Sie eine Postleitzahl an.":void 0,value:u,disabled:t,formstate:g?"error":"none",readOnly:n,required:i,onChange:R,onFocusOut:F})}),e.jsx("div",{className:"col-12 sm:col-9 md:col-9 lg:col-8",children:e.jsx(Dr,{label:"Stadt",statusLabel:v?"Bitte geben Sie eine Stadt an.":void 0,value:d,disabled:t,formstate:v?"error":"none",readOnly:n,required:i,onChange:I,onFocusOut:B})}),e.jsx("div",{className:"col-12 sm:col-6 md:col-6 lg:col-6",children:e.jsx(io,{label:"Land",statusLabel:b?"Bitte geben Sie ein Land an.":void 0,value:p,formstate:b?"error":"none",options:a,optionLabel:o,disabled:t,readOnly:n,required:i,onChange:e=>{!function(e){null==k||k(e)}(e),function(e){null==D||D(e)}(e)}})}),e.jsx("div",{className:"col-12 sm:col-6 md:col-6 lg:col-6",children:e.jsx(io,{label:"Region",statusLabel:x?"Bitte geben Sie eine Region an.":void 0,disabled:t,value:h,formstate:x?"error":"none",readOnly:n,required:i,options:r,optionLabel:s,onChange:e=>{!function(e){null==S||S(e)}(e),function(e){null==z||z(e)}(e)}})})]})},exports.BeeArrowDiff=function({id:t,className:n,value:i,tooltip:a,disabled:r,decimals:o,isRoot:s=!1,locale:l="de-DE"}){const c=null!=t?t:H.useId(1,"bee-arrow-diff-")[0],u=r?" disabled":"";let d="";switch(!0){case null==i:break;case i<=-.5:d="bee-arrow bee-arrow-dive";break;case i>-.5&&i<0:d="bee-arrow-dip";break;case 0===i:d="bee-arrow-steady";break;case i>0&&i<.5:d="bee-arrow-bump";break;case i>=.5:d="bee-arrow-jump";break;default:d="bee-arrow-steady"}return e.jsx("div",{className:null!=n?n:"",children:s||!i&&0!==i?null:e.jsxs(e.Fragment,{children:[e.jsxs("div",{id:c,className:"bee-arrow-diff "+d+u,children:[e.jsx("div",{className:"bee-arrow-diff-icon",children:e.jsx("i",{className:"icon-right-arrow bee-arrow"})}),e.jsxs("div",{className:"bee-arrow-diff-text",children:[new Intl.NumberFormat(l,{style:"decimal",maximumFractionDigits:o||0}).format(100*i),"%"]})]}),a&&!r?e.jsx(g.Tooltip,{target:".bee-arrow-diff",children:a}):null]})})},exports.BeeAutocompleteDropdown=function({id:n,className:i,label:a,value:r,suggestions:s,disabled:l,statusLabel:c,formstate:u="neutral",readOnly:d,required:p,placeholder:h,tooltip:f,tooltipOptions:m,onChange:g,onFocusOut:v}){const b=null!=n?n:H.useId(1,"bee-autocomplete-dropdown-")[0],[x,y]=t.useState(null!=s?s:[]),_="bee-autocomplete-dropdown "+("valid"===u?" bee-autocomplete-dropdown-valid":"error"===u?" bee-autocomplete-dropdown-error":"neutral"===u?" bee-autocomplete-dropdown-neutral":"none"===u?" bee-autocomplete-dropdodown-none":" bee-autocomplete-dropdown-neutral"),w="p-float-label bee-autocomplete-dropdown-container"+(d?" bee-autocomplete-dropdown-readOnly":"")+(l?" bee-autocomplete-dropdown-disabled":"");return e.jsxs(e.Fragment,{children:[e.jsx("span",{id:b,className:w+(i?" "+i:""),children:d&&!r?e.jsx(zr,{id:b,label:a}):e.jsxs(e.Fragment,{children:[e.jsx(o.AutoComplete,{id:b+"input",value:null!=r?r:void 0,dropdown:!0,suggestions:x,disabled:null!=l&&l,className:_,placeholder:h,tooltip:f,tooltipOptions:m,onChange:e=>function(e){!l&&g&&g(e)}(e),onBlur:e=>function(e){!l&&v&&v(e)}(e),completeMethod:e=>{const t=(null!=s?s:[]).filter(t=>String(t).toLowerCase().startsWith(e.query.toLowerCase()));y(t)}}),a?e.jsxs("label",{htmlFor:b+"input",className:"bee-autocomplete-dropdown-label",children:[a,p&&a?e.jsx("span",{className:"bee-autocomplete-dropdown-label-required",children:e.jsx("span",{className:"bee-autocomplete-dropdown-label-required-star",children:" *"})}):null]}):null]})}),"none"!=u&&c?(()=>{const t="medium";return e.jsx("div",{className:"bee-autocomplete-dropdown-statusLabel",children:"error"===u&&c?e.jsx(Or,{size:t,value:c,type:"error"}):"valid"===u&&c?e.jsx(Or,{size:t,value:c,type:"valid"}):"neutral"===u&&c?e.jsx(Or,{size:t,value:c,type:"neutral"}):null})})():null]})},exports.BeeAutocompleteTag=function({id:n,className:i,label:a,value:r,suggestions:s,disabled:l,statusLabel:c,formstate:u="neutral",readOnly:d,required:p,placeholder:h,tooltip:f,tooltipOptions:m,onChange:g,onFocusOut:v}){const b=null!=n?n:H.useId(1,"bee-autocomplete-tag-")[0],[x,y]=t.useState(null!=s?s:[]);let _="";d&&(_=" bee-autocomplete-tag-readOnly",l=!0);const w="bee-autocomplete-tag "+("valid"===u?" bee-autocomplete-tag-valid":"error"===u?" bee-autocomplete-tag-error":"neutral"===u?" bee-autocomplete-tag-neutral":"none"===u?" bee-cur-input-field-neutral":" bee-autocomplete-tag-neutral"),j="p-float-label bee-autocomplete-tag-container"+_,k=void 0===r?[]:Array.isArray(r)?r.map(String):[String(r)];return e.jsxs(e.Fragment,{children:[e.jsx("div",{id:b,className:j+(i?" "+i:""),children:d&&!r?e.jsx(zr,{id:b,label:a}):e.jsxs(e.Fragment,{children:[e.jsx(o.AutoComplete,{id:b+"input",value:k,multiple:!0,suggestions:x,disabled:null!=l&&l,className:w,placeholder:h,tooltip:f,tooltipOptions:m,onChange:e=>function(e){!l&&g&&g(e)}(e),onBlur:e=>function(e){!l&&v&&v(e)}(e),completeMethod:e=>{const t=(null!=s?s:[]).filter(t=>String(t).toLowerCase().startsWith(e.query.toLowerCase()));y(t)}}),a?e.jsxs("label",{htmlFor:b+"input",className:"bee-autocomplete-tag-label",children:[a,p&&a?e.jsx("span",{className:"bee-autocomplete-tag-label-required",children:e.jsx("span",{className:"bee-autocomplete-tag-label-required-star",children:" *"})}):null]}):null]})}),"none"!=u&&c?(()=>{const t="medium";return e.jsx("div",{className:"bee-autocomplete-tag-statusLabel",children:"error"===u&&c?e.jsx(Or,{size:t,value:c,type:"error"}):"valid"===u&&c?e.jsx(Or,{size:t,value:c,type:"valid"}):"neutral"===u&&c?e.jsx(Or,{size:t,value:c,type:"neutral"}):null})})():null]})},exports.BeeAvatar=Kr,exports.BeeBadge=function({id:t,className:n,label:i,type:a="primary",size:r="normal"}){const o=null!=t?t:H.useId(1,"bee-badge-")[0],s="primary"===a?"bee-badge bee-badge-primary":"secondary"===a?"bee-badge bee-badge-secondary":"danger"===a?"bee-badge bee-badge-danger":"bee-badge bee-badge-primary"+(n?" "+n:"");return e.jsx(c.Badge,{id:o,value:i,className:s,size:r})},exports.BeeBreadcrumb=function({id:t,className:n,border:i,items:a,type:r="default",isLoading:o}){const s=null!=t?t:H.useId(1,"bee-breadcrumb-")[0],l="bee-breadcrumb "+("primary"===r?"bee-breadcrumb-primary":"secondary"===r?"bee-breadcrumb-secondary":"bee-breadcrumb-default")+(i?"":" bee-breadcrumb-no-border")+(n?" "+n:"");return o?e.jsx(Ur,{shape:"rectangle",size:"20",width:"180",height:"20",animated:!0}):e.jsx("div",{id:s,className:l,children:e.jsx(j.BreadCrumb,{model:Wr.drop(a,1),home:a[0]})})},exports.BeeButton=U,exports.BeeChangesChip=function({className:t,values:n,type:i="primary"}){const a=`bee-changes-chip ${`bee-changes-chip--${i}`} ${t?" "+t:""}`;return 0===n.length?null:e.jsx("div",{className:a,children:function(t){return t.map((t,n)=>{const i=t.value<10?t.value.toString():"9+";return e.jsxs("div",{className:"bee-changes-chip__icon-wrapper",children:[e.jsx("i",{className:t.icon}),e.jsx("div",{}),e.jsx(c.Badge,{value:i,severity:"info"})]},n)})}(n)})},exports.BeeChatMessage=so,exports.BeeChatRoom=function({title:t,readOnly:n,chatRoomId:i,project:a=exports.ChatMessageSourceEnum.AUDIT,currentUserId:r,messages:o,participants:s,showLoaderOldMsgs:l,showLoaderNewMsgs:c,disabled:u,inputValue:d,hasError:p,onInputChange:h,onDownloadFile:f,onMessageSubmit:m,canDeleteMessage:g,onMsgDelete:v,onRetry:b}){return p?e.jsxs("div",{className:"bee-chat-room-error",children:[e.jsx("p",{children:"Chat konnte nicht geladen werden. Bitte versuchen Sie es erneut."}),e.jsx(U,{label:"Erneut versuchen",type:"primary",onClick:null!=b?b:()=>{}})]}):e.jsx(gl,{name:t,messages:o,participants:s,chatRoomId:i,currentUserId:r,readOnly:n,disabled:u,showLoaderOldMsgs:l,showLoaderNewMsgs:c,project:a,inputValue:d,onInputChange:null!=h?h:()=>{},onMessageSubmit:null!=m?m:()=>{},canDeleteMessage:null!=g?g:()=>!0,onMsgDelete:null!=v?v:()=>{},onDownloadFile:null!=f?f:()=>{}})},exports.BeeChatWindow=gl,exports.BeeCheckbox=no,exports.BeeCheckboxTriState=function({id:t,className:n,label:i,stateNull:a="Empty",stateFalse:r="False",stateTrue:o="True",value:s,disabled:l,required:c,statusLabel:u,formstate:d="neutral",readOnly:p,tooltip:h,tooltipOptions:f,onChange:m}){const g=null!=t?t:H.useId(1,"bee-tri-checkbox-")[0],v=g+"input";let b="";p&&(b=" bee-tri-state-readOnly",l=!0);const x="bee-tri-state "+("valid"===d?" bee-tri-state-valid":"error"===d?" bee-tri-state-error":" bee-tri-state-neutral")+b+(l?" bee-tri-state-disabled":"")+(n?" "+n:""),y=i?"bee-tri-state-label":"",_=!0===s||!1===s?s:null;return e.jsxs("div",{className:null!=n?n:"",children:[e.jsxs("div",{id:g,className:x,onKeyDown:e=>{!function(e){e.stopPropagation(),e.key===to&&m&&m({target:{value:!s&&(!1===s?null:null==s||null)}})}(e)},children:[e.jsxs("label",{className:"bee-tri-state-input",htmlFor:v,children:[p?e.jsx(e.Fragment,{children:!0===s?e.jsx("i",{className:"pi pi-check"}):!1===s?e.jsx("i",{className:"pi pi-times"}):e.jsx("i",{className:"pi pi-question"})}):e.jsx(C.TriStateCheckbox,{id:v,value:_,onChange:e=>function(e){!l&&m&&m(e)}(e),tooltip:h,tooltipOptions:f}),e.jsx("span",{className:"bee-tri-state-value",children:!0===s?o:!1===s?r:a})]}),null!=i&&""!==i?e.jsxs("label",{htmlFor:v,className:y,children:[i,c?e.jsx("span",{className:"bee-tri-state-label-required",children:e.jsx("span",{className:"bee-tri-state-label-required-star",children:" *"})}):null]}):null]}),"none"!=d&&u?(()=>{const t="medium";return e.jsx("div",{className:"bee-checkbox-tristate-statusLabel",children:"error"===d&&u?e.jsx(Or,{size:t,value:u,type:"error"}):"valid"===d&&u?e.jsx(Or,{size:t,value:u,type:"valid"}):"neutral"===d&&u?e.jsx(Or,{size:t,value:u,type:"neutral"}):null})})():null]})},exports.BeeChip=Zr,exports.BeeChipArea=function({id:t,className:n,label:i,type:a="primary",data:r,required:o,readOnly:s,onClick:l,onRemove:c}){const u=null!=t?t:H.useId(1,"bee-chip-area-")[0],d="bee-chip-area"+("primary"===a?" bee-chip-area-primary":"secondary"===a?" bee-chip-area-secondary":" bee-chip-area-primary")+(s?" bee-chip-area-readOnly":"")+(n?" "+n:"");return e.jsxs("div",{id:u,className:d,children:[e.jsx(e.Fragment,{children:s&&!r||s&&r.length<1||!r||r.length<1?e.jsx(zr,{id:u,label:null!=i?i:""}):e.jsx(e.Fragment,{children:r.map(t=>{var n;return e.jsx("div",{className:"bee-chip-area-chip",children:e.jsx(Zr,{id:t.id,label:null!==(n=t.label)&&void 0!==n?n:"",labelTemplate:t.labelTemplate,removable:!s||!s&&t.removable,onRemove:e=>function(e,t){c&&c(e,t)}(e,t.id),onClick:e=>function(e,t){l&&l(e,t)}(e,t.id)})},t.id)})})}),i?e.jsxs("label",{className:"bee-chip-area-label",children:[i,o?e.jsx("span",{className:"bee-chip-area-label-required",children:e.jsx("span",{className:"bee-chip-area-label-required-star",children:" *"})}):null]}):null]})},exports.BeeChipDropdown=function({id:t,className:n,label:i,value:a,options:r,optionLabel:o,statusLabel:s,disabled:l,formstate:c="neutral",readOnly:u,required:d,placeholder:p,maxSelectedLabels:h,filter:f,filterBy:m,filterPlaceholder:g,emptyFilterMessage:v,emptyMessage:b,onChange:x}){const y=null!=t?t:H.useId(1,"bee-chip-dropdown-")[0],_=y+"input";let w="";u&&(w=" bee-chip-dropdown-readOnly",l=!0);const j=("valid"===c?"bee-chip-dropdown-valid":"error"===c?"bee-chip-dropdown-error":"bee-chip-dropdown-neutral")+w;return e.jsxs("div",{children:[u&&!a?e.jsx("div",{className:null!=n?n:"",children:e.jsx(zr,{id:y,label:null!=i?i:""})}):e.jsxs("span",{id:y,className:"p-float-label bee-chip-dropdown-container"+(n?" "+n:""),children:[e.jsx(z.MultiSelect,Object.assign({display:"chip",id:_,value:a,options:r,disabled:null!=l&&l,className:j,onChange:e=>{return t=e,void(!l&&x&&x(t));var t},optionLabel:o,panelHeaderTemplate:t=>{const n=`${t.className} p-multiselect-header bee-chip-dropdown__header`,i="bee-chip-dropdown_selectall",a=`${i}_label`;return e.jsxs("div",{className:n,children:[t.checkboxElement,e.jsx("label",{id:a,className:"p-checkbox-label",htmlFor:i,children:"Alle auswählen"})]})},placeholder:p,maxSelectedLabels:h,filter:null!=f&&f,filterBy:m},void 0!==g&&{filterPlaceholder:g},void 0!==b&&{emptyMessage:b},void 0!==v&&{emptyFilterMessage:v})),i?e.jsxs("label",{htmlFor:_,children:[i,d&&i?e.jsx("span",{className:"bee-chip-dropdown-label-required",children:e.jsx("span",{className:"bee-chip-dropdown-label-required-star",children:" *"})}):null]}):null]}),"none"!=c&&s?(()=>{const t="medium";return e.jsx("div",{className:"bee-chip-dropdown-statusLabel",children:"error"===c&&s?e.jsx(Or,{size:t,value:s,type:"error"}):"valid"===c&&s?e.jsx(Or,{size:t,value:s,type:"valid"}):"neutral"===c&&s?e.jsx(Or,{size:t,value:s,type:"neutral"}):null})})():null]})},exports.BeeChipInput=function({id:t,className:n,label:i,type:a="primary",data:r=[],statusLabel:o,formstate:s="neutral",required:c,disabled:u,readOnly:d,placeholder:p,tooltip:h,tooltipOptions:f,itemTemplate:m,onChange:g}){var v;const b=null!==(v=null!=t?t:H.useId(1,"bee-chip-input-")[0])&&void 0!==v?v:"bee-chip-input",x="bee-chip-input p-float-label"+("primary"===a?" bee-chip-input-primary":"secondary"===a?" bee-chip-input-secondary":" bee-chip-input-primary")+(d?" bee-chip-input-readOnly":"")+(u?" bee-chip-input-disabled":"")+("valid"===s?" bee-chip-input-field-valid":"error"===s?" bee-chip-input-field-error":" bee-chip-input-field-neutral")+(n?" "+n:""),y=c?"bee-chip-input-label-required":"",_=c?"bee-chip-input-label-required-star":"";return e.jsxs("div",{id:b,className:x,children:[e.jsx(e.Fragment,{children:d&&!r||d&&r.length<1?e.jsx(zr,{id:b,label:i}):e.jsx(e.Fragment,{children:e.jsx(l.Chips,Object.assign({value:r},void 0!==m?{itemTemplate:m}:{},{onChange:e=>function(e){!u&&g&&g(e)}(e),separator:",",addOnBlur:!0,removable:!d,readOnly:null!=d&&d,placeholder:p,tooltip:h,tooltipOptions:f}))})}),i?e.jsxs("label",{className:"bee-chip-input-label",children:[i,c?e.jsx("span",{className:y,children:e.jsx("span",{className:_,children:" *"})}):null]}):null,"none"!=s&&o?(()=>{const t="medium";return e.jsx("div",{className:"bee-chip-input-statusLabel",children:"error"===s&&o?e.jsx(Or,{size:t,value:o,type:"error"}):"valid"===s&&o?e.jsx(Or,{size:t,value:o,type:"valid"}):"neutral"===s&&o?e.jsx(Or,{size:t,value:o,type:"neutral"}):null})})():null]})},exports.BeeColorSelect=function({id:t,className:n,label:i,value:a,inline:r=!1,disabled:o,required:s,statusLabel:l,formstate:c="neutral",readOnly:u,defaultColor:d,format:p="rgb",tooltip:h,tooltipOptions:f,onChange:m}){const g=null!=t?t:H.useId(1,"bee-color-select-")[0],v=g+"input",b=o?" bee-color-select-disabled":"";let x="";u&&(x=" bee-color-select-readOnly",o=!0);const y="bee-color-select"+("valid"===c?" bee-color-select-valid":"error"===c?" bee-color-select-error":" bee-color-select-neutral")+x+b+(n?" "+n:""),_=i?"bee-color-select-label":"";function w(e){!o&&m&&m(e)}return e.jsxs("div",{id:g,className:y,children:[i?e.jsxs("label",{className:_,htmlFor:v,children:[i,s&&i?e.jsx("span",{className:"bee-color-select-label-required",children:e.jsx("span",{className:"bee-color-select-label-required-star",children:" *"})}):null]}):null,e.jsx("div",{className:"bee-color-select-input",children:u?e.jsx(N.ColorPicker,{id:v,value:a,defaultColor:d,format:p,onChange:e=>w(e),disabled:null!=o&&o,inline:!1,tooltip:h,tooltipOptions:f}):e.jsx(N.ColorPicker,{id:v,value:a,defaultColor:d,format:p,onChange:e=>w(e),disabled:null!=o&&o,inline:r,tooltip:h,tooltipOptions:f})}),"none"!=c&&l?(()=>{const t="medium";return e.jsx("div",{className:"bee-color-select-statusLabel",children:"error"===c&&l?e.jsx(Or,{size:t,value:l,type:"error"}):"valid"===c&&l?e.jsx(Or,{size:t,value:l,type:"valid"}):"neutral"===c&&l?e.jsx(Or,{size:t,value:l,type:"neutral"}):null})})():null]})},exports.BeeConfirmDialog=function({id:t,className:n,visible:i,message:a,messageIcon:r,acceptIcon:o,rejectIcon:s,acceptLabel:l,rejectLabel:c,header:u,type:d="default",onAccept:p,onReject:h,onHide:f}){const m=null!=t?t:H.useId(1,"bee-confirm-dialog")[0],g="bee-confirm-dialog"+("primary"===d?" bee-confirm-dialog-primary":"secondary"===d?" bee-confirm-dialog-secondary":"default"===d?" bee-confirm-dialog-default":"danger"===d?" bee-confirm-dialog-danger":" bee-confirm-dialog-default")+(n?" "+n:"");return e.jsx(P.ConfirmDialog,{id:m,className:g,visible:i,message:a,header:u,icon:r,modal:!0,draggable:!1,acceptIcon:o||null,rejectIcon:s||null,acceptLabel:l,rejectLabel:c,onHide:()=>{f&&f()},accept:()=>{p&&p()},reject:()=>{h&&h()}})},exports.BeeContentHeadline=Ar,exports.BeeContentParagraph=Er,exports.BeeCopyInput=function({id:t,className:n,label:i,value:a,disabled:r,iconClass:o}){const s=null!=t?t:H.useId(1,"bee-copy-input-")[0],l="bee-copy-input-link"+(n?" "+n:"");return e.jsx("div",{className:"bee-copy-input",children:e.jsx(e.Fragment,{children:a?e.jsxs("div",{className:l,onClick:()=>{a&&navigator.clipboard.writeText(a)},children:[e.jsx(Dr,{id:s+"input",label:i,value:a,disabled:null!=r&&r,formstate:"neutral",readOnly:!0,required:!1}),e.jsx("i",{className:o+" icon"})]}):e.jsx(zr,{id:s,label:null!=i?i:""})})})},exports.BeeCurrencyInput=function({id:t,className:n,label:i,value:a,showArrow:r,disabled:o,autoFocus:s,minFractionDigits:l,maxFractionDigits:c,max:d,min:p,currency:h="EUR",locale:f="de-DE",statusLabel:m,formstate:g="neutral",readOnly:v,required:b,placeholder:x,name:y,tooltip:_,tooltipOptions:w,onChange:j,onFocusOut:k}){var S;const C=null!==(S=null!=t?t:H.useId(1,"bee-cur-input-")[0])&&void 0!==S?S:"bee-cur-input",N=null!=l?l:2,M=null!=c?c:2;let O="";v&&(O=" bee-cur-input-field-readOnly",o=!0);const D=" bee-cur-input-container "+(r?" bee-cur-input-container--showArrow ":""),z="bee-cur-input-field"+("valid"===g?" bee-cur-input-field-valid":"error"===g?" bee-cur-input-field-error":" bee-cur-input-field-neutral")+O,A="icon icon-right-arrow "+(a&&a>0?"up-arrow":a&&a<0?"down-arrow":"");return e.jsxs("div",{children:[v&&!a?e.jsx("div",{className:null!=n?n:"",children:e.jsx(zr,{id:C,label:i})}):e.jsxs("div",{className:D+(n?" "+n:""),children:[r?e.jsx("i",{className:A}):null,e.jsxs("span",{id:C,className:"p-float-label ",children:[e.jsx(u.InputNumber,{id:C+"input",value:null!=a?a:null,disabled:null!=o&&o,minFractionDigits:N,maxFractionDigits:M,max:d,min:p,autoFocus:s,mode:"currency",currency:h,inputId:C+"_input",inputClassName:z,locale:f,placeholder:x,name:y,tooltip:_,tooltipOptions:w,onValueChange:e=>function(e){!o&&j&&j(e)}(e),onBlur:e=>function(e){!o&&k&&k(e)}(e)}),i?e.jsxs("label",{htmlFor:C+"input",className:"bee-cur-input-label",children:[i,b&&i?e.jsx("span",{className:"bee-cur-input-label-required",children:e.jsx("span",{className:"bee-cur-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=g&&m?(()=>{const t="medium";return e.jsx("div",{className:"bee-cur-input-statusLabel",children:"error"===g&&m?e.jsx(Or,{size:t,value:m,type:"error"}):"valid"===g&&m?e.jsx(Or,{size:t,value:m,type:"valid"}):"neutral"===g&&m?e.jsx(Or,{size:t,value:m,type:"neutral"}):null})})():null]})},exports.BeeCurrencySelect=function({id:t,className:n,label:i,value:a,disabled:r,currency:o="EUR",locale:s="de-DE",statusLabel:l,formstate:c="neutral",readOnly:d,required:p,placeholder:h,min:f,max:m,tooltip:g,tooltipOptions:v,onChange:b}){const x=null!=t?t:H.useId(1,"bee-cur-select-")[0],y=x+"input";let _="";d&&(_=" bee-cur-select-readOnly",r=!0);const w="p-float-label bee-cur-select-container"+("valid"===c?" bee-cur-select-valid":"error"===c?" bee-cur-select-error":" bee-cur-select-neutral")+_;return e.jsxs(e.Fragment,{children:[d&&!a?e.jsx("div",{className:null!=n?n:"",children:e.jsx(zr,{id:x,label:i})}):e.jsxs("span",{id:x,className:w+(n?" "+n:""),children:[e.jsx(u.InputNumber,{id:y,value:null!=a?a:null,disabled:null!=r&&r,mode:"currency",currency:o,locale:s,showButtons:!0,placeholder:h,min:f,max:m,onValueChange:e=>function(e){!r&&b&&b(e)}(e),tooltip:g,tooltipOptions:v}),i?e.jsxs("label",{htmlFor:y,children:[i,p&&i?e.jsx("span",{className:"bee-cur-select-label-required",children:e.jsx("span",{className:"bee-cur-select-label-required-star",children:" *"})}):null]}):null]}),"none"!=c&&l?(()=>{const t="medium";return e.jsx("div",{className:"bee-cur-select-statusLabel",children:"error"===c&&l?e.jsx(Or,{size:t,value:l,type:"error"}):"valid"===c&&l?e.jsx(Or,{size:t,value:l,type:"valid"}):"neutral"===c&&l?e.jsx(Or,{size:t,value:l,type:"neutral"}):null})})():null]})},exports.BeeDateInput=function({id:t,className:n,label:i,value:a,statusLabel:r,formstate:o="neutral",disabled:s,readOnly:l,required:c,showButtonBar:u,dateFormat:p,view:h,minDate:f,maxDate:m,showMinMaxRange:g,showUTCDate:v,placeholder:b,tooltip:x,tooltipOptions:y,onChange:_,onFocusOut:w,panelClassName:j,locale:k="de"}){var S;const C=null!==(S=null!=t?t:H.useId(1,"bee-date-input-")[0])&&void 0!==S?S:"bee-date-input";let N="";l&&(N=" bee-date-input-readOnly",s=!0);const M=`bee-date-input ${"valid"===o?" bee-date-input-valid":"error"===o?" bee-date-input-error":" bee-date-input-neutral"} ${N} ${j||""}`;function O(e){if(!e||Array.isArray(e))return null;let t=new Date(e);return new Date(t.getTime()-6e4*t.getTimezoneOffset())}function D(e){if(!e||Array.isArray(e))return;let t=new Date(e);return new Date(t.getTime()+6e4*t.getTimezoneOffset())}function z(e){if(e&&!Array.isArray(e))return e instanceof Date?e:new Date(e)}return e.jsxs(e.Fragment,{children:[e.jsx("div",{id:C,className:"p-float-label bee-date-input-container"+(n?" "+n:""),children:l&&!a?e.jsx(zr,{id:C,label:i}):e.jsxs(e.Fragment,{children:[e.jsx(d.Calendar,{id:C+"input",value:v&&a?D(a):z(a),disabled:null!=s&&s,className:M,showIcon:!0,showButtonBar:null!=u&&u,dateFormat:null!=p?p:"dd.mm.y",view:null!=h?h:"date",minDate:f?v?D(f):z(f):void 0,maxDate:m?v?D(m):z(m):void 0,showMinMaxRange:null!=g&&g,placeholder:b,tooltip:x,tooltipOptions:y,onChange:e=>function(e){var t;!s&&_&&(v?(e.value=null!==(t=O(e.value))&&void 0!==t?t:new Date,_(e)):_(e))}(e),onBlur:e=>function(e){var t,n;!s&&w&&(v?(e.target.value=null!==(n=null===(t=O(e.target.value))||void 0===t?void 0:t.toString())&&void 0!==n?n:e.target.value,w(e)):w(e))}(e),locale:k}),i?e.jsxs("label",{htmlFor:C+"input",className:"bee-date-input-label",children:[i,c&&i?e.jsx("span",{className:"bee-date-input-label-required",children:e.jsx("span",{className:"bee-date-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=o&&r?(()=>{const t="medium";return e.jsx("div",{className:"bee-date-input-statusLabel",children:"error"===o&&r?e.jsx(Or,{size:t,value:r,type:"error"}):"valid"===o&&r?e.jsx(Or,{size:t,value:r,type:"valid"}):"neutral"===o&&r?e.jsx(Or,{size:t,value:r,type:"neutral"}):null})})():null]})},exports.BeeDateTimeInput=function({id:t,className:n,label:i,value:a,disabled:r,statusLabel:o,formstate:s="neutral",readOnly:l,required:c,minDate:u,maxDate:p,showMinMaxRange:h,placeholder:f,tooltip:m,tooltipOptions:g,onChange:v,onFocusOut:b}){var x;const y=null!==(x=null!=t?t:H.useId(1,"bee-date-time-input-")[0])&&void 0!==x?x:"bee-date-time-input";let _="";l&&(_=" bee-date-time-input-readOnly",r=!0);const w="bee-date-time-input"+("valid"===s?" bee-date-time-input-valid":"error"===s?" bee-date-time-input-error":"neutral"===s?" bee-date-time-input-neutral":"none"===s?" bee-date-time-field-neutral":" bee-date-time-input-neutral")+_;return e.jsxs(e.Fragment,{children:[l&&!a?e.jsx("div",{className:null!=n?n:"",children:e.jsx(zr,{id:y,label:i})}):e.jsxs("span",{id:y,className:"p-float-label bee-date-time-input-container"+(n?" "+n:""),children:[e.jsx(d.Calendar,{showTime:!0,showSeconds:!0,hourFormat:"24",dateFormat:"dd.mm.yy",value:a,disabled:null!=r&&r,className:w,minDate:u?new Date(u):void 0,maxDate:p?new Date(p):void 0,showMinMaxRange:null!=h&&h,placeholder:f,tooltip:m,tooltipOptions:g,onChange:e=>function(e){!r&&v&&v(e)}(e),onBlur:e=>function(e){!r&&b&&b(e)}(e)}),i?e.jsxs("label",{htmlFor:y+"input",className:"bee-date-time-input-label",children:[i,c&&i?e.jsx("span",{className:"bee-date-time-input-label-required",children:e.jsx("span",{className:"bee-date-time-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=s&&o?(()=>{const t="medium";return e.jsx("div",{className:"bee-date-time-input-statusLabel",children:"error"===s&&o?e.jsx(Or,{size:t,value:o,type:"error"}):"valid"===s&&o?e.jsx(Or,{size:t,value:o,type:"valid"}):"neutral"===s&&o?e.jsx(Or,{size:t,value:o,type:"neutral"}):null})})():null]})},exports.BeeDeletionDialog=function({id:t,className:n,visible:i,message:a,header:r,type:o="default",messageIcon:s,acceptLabel:l,rejectLabel:c,onAccept:u,onReject:d,onHide:p}){const h=null!=t?t:H.useId(1,"bee-deletion-dialog")[0],f="bee-deletion-dialog"+("primary"===o?" bee-deletion-dialog-primary":"secondary"===o?" bee-deletion-dialog-secondary":" bee-deletion-dialog-default")+(n?" "+n:"");return e.jsx(P.ConfirmDialog,{id:h,className:f,visible:i,message:a,header:r,icon:s,acceptClassName:"p-button-danger",acceptIcon:"pi pi-trash",acceptLabel:l,rejectLabel:c,modal:!0,draggable:!1,onHide:()=>{p&&p()},accept:()=>{u&&u()},reject:()=>{d&&d()}})},exports.BeeDivider=function({id:t,className:n,label:i,iconClass:a,border:r="solid",orientation:o="horizontal",align:s="center",type:l="default"}){const c=null!=t?t:H.useId(1,"bee-divider-")[0],u=a?a+" mr-2":void 0;let d="";d=i||a?" bee-divider-content":" bee-divider-nocontent";const p=("primary"===l?"bee-divider bee-divider-primary":"secondary"===l?"bee-divider-secondary":"bee-divider-default")+d+(n?" "+n:"");return e.jsx(f.Divider,{id:c,type:r,align:s,className:p,layout:o,children:i||a?e.jsxs("div",{className:"inline-flex align-items-center bee-divider-label",children:[u?e.jsx("i",{className:u}):null,i?e.jsx("b",{children:i}):null]}):null})},exports.BeeDocumentTable=function({id:n,className:i,data:a,type:r="light",uploadLabel:o,readOnly:s,disabled:l,showDescription:c,showDownload:u,showDelete:d,enableBulkDownload:p,isBulkDownloadLoading:h,onDownloadAll:f,onDownload:m,onDelete:g,onUpload:v}){const[b,x]=t.useState(window.innerWidth),[y,_]=t.useState([]),w=null!=n?n:H.useId(1,"bee-doc-table-")[0];t.useEffect(()=>{const e=()=>x(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),t.useEffect(()=>{if(!(null==a?void 0:a.length))return void _([]);const e=new Set(a.map(e=>e.id));_(t=>{const n=t.filter(t=>e.has(t));return n.length===t.length&&t.every((e,t)=>e===n[t])?t:n})},[a]);const j="bee-doc-table "+("dark"===r?"bee-doc-table-dark":"bee-doc-table-light")+(i?" "+i:""),k="bee-doc-table-col-action"+function(){const e=s?1:(u?1:0)+(d?1:0);return 1===e?" bee-doc-table-col-action-oneBtn":2===e?" bee-doc-table-col-action-twoBtn":""}(),S="bee-doc-table-col-title",C="bee-doc-table-col-name",N="bee-doc-table-col-date",M="bee-doc-table-col-size",O="bee-doc-table-col-type",D="Dateiname",z="Stand",A="Größe",E="Beschreibung",P="Dateityp",R="pi pi-download",I=Boolean(p&&u);t.useEffect(()=>{I||_([])},[I]);const F=Boolean((null==a?void 0:a.length)&&y.length===a.length),B=I?e.jsx("div",{onClick:e=>e.stopPropagation(),role:"presentation",children:e.jsx(no,{label:"",value:F,disabled:Boolean(l),type:"primary",formstate:"none",stateTrue:"",stateFalse:"",required:!1,readOnly:!1,onChange:e=>{const t=(e=>{var t,n;return null!==(n=null!==(t=null==e?void 0:e.checked)&&void 0!==t?t:null==e?void 0:e.value)&&void 0!==n&&n})(e);t&&(null==a?void 0:a.length)?_(a.map(e=>e.id)):_([])}})}):e.jsx("span",{className:"bee-doc-table-selectAll-empty","aria-hidden":"true"}),W=(null!=a?a:[]).map(e=>Object.assign(Object.assign({},e),{_selected:y.includes(e.id)}));return e.jsxs("div",{id:w,className:j,children:[e.jsxs(T.DataTable,{value:W,dataKey:"id",className:"p-datatable-sm",emptyMessage:"Keine Dokumente vorhanden.",breakpoint:"450px",children:[I?e.jsx(L.Column,{className:"bee-doc-table-selectAll-col",headerClassName:"bee-doc-table-selectAll-col",body:function(t){var n;if(!t)return null;if(!I)return e.jsx("span",{className:"bee-doc-table-selectAll-empty","aria-hidden":"true"});const i=null!==(n=t._selected)&&void 0!==n?n:y.includes(t.id);return e.jsx(no,{label:"",value:i,type:"primary",disabled:Boolean(l),formstate:"none",stateTrue:"",stateFalse:"",required:!1,readOnly:!1,onChange:e=>{e.checked?_(e=>[...e,t.id]):_(e=>e.filter(e=>e!==t.id))}})},header:B},"bee-doc-table-col-selection"):null,c?e.jsx(L.Column,{className:S,headerClassName:S,body:function(t){return t?e.jsx("p",{"data-headername":E,children:t.descr}):null},header:E},"bee-doc-table-col-description"):null,e.jsx(L.Column,{className:C,headerClassName:C,body:function(t){return t?e.jsx("p",{"data-headername":D,children:t.filename}):null},header:D},"bee-doc-table-col-filename"),e.jsx(L.Column,{className:N,headerClassName:N,body:function(t){if(!t)return null;const n=t.timestamp;return e.jsx("p",{"data-headername":z,children:n?n.toLocaleDateString("de-DE"):" "})},header:z},"bee-doc-table-col-date"),b>768?e.jsx(L.Column,{className:M,headerClassName:M,body:function(t){if(!t)return null;const n=t.size?fl(t.size):"";return e.jsx("p",{"data-headername":A,children:n})},header:A},"bee-doc-table-col-size"):null,b>576?e.jsx(L.Column,{className:O,headerClassName:O,body:function(t){return t?e.jsx("p",{"data-headername":P,children:t.type}):null},header:P},"bee-doc-table-col-type"):null,d||u?e.jsx(L.Column,{className:k,headerClassName:k,body:function(t){if(!t)return null;const n=t.id;return e.jsxs("div",{"data-headername":"",children:[u?e.jsx(Y,{iconClass:R,isLoading:!1,rounded:!1,disabled:!1,type:"secondary",onClick:()=>{return e=n,void(m&&m(e));var e}}):null,!s&&d?e.jsx(Y,{iconClass:"pi pi-trash",isLoading:!1,rounded:!1,disabled:Boolean(s),type:"danger",onClick:()=>{return e=n,void(g&&g(e));var e}}):null]})},header:""},"bee-doc-table-col-action"):null]},`bee-doc-table-dt-${String(u)}-${String(I)}`),e.jsxs("div",{className:"button-container",children:[I?e.jsx("div",{className:"bee-doc-table-downloadAll",children:e.jsx(Z,{label:"Auswahl herunterladen",iconClass:R,iconPos:"right",disabled:!(y&&y.length>0),type:"secondary",isLoading:h,onClick:()=>{f&&u&&f(y)}})}):null,e.jsx("div",{className:"upload-button",children:s?null:e.jsx(Z,{iconPos:"left",iconClass:"pi pi-upload",label:null!=o?o:"Dokument hinzufügen",disabled:s,type:"secondary",isLoading:!1,onClick:()=>{v&&v()}})})]})]})},exports.BeeDropDown=io,exports.BeeErrorComponent=function({headline:t,content:n,btnText:i,animationData:a,onClick:r}){return e.jsxs("div",{className:"bee-error-component flex justify-content-center",children:[e.jsx("div",{className:"bee-error-component__media",children:a?e.jsx(I,{animationData:a,loop:!0,autoplay:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):e.jsx("div",{className:"bee-error-component__media-placeholder","aria-hidden":!0,children:e.jsx("i",{className:"pi pi-exclamation-triangle"})})}),e.jsxs("div",{className:"bee-error-component__container",children:[e.jsx("div",{children:t}),e.jsx("div",{children:n}),e.jsx("div",{className:"flex justify-content-end mt-4",children:e.jsx(Z,{label:i,iconClass:"pi pi-arrow-left",iconPos:"left",type:"secondary",onClick:function(e){null==r||r()}})})]})]})},exports.BeeErrorDialog=function({id:t,className:n,visible:i,message:a,header:r,type:o="default",messageIcon:s,acceptLabel:l,acceptIcon:c,onAccept:u,onHide:d}){const p=null!=t?t:H.useId(1,"bee-error-dialog")[0],h="bee-error-dialog"+("primary"===o?" bee-error-dialog-primary":"secondary"===o?" bee-error-dialog-secondary":"default"===o?" bee-error-dialog-default":" bee-error-dialog-danger")+(n?" "+n:"");return e.jsx(P.ConfirmDialog,{id:p,className:h,visible:i,message:a,header:r,icon:s,acceptIcon:c||null,acceptLabel:l,rejectClassName:"bee-error-dialog-reject-btn",onHide:()=>{d&&d()},accept:()=>{u&&u()}})},exports.BeeFilterDropDown=function({id:n,className:i,label:a,value:r,options:o,optionLabel:s,optionValue:l,disabled:c,dropdownIcon:u,deleteIcon:d,statusLabel:p,formstate:h="neutral",readOnly:f,onChange:m}){const g=null!=n?n:H.useId(1,"bee-filter-dropdown-")[0],v=g+"input",[b,x]=t.useState(r);let y="";f&&(y=" bee-filter-dropdown-readOnly",c=!0);const _=("valid"===h?"bee-filter-dropdown-valid":"error"===h?"bee-filter-dropdown-error":"bee-filter-dropdown-neutral")+y,w="p-float-label bee-filter-dropdown-container flex "+(i?" "+i:""),j=null!=d?d:"pi pi-times-circle";return t.useEffect(()=>{x(r)},[r]),e.jsxs("div",{className:"bee-filter-dropdown",children:[f&&!r?e.jsx("div",{className:null!=i?i:"",children:e.jsx(zr,{id:g,label:a})}):e.jsxs("span",{id:g,className:w,children:[e.jsx(M.Dropdown,{id:v,value:b,options:o,optionLabel:s,optionValue:l,disabled:null!=c&&c,className:_,dropdownIcon:null!=u?u:"",emptyMessage:"Keine Einträge gefunden",onChange:e=>{return t=e,void(!c&&m&&m(t));var t}}),b&&""!==b?e.jsx("div",{className:"cancel",children:e.jsx(Y,{iconClass:j,rounded:!0,disabled:c||!1,type:"lightPrimary",isLoading:!1,onClick:()=>{x("")}})}):null,a?e.jsx("label",{htmlFor:v,children:a}):null]}),"none"!=h&&p?(()=>{const t="medium";return e.jsx("div",{className:"bee-filter-dropdown-statusLabel",children:"error"===h&&null!=p?e.jsx(Or,{size:t,value:String(p),type:"error"}):"valid"===h&&null!=p?e.jsx(Or,{size:t,value:String(p),type:"valid"}):"neutral"===h&&null!=p?e.jsx(Or,{size:t,value:String(p),type:"neutral"}):null})})():null]})},exports.BeeFilterSortSearch=function({className:t,filter:n,sort:i,search:a}){var r,o,s,l,c,u,d,p,h,f,m,g,v,b,x,y;const _="bee-filter-sort-search grid"+(t?" "+t:"");return e.jsxs("div",{className:_,children:[n&&(!n.filterType||"dropdown"===n.filterType)&&e.jsx("div",{className:"bee-filter-sort-search__filter col col-6 sm:col-4",children:e.jsx(io,{label:n.label,value:n.value,options:n.options,optionLabel:n.optionLabel,disabled:null!==(r=n.disabled)&&void 0!==r&&r,formstate:null!==(o=n.formstate)&&void 0!==o?o:"neutral",readOnly:null!==(s=n.readOnly)&&void 0!==s&&s,required:null!==(l=n.required)&&void 0!==l&&l,showDelete:!0,deleteIcon:"pi pi-times-circle",onChange:e=>n.onChange(e.value)})}),n&&"treeselect"===n.filterType&&e.jsx("div",{className:"bee-filter-sort-search__filter col col-6 sm:col-4",children:e.jsx(lo,{label:n.label,value:n.value,options:n.options,disabled:null!==(c=n.disabled)&&void 0!==c&&c,formstate:null!==(u=n.formstate)&&void 0!==u?u:"neutral",readOnly:null!==(d=n.readOnly)&&void 0!==d&&d,required:null!==(p=n.required)&&void 0!==p&&p,onSelectNodes:e=>n.onChange(e),selectionMode:n.selectionMode,display:n.display,placeholder:n.placeholder})}),i&&e.jsx("div",{className:"bee-filter-sort-search__sort col col-6 sm:col-4",children:e.jsx(io,{label:i.label,value:i.value,options:i.options,optionLabel:i.optionLabel,disabled:null!==(h=i.disabled)&&void 0!==h&&h,formstate:null!==(f=i.formstate)&&void 0!==f?f:"neutral",readOnly:null!==(m=i.readOnly)&&void 0!==m&&m,required:null!==(g=i.required)&&void 0!==g&&g,onChange:e=>i.onChange(e.value)})}),a&&e.jsx("div",{className:"bee-filter-sort-search__search col col-12 sm:col-4",children:e.jsx(To,{label:a.label,value:a.value,disabled:null!==(v=a.disabled)&&void 0!==v&&v,readOnly:null!==(b=a.readOnly)&&void 0!==b&&b,required:null!==(x=a.required)&&void 0!==x&&x,formstate:null!==(y=a.formstate)&&void 0!==y?y:"neutral",type:a.type,onSearch:a.onSearch})})]})},exports.BeeFilterTreeSelect=lo,exports.BeeFlatImageGallery=Lo,exports.BeeGalleryImage=co,exports.BeeIconBadgeButton=function({id:t,className:i,iconClass:a,value:r,disabled:o,type:s="primary",tooltip:l,tooltipOptions:c,onClick:u}){const d=null!=t?t:H.useId(1,"bee-icon-badge-button-")[0],p="p-button-text "+("secondary"===s?"p-button-secondary ":"danger"===s?"p-button-danger ":""),h="bee-icn-badge-btn "+("primary"===s?"bee-icn-badge-btn-primary":"secondary"===s?"bee-icn-badge-btn-secondary":"danger"===s?"bee-icn-badge-btn-danger":"light"===s?"bee-icn-badge-btn-light":"bee-icn-badge-btn-primary")+(r?" bee-icn-badge-btn-value":null)+(i?" "+i:"");return e.jsx("div",{className:h,children:e.jsx(n.Button,{disabled:null!=o&&o,id:d,className:p,icon:a,label:r?"("+r+")":void 0,tooltip:l,tooltipOptions:c,onClick:e=>function(e){!o&&u&&u(e)}(e)})})},exports.BeeIconButton=Y,exports.BeeImage=Yr,exports.BeeImageCard=function({id:t,className:n,preheadline:i,headline:a,subheadline:r,showIcon:o,iconClassName:s,image:l,content:c,activateHover:u=!1,disabled:d,readOnly:p,banner:h,onClick:f,onClickIcon:m}){const g=null!=t?t:H.useId(1,"bee-image-card-")[0],b=d?" bee-image-card-disabled ":"",x="bee-image-prev bee-image-card "+(u?"bee-image-prev-hover":"bee-image-prev-noHover")+(p?" bee-image-card-readOnly ":"")+(n?" "+n:"");return e.jsxs(v.Card,{id:g,className:x,children:[h&&e.jsx("div",{className:"bee-image-card__banner",children:h}),o?e.jsx("div",{className:"bee-image-card__info "+(d?"bee-image-card__info--disabled":""),children:e.jsx(Y,{iconClass:s||"",rounded:!0,disabled:!1,isLoading:!1,type:"secondary",onClick:e=>function(e){m&&m(e)}(e)})}):null,e.jsxs("div",{className:b,onClick:e=>function(e){f&&!p&&f(e)}(e),children:[e.jsx("div",{className:"bee-image-card__headline",children:e.jsxs(e.Fragment,{children:[i?e.jsx("div",{children:i}):e.jsx("div",{}),e.jsx("h2",{children:a}),r?e.jsx("div",{children:r}):e.jsx("div",{})]})}),e.jsxs("div",{className:"bee-image-card__content",children:[e.jsx("div",{className:"bee-image-card__img",children:l&&l.url?e.jsx(Yr,{url:l.url,alt:l.alt,title:l.title,copyright:l.copyright,secured:!!l.secured&&l.secured,showPlaceholder:!!l.showPlaceholder&&l.showPlaceholder},l.key):(null==l?void 0:l.id)?e.jsx(Yr,{url:"",alt:"",title:"",copyright:"",secured:!1,showPlaceholder:!0},""):e.jsx(Yr,{url:"",alt:"",title:"",copyright:"",secured:!1,showPlaceholder:!1},"")}),c?e.jsx("div",{className:"bee-image-card__content-text",children:c}):null]})]})]})},exports.BeeImageCropper=Io,exports.BeeImageGallery=Lo,exports.BeeImageSlider=Fo,exports.BeeImageUploadDialog=function({id:n,className:i,type:a="primary",visible:r,disabled:o,dropzoneTitle:s="",dropzoneDescription:l="",dropzoneAddLabel:c,dropzoneFormats:u,progressVisible:d,progressMessage:p,errorVisible:h,errorHeadline:f="",errorDescription:m,cropShape:g="rect",aspectWidth:v,aspectHeight:b,cropSize:x,maxOutputSize:y,showZoom:_,showRotation:w,controlsPosition:j="overlay",minZoom:k,maxZoom:S,zoomStep:C,zoomLabel:N,rotateLabel:M,onHide:O,onUpload:D}){const z=null!=n?n:H.useId(1,"bee-image-upload-dialog")[0],A=t.useRef(null),E=t.useRef(null),[P,I]=t.useState(),[T,L]=t.useState(),F=null!=u?u:ml;t.useEffect(()=>{if(!P)return void L(void 0);const e=URL.createObjectURL(P);return L(e),()=>{URL.revokeObjectURL(e)}},[P]);const B="bee-image-upload-dialog"+("primary"===a?" bee-image-upload-dialog-primary":"secondary"===a?" bee-image-upload-dialog-secondary":" bee-image-upload-dialog-primary")+(i?" "+i:"");function W(){O&&(O(),I(void 0))}function q(){return Hr(this,void 0,void 0,function*(){if(P&&E.current){const e=yield E.current.getCroppedFile();D({file:e,name:void 0,copyright:void 0,originalFileName:P.name})}})}function V(){A.current&&A.current.open()}const $=()=>{const t=[];for(const[e,n]of Object.entries(F))t.push(...n);const n=[...new Set(t)].join(", ");return e.jsxs("div",{className:"bee-image-upload-dialog-empty-drop",children:[e.jsx(Ar,{headlineType:"h4",value:s,type:"primary"}),e.jsx(Er,{value:l,size:"small",type:"default"}),e.jsx(U,{label:c,disabled:o,type:"primary",isLoading:!1,onClick:V}),e.jsx("div",{className:"bee-image-upload-dialog-formats",children:"Unterstützte Formate sind: "+n})]})};return e.jsx("div",{onKeyDown:e=>function(e){13===e.keyCode&&P&&q(),27===e.keyCode&&W()}(e),tabIndex:0,children:e.jsx(R.Dialog,{id:z,className:B,showHeader:!1,visible:r,modal:!0,footer:h?e.jsx("div",{children:e.jsx(U,{label:"Schließen",disabled:!1,isLoading:!1,type:a,onClick:()=>W()})}):P&&!d?e.jsxs("div",{className:"flex justify-content-between align-items-center",children:[e.jsx(K,{label:"Datei ändern",raised:!1,disabled:d,isLoading:!1,type:"primary",onClick:()=>V()}),e.jsxs("div",{className:"flex align-items-center gap-2",children:[e.jsx(K,{label:"Abbrechen",raised:!1,disabled:d,isLoading:!1,type:"primary",onClick:()=>W()}),e.jsx(U,{label:"Hochladen",disabled:!P||d,type:a,isLoading:!1,onClick:()=>q()})]})]}):e.jsxs("div",{className:"flex justify-content-end align-items-center gap-2",children:[e.jsx(K,{label:"Abbrechen",raised:!1,disabled:d,isLoading:!1,type:"primary",onClick:()=>W()}),e.jsx(U,{label:"Hochladen",disabled:!P||d,type:a,isLoading:!1,onClick:()=>q()})]}),onHide:()=>W(),children:(()=>{const t="bee-image-upload-dialog-dropzone"+(P&&!d&&!h?" bee-image-upload-dialog-dropzone--cropper-active":"");return e.jsx(cl,{ref:A,noClick:!0,noKeyboard:!0,accept:F,disabled:null!=o&&o,onDrop:e=>{e&&e.length>0&&I(e[0])},children:({getRootProps:n,getInputProps:i})=>e.jsx("div",{className:"container",children:e.jsxs("div",Object.assign({},n({className:t}),{"aria-label":"Bildupload Bereich - Datei hierher ziehen oder klicken zum Auswählen",children:[e.jsx("input",Object.assign({},i({"aria-label":"Bilddatei auswählen"}))),h?e.jsxs("div",{className:"bee-image-upload-dialog-error",role:"alert",children:[e.jsx(Ar,{headlineType:"h4",value:f,type:"primary"}),e.jsxs("div",{className:"grid",children:[e.jsx("i",{className:"col-fixed col-align-center pi pi-exclamation-triangle","aria-hidden":"true"}),e.jsx("p",{className:"col col-align-center bee-image-upload-dialog-error-descr",children:m})]})]}):P?d?e.jsxs("div",{className:"bee-image-upload-dialog-progress",role:"status","aria-live":"polite","aria-busy":"true",children:[e.jsx(Gr,{strokeWidth:"3",type:"mixed"}),e.jsx("div",{className:"bee-image-upload-dialog-progress-msg",children:p})]}):T?e.jsx("div",{className:"bee-image-upload-dialog-cropper","aria-label":"Bildbearbeitung",children:e.jsx(Io,{ref:E,image:T,cropShape:g,aspectWidth:v,aspectHeight:b,cropSize:x,maxOutputSize:y,showZoom:_,showRotation:w,controlsPosition:j,minZoom:k,maxZoom:S,zoomStep:C,disabled:o,zoomLabel:N,rotateLabel:M})}):$():$()]}))})})})()})})},exports.BeeInfoDialog=function({id:t,className:n,visible:i,message:a,header:r,type:o="default",acceptLabel:s,onAccept:l}){const c=null!=t?t:H.useId(1,"bee-info-dialog")[0],u="bee-info-dialog"+("primary"===o?" bee-info-dialog-primary":"secondary"===o?" bee-info-dialog-secondary":"default"===o?" bee-info-dialog-default":"danger"===o?" bee-info-dialog-danger":" bee-info-dialog-default")+(n?" "+n:"");return e.jsx(P.ConfirmDialog,{id:c,className:u,visible:i,message:a,header:r,acceptLabel:s,rejectClassName:"bee-info-dialog-reject-btn",rejectLabel:"",accept:()=>{l&&l()}})},exports.BeeKnob=function({id:t,className:n,value:i,minValue:a=0,maxValue:o=100,step:s,size:l="medium",type:c="primary",disabled:u,readOnly:d,showValue:p=!0,strokeWidth:h=14,valueColor:f,rangeColor:m,textColor:g,valueTemplate:v,onChange:b}){const x=null!=t?t:H.useId(1,"bee-knob-")[0],y="xLarge"===l?300:"large"===l?200:"medium"===l?100:"small"===l?66:"xSmall"===l?33:100,_=(o-a)/3,w="primary"===c?"var(--primary-color)":"secondary"===c?"var(--secondary-dark-color)":"mixed"===c?null!=i&&i>2*_?"var(--valid-dark-color)":null!=i&&i>_?"var(--warning-color)":"var(--error-dark-color)":"var(--primary-color)",j=null!=f?f:w,k=null!=g?g:w,S=null!=m?m:"var(--surface-border, LightGray)";return e.jsx(r.Knob,{id:x,value:null!=i?i:a,min:a,max:o,valueColor:j,rangeColor:S,textColor:k,valueTemplate:null!=v?v:"{value}",step:null!=s?s:1,size:y,strokeWidth:h,className:null!=n?n:"",disabled:null!=u&&u,readOnly:null!=d&&d,showValue:p,onChange:e=>{return t=e.value,void(!u&&b&&b(t));var t}})},exports.BeeLabel=Or,exports.BeeLink=function({id:t,className:n,value:i,href:a,type:r="primary",size:o="medium",onClick:s}){const l=null!=t?t:H.useId(1,"bee-link-")[0],c="bee-link"+("primary"===r?" bee-link-primary":"secondary"===r?" bee-link-secondary":" bee-link-default")+("xSmall"===o?" bee-link-size-xSmall":"small"===o?" bee-link-size-small":"medium"===o?" bee-link-size-medium":"large"===o?" bee-link-size-large":"xLarge"===o?" bee-link-size-xLarge":" bee-link-size-medium");return e.jsx(e.Fragment,{children:a?e.jsx("a",{id:l,className:c+(n?" "+n:""),href:a,children:i}):e.jsx("a",{id:l,className:c+(n?" "+n:""),onClick:e=>function(e){s&&s(e)}(e),children:i})})},exports.BeeLinkButton=K,exports.BeeLoadingBar=function({id:t,className:n,value:i,indeterminate:a=!1,type:r="primary",showValue:o,unit:s}){const l=null!=t?t:H.useId(1,"bee-loading-bar-")[0],c="primary"===r?"bee-loadingbar-primary":"secondary"===r?"bee-loadingbar-secondary":"bee-loadingbar-primary"+(n?" "+n:"");return e.jsx(y.ProgressBar,{id:l,value:i,className:c,mode:a?"indeterminate":"determinate",showValue:o,unit:s})},exports.BeeLoadingSpinner=Gr,exports.BeeMixButton=Z,exports.BeeNumberInput=function({id:t,className:n,label:i,value:a,showArrow:r,autoFocus:o,minFractionDigits:s,maxFractionDigits:l,max:c,min:d,disabled:p,grouping:h,locale:f="de-DE",statusLabel:m,formstate:g="neutral",readOnly:v,required:b,placeholder:x,tooltip:y,tooltipOptions:_,onChange:w,onFocusOut:j}){var k;const S=null!==(k=null!=t?t:H.useId(1,"bee-num-input")[0])&&void 0!==k?k:"bee-num-input";let C="";v&&(C=" bee-num-input-readOnly",p=!0);const N=" bee-num-input-container"+(r?" bee-num-input-container--showArrow":""),M="bee-num-input "+("valid"===g?"bee-num-input-valid":"error"===g?"bee-num-input-error":"bee-num-input-neutral")+C,O="icon icon-right-arrow "+(a&&a>0?"up-arrow":a&&a<0?"down-arrow":"");return e.jsxs(e.Fragment,{children:[v&&!a&&0!==a?e.jsx("div",{className:null!=n?n:"",children:e.jsx(zr,{id:S,label:i})}):e.jsxs("div",{className:"flex-grow-0"+N+(n?" "+n:""),children:[r?e.jsx("i",{className:O}):null,e.jsxs("span",{id:S,className:"p-float-label",children:[e.jsx(u.InputNumber,{id:S+"input",value:null!=a?a:null,disabled:null!=p&&p,mode:"decimal",autoFocus:o,useGrouping:h,minFractionDigits:s,maxFractionDigits:l,max:c,min:d,locale:f,inputClassName:M,placeholder:x,tooltip:y,tooltipOptions:_,onValueChange:e=>function(e){!p&&w&&w(e)}(e),onBlur:e=>function(e){!p&&j&&j(e)}(e)}),i?e.jsxs("label",{htmlFor:S+"input",className:"bee-num-input-label",children:[i,b&&i?e.jsx("span",{className:"bee-num-input-label-required",children:e.jsx("span",{className:"bee-num-input-label-required-star",children:" *"})}):null]}):null]})]}),"none"!=g&&m?(()=>{const t="medium";return e.jsx("div",{className:"bee-num-input-statusLabel",children:"error"===g&&m?e.jsx(Or,{size:t,value:m,type:"error"}):"valid"===g&&m?e.jsx(Or,{size:t,value:m,type:"valid"}):"neutral"===g&&m?e.jsx(Or,{size:t,value:m,type:"neutral"}):null})})():null]})},exports.BeeNumberSelect=function({id:t,className:n,label:i,value:a,minFractionDigits:r,maxFractionDigits:o,min:s,max:l,stepSize:c,disabled:d,grouping:p=!0,statusLabel:h,formstate:f="neutral",readOnly:m,required:g,placeholder:v,tooltip:b,tooltipOptions:x,onChange:y,onFocusOut:_}){const w=null!=t?t:H.useId(1,"bee-num-select-")[0],j=w+"input";let k="";m&&(k=" bee-num-select-readOnly",d=!0);const S="p-float-label bee-num-select-container"+("valid"===f?" bee-num-select-valid":"error"===f?" bee-num-select-error":" bee-num-select-neutral")+k;return e.jsxs(e.Fragment,{children:[m&&!a?e.jsx("div",{className:null!=n?n:"",children:e.jsx(zr,{id:w,label:i})}):e.jsxs("span",{id:w,className:S+(n?" "+n:""),children:[e.jsx(u.InputNumber,{id:j,value:null!=a?a:null,disabled:null!=d&&d,mode:"decimal",useGrouping:p,minFractionDigits:r,maxFractionDigits:o,min:s,max:l,showButtons:!0,step:null!=c?c:1,placeholder:v,tooltip:b,tooltipOptions:x,onValueChange:e=>function(e){!d&&y&&y(e)}(e),onBlur:e=>function(e){!d&&_&&_(e)}(e)}),i?e.jsxs("label",{htmlFor:j,children:[i,g&&i?e.jsx("span",{className:"bee-num-select-label-required",children:e.jsx("span",{className:"bee-num-select-label-required-star",children:" *"})}):null]}):null]}),"none"!=f&&h?(()=>{const t="medium";return e.jsx("div",{className:"bee-num-select-statusLabel",children:"error"===f&&h?e.jsx(Or,{size:t,value:h,type:"error"}):"valid"===f&&h?e.jsx(Or,{size:t,value:h,type:"valid"}):"neutral"===f&&h?e.jsx(Or,{size:t,value:h,type:"neutral"}):null})})():null]})},exports.BeeNutzungsartMix=function({id:n,className:i,label:a,disabled:r,forceRerenderToggle:o,aOffice:s,aRetail:l,aWohnen:c,aLogistik:u,aSonstige:d,type:p="primary",formstate:h="neutral",statusLabel:f,readOnly:m,required:g,onChange:v}){const b=null!=n?n:H.useId(1,"bee-nutzungsart-mix-")[0],[x,y]=t.useState(s),[_,w]=t.useState(l),[j,k]=t.useState(c),[S,C]=t.useState(u),[N,M]=t.useState(d),[O,D]=t.useState(m),z="bee-nutzungsart-mix"+(i?" "+i:""),A="bee-nutzungsarten-table-title",E="bee-nutzungsarten-table-percentage";let P="";m&&(P=" bee-nutzungsart-mix-readOnly");const R="bee-nutzungsart-mix-input "+P+(r?" bee-nutzungsart-mix-disabled":"")+("valid"===h?" bee-nutzungsart-mix-valid":"error"===h?" bee-nutzungsart-mix-error":" bee-nutzungsart-mix-neutral"),I="medium";function T(){!r&&v&&v({anteilOffice:x,anteilRetail:_,anteilWohnen:j,anteilLogistik:S,anteilSonstige:N})}function L(e){y(e);$(100-(e+_+j+S+N))}function F(e){w(e);U(100-(x+e+j+S+N))}function B(e){k(e);Y(100-(x+_+e+S+N))}function W(e){C(e);K(100-(x+_+j+e+N))}function q(e){M(e);V(100-(x+_+j+S+e))}function V(e){const t=x+e;y(t<0?0:t),t<0&&$(t)}function $(e){const t=_+e;w(t<0?0:t),t<0&&U(t)}function U(e){const t=j+e;k(t<0?0:t),t<0&&Y(t)}function Y(e){const t=S+e;C(t<0?0:t),t<0&&K(t)}function K(e){const t=N+e;M(t<0?0:t),t<0&&V(t)}return e.jsxs("div",{className:z,children:[(o!==O&&(D(o),y(s),w(l),k(c),C(u),M(d)),e.jsx(e.Fragment,{})),e.jsxs("label",{className:"bee-nutzungsarten-mix-label",children:[a,g&&a?e.jsx("span",{className:"bee-nutzungsart-mix-label-required",children:e.jsx("span",{className:"bee-nutzungsart-mix-label-required-star",children:" *"})}):null]}),e.jsx("div",{id:b,className:R,children:e.jsx("table",{children:e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{className:A,children:e.jsx("label",{children:"Office"})}),e.jsx("td",{children:e.jsx(Xr,{type:p,disabled:!1,value:x,min:0,max:100,step:1,onChange:e=>L(Array.isArray(e.value)?e.value[0]:e.value),onSlideEnd:e=>{L(Array.isArray(e.value)?e.value[0]:e.value),T()}})}),e.jsx("td",{className:E,children:e.jsx("label",{children:x+"%"})})]}),e.jsxs("tr",{children:[e.jsx("td",{className:A,children:e.jsx("label",{children:"Retail"})}),e.jsx("td",{children:e.jsx(Xr,{type:p,disabled:!1,value:_,min:0,max:100,step:1,onChange:e=>F(Array.isArray(e.value)?e.value[0]:e.value),onSlideEnd:e=>{F(Array.isArray(e.value)?e.value[0]:e.value),T()}})}),e.jsx("td",{className:E,children:e.jsx("label",{children:_+"%"})})]}),e.jsxs("tr",{children:[e.jsx("td",{className:A,children:e.jsx("label",{children:"Wohnen"})}),e.jsx("td",{children:e.jsx(Xr,{type:p,disabled:!1,value:j,min:0,max:100,step:1,onChange:e=>B(Array.isArray(e.value)?e.value[0]:e.value),onSlideEnd:e=>{B(Array.isArray(e.value)?e.value[0]:e.value),T()}})}),e.jsx("td",{className:E,children:e.jsx("label",{children:j+"%"})})]}),e.jsxs("tr",{children:[e.jsx("td",{className:A,children:e.jsx("label",{children:"Logistik"})}),e.jsx("td",{children:e.jsx(Xr,{type:p,disabled:!1,value:S,min:0,max:100,step:1,onChange:e=>W(Array.isArray(e.value)?e.value[0]:e.value),onSlideEnd:e=>{W(Array.isArray(e.value)?e.value[0]:e.value),T()}})}),e.jsx("td",{className:E,children:e.jsx("label",{children:S+"%"})})]}),e.jsxs("tr",{children:[e.jsx("td",{className:A,children:e.jsx("label",{children:"Sonstige"})}),e.jsx("td",{children:e.jsx(Xr,{type:p,disabled:!1,value:N,min:0,max:100,step:1,onChange:e=>q(Array.isArray(e.value)?e.value[0]:e.value),onSlideEnd:e=>{q(Array.isArray(e.value)?e.value[0]:e.value),T()}})}),e.jsx("td",{className:E,children:e.jsx("label",{children:N+"%"})})]})]})})}),"none"!=h&&f?e.jsx("div",{className:"bee-validated-nutzungsart-mix-label",children:"error"===h&&f?e.jsx(Or,{size:I,value:f,type:"error"}):"valid"===h&&f?e.jsx(Or,{size:I,value:f,type:"valid"}):"neutral"===h&&f?e.jsx(Or,{size:I,value:f,type:"neutral"}):null}):null]})},exports.BeeOutlinedButton=function({id:t,className:i,label:a,disabled:r,type:o="primary",tooltip:s,tooltipOptions:l,isLoading:c,size:u,onClick:d}){const p=null!=t?t:H.useId(1,"bee-outlined-button-")[0],h="p-button-outlined"+("primary"===o?" bee-outlined-btn-primary":"secondary"===o?" p-button-secondary bee-outlined-btn-secondary":"danger"===o?" p-button-danger bee-outlined-btn-danger":"light"===o?" bee-outlined-btn-light":" bee-outlined-btn-primary")+(i?" "+i:"");return e.jsx(n.Button,{id:p,loading:null!=c&&c,disabled:null!=r&&r,label:a,tooltip:s,tooltipOptions:l,size:u,className:h,onClick:e=>function(e){!r&&d&&d(e)}(e)})},exports.BeeOutlinedIconButton=function({id:t,className:i,iconClass:a,rounded:r=!1,disabled:o,type:s="primary",tooltip:l,tooltipOptions:c,isLoading:u,size:d,onClick:p}){const h=null!=t?t:H.useId(1,"bee-outlined-icon-button-")[0],f="p-button-outlined"+(r?" p-button-rounded":"")+("primary"===s?" bee-outlined-icon-btn-primary":"secondary"===s?" p-button-secondary bee-outlined-icon-btn-secondary":"danger"===s?" p-button-danger bee-outlined-icon-btn-danger":"light"===s?" bee-outlined-icon-btn-light":" bee-outlined-icon-btn-primary")+(i?" "+i:"");return e.jsx(n.Button,{id:h,loading:null!=u&&u,disabled:null!=o&&o,icon:a,tooltip:l,tooltipOptions:c,size:d,className:f,onClick:e=>function(e){!o&&p&&p(e)}(e)})},exports.BeePanel=function({id:t,className:n,variant:i="default",header:a,children:r,collapsed:o,type:s="primary",showToggle:l=!0,showAdd:c=!1,addLabel:u,readOnly:d,disabled:p,isPmView:h=!1,onToggle:f,onAddAddendum:m}){const g="primary"===s?"bee-panel--primary":"secondary"===s?"bee-panel--secondary":"bee-panel--primary",v=p?" disabled":"",b="audit"===i?" bee-panel--audit":"";return e.jsx(A.Panel,Object.assign({id:t,headerTemplate:t=>{const n=t.collapsed?"pi pi-chevron-down":"pi pi-chevron-up",r="audit"===i,o=r?`${t.className} justify-content-between`:`${t.className} mb-3`,s=r?`${t.titleClassName} pl-1 w-full`:`${t.titleClassName} pl-1`,f=c&&!d&&!h;return e.jsxs("div",{className:o+" bee-panel__header",children:[e.jsxs("div",{className:"bee-panel__header-row "+(r?"flex justify-content-start w-full":"flex"),children:[!r&&e.jsx("div",{className:s+" bee-panel__title",children:a}),!d&&e.jsx("div",{className:"bee-panel__toggle-wrapper "+(l?"":"bee-panel__toggle-invisible"),children:e.jsx("button",{className:t.togglerClassName,onClick:t.onTogglerClick,children:e.jsx("span",{className:n})})}),r&&e.jsx("div",{className:s+" bee-panel__title",children:a})]}),r&&e.jsx("div",{children:f&&e.jsx(Z,{label:null!=u?String(u):"",iconClass:"pi pi-plus",iconPos:"left",disabled:null!=p&&p,type:"lightPrimary",isLoading:!1,onClick:()=>null==m?void 0:m()})})]})},toggleable:!0,collapsed:o,className:"bee-panel"+g+v+b+(n?" "+n:"")},null!=f?{onToggle:f}:{},{children:e.jsx(e.Fragment,{children:r})}))},exports.BeePasswordInput=function({id:t,className:n,label:i,value:a,disabled:r,showPwStrength:o,showHint:s,statusLabel:l,formstate:c="neutral",readOnly:u,required:d,placeholder:p,tooltip:m,tooltipOptions:g,onChange:v,onFocusOut:b}){var x;const y=null!==(x=null!=t?t:H.useId(1,"bee-pw-input")[0])&&void 0!==x?x:"bee-pw-input";let _="";u&&(_=" bee-pw-input-readOnly",r=!0);const w="bee-pw-input "+("valid"===c?"bee-pw-input-valid":"error"===c?"bee-pw-input-error":"bee-pw-input-neutral"),j="p-float-label bee-pw-container"+_,k=e.jsx("h6",{children:"Passwort wählen"}),S=e.jsxs(e.Fragment,{children:[e.jsx(f.Divider,{}),e.jsx("p",{className:"mt-2",children:"Suggestions"}),e.jsxs("ul",{className:"pl-2 ml-2 mt-0",style:{lineHeight:"1.5"},children:[e.jsx("li",{children:"Mind. einen Kleinbuchstaben"}),e.jsx("li",{children:"Mind. einen Großbuchstaben"}),e.jsx("li",{children:"Mind. eine Zahl"}),e.jsx("li",{children:"Mind. 8 Buchstaben/Zahlen"})]})]});return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:null!=n?n:"",children:u&&!a?e.jsx(zr,{id:y,label:i}):e.jsxs("span",{id:y,className:j,children:[e.jsx(h.Password,{id:y+"input",value:null!=a?a:void 0,disabled:null!=r&&r,onChange:e=>function(e){!r&&v&&v(e)}(e),onBlur:b,inputClassName:w,toggleMask:!0,feedback:o,header:s?k:null,footer:s?S:null,placeholder:p,tooltip:m,tooltipOptions:g}),i?e.jsxs("label",{htmlFor:y+"input",className:"bee-pw-input-label",children:[i,d&&i?e.jsx("span",{className:"bee-pw-input-label-required",children:e.jsx("span",{className:"bee-pw-input-label-required-star",children:" *"})}):null]}):null]})}),"none"!=c&&l?(()=>{const t="medium";return e.jsx("div",{className:"bee-pw-input-statusLabel",children:"error"===c&&l?e.jsx(Or,{size:t,value:l,type:"error"}):"valid"===c&&l?e.jsx(Or,{size:t,value:l,type:"valid"}):"neutral"===c&&l?e.jsx(Or,{size:t,value:l,type:"neutral"}):null})})():null]})},exports.BeePercentageInput=Pr,exports.BeePlaceholder=zr,exports.BeeSearchBar=To,exports.BeeSelectButton=function({id:t,className:n,options:a,selectedOption:r,disabled:o,type:s="primary",itemTemplate:l,tooltip:c,tooltipOptions:u,onSelect:d}){const p=null!=t?t:H.useId(1,"bee-select-button-")[0],h="bee-select-btn "+("primary"===s?"bee-select-btn-primary":"secondary"===s?"bee-select-btn-secondary":"bee-select-btn-primary")+(n?" "+n:"");return e.jsx(i.SelectButton,{id:p,disabled:null!=o&&o,value:r,className:h,options:a,itemTemplate:l,tooltip:c,tooltipOptions:u,onChange:e=>{return t=e.value,void(!o&&d&&d(t));var t}})},exports.BeeSequencePosition=function({id:t,className:n,data:i,type:a="primary"}){const r=null!=t?t:H.useId(1,"bee-seq-pos-")[0],o="bee-seq-pos"+("primary"===a?" bee-seq-pos-primary":"secondary"===a?" bee-seq-pos-secondary":"default"===a?" bee-seq-pos-default":" bee-seq-pos-primary")+(n?" "+n:"");return e.jsx("div",{id:r,className:o,children:(()=>{if(i){let t=[];return i.forEach((n,i)=>{t.push(((t,n)=>{const i=(null==t?void 0:t.bold)?"bee-seq-pos-bold":void 0;return e.jsxs("span",{children:[(null==t?void 0:t.icon)?e.jsx("i",{className:t.icon}):null,null!=(null==t?void 0:t.label)?e.jsx("span",{className:i,children:t.label}):null]},`SeqPos_${n}`)})(n,i)),t.push(e.jsx("i",{className:"pi pi-chevron-right bee-seq-pos-separator"},">_"+i))}),t.pop(),t}})()})},exports.BeeServerStatusInput=function({status:n,successIcon:i="pi pi-check",loadingIcon:a,errorIcon:r="pi pi-times",externalChangeIcon:o="pi pi-user",hideIcons:s,children:l,onResetStatus:c,successTooltip:u="Änderung gespeichert",errorTooltip:d="Die Änderung konnte nicht gespeichert werden",externalChangeTooltip:p="Eine andere Person hat dieses Feld soeben bearbeitet"}){const h=n===exports.ServerStatus.SERVER_STATUS_LOADING?"server-status-loading":n===exports.ServerStatus.SERVER_STATUS_ERROR?"server-status-error":n===exports.ServerStatus.SERVER_STATUS_SUCCESS?"server-status-success":n===exports.ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE?"server-status-externalChange":"";return t.useEffect(()=>{if(n===exports.ServerStatus.SERVER_STATUS_SUCCESS||n===exports.ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE){const e=setTimeout(()=>{null==c||c()},5e3);return()=>clearTimeout(e)}},[n,c]),e.jsxs("div",{className:n?`serverStatus-input ${h} p-input-icon-right serverStatus-input-icon-right`:"serverStatus-input",children:[e.jsx(e.Fragment,{children:l}),n&&!s?e.jsx(e.Fragment,{children:n===exports.ServerStatus.SERVER_STATUS_SUCCESS?e.jsxs(e.Fragment,{children:[e.jsx(g.Tooltip,{target:".icon--success",content:u}),e.jsx("i",{className:i+" icon--success"})]}):n===exports.ServerStatus.SERVER_STATUS_LOADING?e.jsx(e.Fragment,{children:a?e.jsx("i",{className:a+" icon--loading"}):e.jsx(Gr,{strokeWidth:"2",type:"primary"})}):n===exports.ServerStatus.SERVER_STATUS_ERROR?e.jsxs(e.Fragment,{children:[e.jsx(g.Tooltip,{target:".icon--error",content:d}),e.jsx("i",{className:r+" icon--error"})]}):n===exports.ServerStatus.SERVER_STATUS_EXTERNAL_UPDATE?e.jsxs(e.Fragment,{children:[e.jsx(g.Tooltip,{target:".icon--externalChange",content:p}),e.jsx("i",{className:o+" icon--externalChange"})]}):null}):null]})},exports.BeeShareBar=function({id:t,className:n,data:i,onClick:a}){const r=null!=t?t:H.useId(1,"bee-share-bar-")[0];function o(e){let t=0;if(i){i.forEach(e=>t+=e.weight);return(e/t*100).toString()}return 0}return e.jsx("div",{id:r,className:"bee-share-bar"+(n?" "+n:""),onClick:e=>function(e){null==a||a(e)}(e),children:i?i.map((t,n)=>{var i;return e.jsxs("div",{className:"bee-share-bar-section",style:{width:o(t.weight)+"%",background:null!==(i=t.color)&&void 0!==i?i:"lightgrey"},children:[e.jsx("div",{className:"bee-share-bar-rectangle"}),t.hint?e.jsx("span",{className:"bee-share-bar-mouseover",children:t.hint}):null]},"shareBar_part_"+n)}):e.jsx("div",{className:"bee-sharebar-empty",style:{width:"100%",background:"lightgrey"}})})},exports.BeeSkeleton=Ur,exports.BeeSkeletonList=function({id:t,className:n,noSkeletons:i=3,width:a,height:r,showHover:o,showShade:s}){const l=null!=t?t:H.useId(1,"bee-skeleton-list-")[0],c=Math.max(0,Math.floor(i)),u="bee-skeleton-list grid grid-nogutter flex-wrap"+(n?" "+n:"");return e.jsx("div",{id:l,className:u,children:Array.from({length:c}).map(()=>e.jsx(Ur,{width:a,height:r,showHover:o,showShade:s}))})},exports.BeeSlider=Xr,exports.BeeSplitButton=function({id:t,className:n,label:i,iconClass:r,dropdownIcon:o,disabled:s,isLoading:l,type:c="primary",model:u,menuClassName:d,menuButtonClassName:p,tooltip:h,tooltipOptions:f,size:m,onClick:g}){const v=null!=t?t:H.useId(1,"bee-split-button-")[0],b=("primary"===c?"bee-split-btn-primary":"secondary"===c?"p-button-secondary bee-split-btn-secondary":"danger"===c?"p-button-danger bee-split-btn-danger":"light"===c?"bee-split-btn-light":"bee-split-btn-primary")+(n?" "+n:"");return e.jsx(a.SplitButton,{id:v,label:i,className:b,disabled:null!=s&&s,icon:r,dropdownIcon:o,model:u,loading:l,size:m,menuClassName:d,menuButtonClassName:p,tooltip:h,tooltipOptions:f,onClick:e=>function(e){!s&&g&&g(e)}(e)})},exports.BeeStarBar=function({id:t,className:n,value:i,stars:a,disabled:r,readOnly:o,type:s="primary",size:l=40,onChange:c}){const u=null!=t?t:H.useId(1,"bee-starbar-")[0],d="bee-starbar "+("primary"===s?"bee-starbar-primary":"secondary"===s?"bee-starbar-secondary":"bee-starbar-primary")+(o?" bee-starbar-readonly":"")+(r?" bee-starbar-disabled":"")+(n?" "+n:"");return e.jsx("div",{id:u,children:e.jsx(eo.Rating,{initialValue:(console.log(i/a*100),i/a*100),iconsCount:a,readonly:!(!o&&!r),className:d,allowFraction:!0,size:l,showTooltip:!1,tooltipClassName:"starbar-rating-tooltip",tooltipStyle:{visibility:"hidden",display:"none"},fillColor:r?"var(--surface-500)":"primary"===s?"var(--primary-color)":"secondary"===s?"var(--secondary-color)":"var(--primary-color)",emptyColor:r?"var(--surface-300)":"var(--surface-500)",onClick:e=>function(e){c&&c(e)}(e)})})},exports.BeeSwitch=function({id:t,className:n,label:i,value:a,disabled:r,statusLabel:o,formstate:s="neutral",stateFalse:l="Nein",stateTrue:c="Ja",required:u,readOnly:d,tooltip:p,tooltipOptions:h,onChange:f}){const m=null!=t?t:H.useId(1,"bee-switch-")[0],g=m+"input";let v="";d&&(v=" bee-switch-readOnly",r=!0);const b="bee-switch"+("valid"===s?" bee-switch-valid":"error"===s?" bee-switch-error":" bee-switch-neutral")+v+(r?" bee-switch-disabled":"")+(n?" "+n:""),x=i?"bee-switch-label":"",y=!0===a;return e.jsxs("div",{id:m,className:b,children:[e.jsxs("div",{className:"bee-switch-input",children:[e.jsx(O.InputSwitch,{inputId:g,checked:y,className:y?"p-inputswitch-checked":void 0,onChange:e=>function(e){!r&&f&&f(e)}(e),disabled:null!=r&&r,tooltip:p,tooltipOptions:h}),e.jsx("label",{className:"bee-switch-value",htmlFor:g,children:y?c:l})]}),i?e.jsxs("label",{className:x,htmlFor:g,children:[i,u&&i?e.jsx("span",{className:"bee-switch-label-required",children:e.jsx("span",{className:"bee-switch-label-required-star",children:" *"})}):null]}):null,"none"!=s&&o?(()=>{const t="medium";return e.jsx("div",{className:"bee-switch-statusLabel",children:"error"===s&&o?e.jsx(Or,{size:t,value:o,type:"error"}):"valid"===s&&o?e.jsx(Or,{size:t,value:o,type:"valid"}):"neutral"===s&&o?e.jsx(Or,{size:t,value:o,type:"neutral"}):null})})():null]})},exports.BeeTabview=function({id:t,className:n,type:i="default",tabs:a,activeIndex:r,onChangeIndex:o}){const s=null!=t?t:H.useId(1,"bee-tabview-")[0],l="bee-tabview"+("primary"===i?" bee-tabview-primary":"secondary"===i?" bee-tabview-secondary":" bee-tabview-default")+(n?" "+n:"");return e.jsx("div",{id:s,className:l,children:e.jsx(k.TabView,{activeIndex:r,onTabChange:e=>function(e){o&&o(e)}(e),scrollable:!0,children:a.map(t=>e.jsx(k.TabPanel,{header:t.title,disabled:t.disabled},"tab_"+t.title))})})},exports.BeeTextArea=Rr,exports.BeeTextInput=Dr,exports.BeeTimeInput=function({id:t,className:n,label:i,value:a,disabled:r,statusLabel:o,formstate:s="neutral",readOnly:l,required:c,minDate:u,maxDate:p,showMinMaxRange:h,placeholder:f,tooltip:m,tooltipOptions:g,onChange:v,onFocusOut:b}){var x;const y=null!==(x=null!=t?t:H.useId(1,"bee-time-input-")[0])&&void 0!==x?x:"bee-time-input";let _="";l&&(_=" bee-time-input-readOnly",r=!0);const w="bee-time-input"+("valid"===s?" bee-time-input-valid":"error"===s?" bee-time-input-error":"neutral"===s?" bee-time-input-neutral":"none"===s?" bee-time-input-field-neutral":" bee-time-input-neutral")+_;return e.jsxs(e.Fragment,{children:[l&&!a?e.jsx("div",{className:null!=n?n:"",children:e.jsx(zr,{id:y,label:i})}):e.jsxs("span",{id:y,className:"p-float-label bee-time-input-container"+(n?" "+n:""),children:[e.jsx(d.Calendar,{timeOnly:!0,showTime:!0,hourFormat:"24",value:a,readOnlyInput:null!=l&&l,disabled:null!=r&&r,className:w,minDate:u?new Date(u):void 0,maxDate:p?new Date(p):void 0,showMinMaxRange:null!=h&&h,placeholder:f,tooltip:m,tooltipOptions:g,onChange:e=>function(e){!r&&v&&v(e)}(e),onBlur:e=>function(e){!r&&b&&b(e)}(e)}),i?e.jsxs("label",{htmlFor:y+"input",className:"bee-time-input-label",children:[i,c&&i?e.jsx("span",{className:"bee-time-input-label-required",children:e.jsx("span",{className:"bee-time-input-label-required-star",children:" *"})}):null]}):null]}),"none"!=s&&o?(()=>{const t="medium";return e.jsx("div",{className:"bee-time-input-statusLabel",children:"error"===s&&o?e.jsx(Or,{size:t,value:o,type:"error"}):"valid"===s&&o?e.jsx(Or,{size:t,value:o,type:"valid"}):"neutral"===s&&o?e.jsx(Or,{size:t,value:o,type:"neutral"}):null})})():null]})},exports.BeeToolBarButton=function({id:t,className:i,iconClass:a,rounded:r,disabled:o,type:s="primary",tooltip:l,tooltipOptions:c,isLoading:u,size:d,onClick:p}){const h=null!=t?t:H.useId(1,"bee-toolbar-button-")[0],f="p-button-text"+("primary"===s?" bee-toolbar-btn-primary":"secondary"===s?" p-button-secondary bee-toolbar-btn-secondary":"danger"===s?" p-button-danger bee-toolbar-btn-danger":"light"===s?" bee-toolbar-btn-light":" bee-toolbar-btn-primary")+(r?" p-button-rounded":"")+(i?" "+i:"");return e.jsx(n.Button,{id:h,disabled:null!=o&&o,loading:null!=u&&u,className:f,icon:a,tooltip:l,tooltipOptions:c,size:d,onClick:e=>function(e){!o&&p&&p(e)}(e)})},exports.BeeTreeSelect=function({id:n,className:i,label:a,value:r,showDelete:o,options:s,valueTemplate:l,display:c="comma",selectionMode:u="single",placeholder:d,panelClassName:p,filter:h,filterTemplate:f,filterValue:m,filterBy:g,filterPlaceholder:v,disabled:b,readOnly:x,statusLabel:y,formstate:_="neutral",required:w,emptyMessage:j,tooltip:k,tooltipOptions:S,onChange:C,onNodeSelect:N,onHide:M}){var O;const z=null!=n?n:H.useId(1,"bee-treeselect-")[0],A=z+"input";let E="";x&&(E=" bee-ts-readOnly",b=!0);const P=("valid"===_?" bee-ts-valid":"error"===_?" bee-ts-error":" bee-ts-neutral")+E,R=" bee-ts-container ",I=h?" bee-ts-panel":" bee-ts-panel bee-ts-invisible-header";function T(e){!b&&C&&C(e)}function L(e){!b&&N&&N(e)}function F(){!b&&M&&M()}const B=t.useCallback((t,n)=>{var i,r,o,s;if(!!(null==t||"string"==typeof t&&0===t.length||"object"==typeof t&&0===Object.keys(t).length)){const t=null!==(r=null!==(i=n.placeholder)&&void 0!==i?i:a)&&void 0!==r?r:"";return t?e.jsx("span",{children:t}):e.jsx("span",{children:" "})}const c="function"==typeof l?l(t,n):l,u="string"==typeof c&&0===c.trim().length;if(null!=c&&!1!==c&&!u)return c;const d=null!==(s=null!==(o=n.placeholder)&&void 0!==o?o:a)&&void 0!==s?s:"";return d?e.jsx("span",{children:d}):e.jsx("span",{children:" "})},[a,d,l]);return e.jsxs(e.Fragment,{children:[x&&!r?e.jsx("div",{className:null!=i?i:"",children:e.jsx(zr,{id:z,label:a})}):e.jsx(e.Fragment,{children:e.jsxs("div",{id:z,className:i?i+R:R,children:[e.jsx("div",{className:!x&&r&&Object.keys(r).length>0?"bee-ts-filter__deleteBtn":"bee-ts-filter__deleteBtn bee-ts-filter--hidden",children:o?e.jsx(Y,{iconClass:"pi pi-times-circle",rounded:!0,disabled:!1,type:"lightPrimary",isLoading:!1,onClick:()=>{T(void 0),L(void 0),F()}}):null}),e.jsxs("div",{className:"p-float-label",children:[e.jsx(D.TreeSelect,{id:A,value:r,valueTemplate:l?B:void 0,options:s,disabled:b,className:P,panelClassName:p?p+I:I,display:c,selectionMode:u,placeholder:null!==(O=null!=d?d:a)&&void 0!==O?O:void 0,filter:h,filterTemplate:f,filterValue:m,filterBy:g,filterPlaceholder:null!=v?v:"Suche",onChange:e=>T(e),onNodeSelect:e=>L(e),onHide:()=>F(),emptyMessage:j,tooltip:k,tooltipOptions:S}),a?e.jsxs("label",{htmlFor:A,className:"bee-ts-label",children:[a,w&&a?e.jsx("span",{className:"bee-ts-label-required",children:e.jsx("span",{className:"bee-ts-label-required-star",children:" *"})}):null]}):null]})]})}),"none"!=_&&y?(()=>{const t="medium";return e.jsx("div",{className:"bee-ts-statusLabel",children:"error"===_&&y?e.jsx(Or,{size:t,value:y,type:"error"}):"valid"===_&&y?e.jsx(Or,{size:t,value:y,type:"valid"}):"neutral"===_&&y?e.jsx(Or,{size:t,value:y,type:"neutral"}):null})})():null]})},exports.BeeUploadDialog=function({id:n,className:i,type:a="primary",visible:r,disabled:o,locale:s="de-DE",header:l,info:c,titleLabel:u,titleVisible:d,copyrightLabel:p,copyrightVisible:h,dropzoneTitle:f="",dropzoneDescription:m="",dropzoneAddLabel:g,dropzoneFormats:v,progressVisible:b,progressMessage:x,errorVisible:y,errorHeadline:_="",errorDescription:w,onHide:j,onUpload:k}){const S=null!=n?n:H.useId(1,"bee-upload-dialog")[0],C=t.createRef(),[N,M]=t.useState(),[O,D]=t.useState(),[z,A]=t.useState(""),E="bee-upload-dialog"+("primary"===a?" bee-upload-dialog-primary":"secondary"===a?" bee-upload-dialog-secondary":" bee-upload-dialog-primary")+(i?" "+i:"");function P(){j&&(j(),M(void 0))}function I(){(function(){if(N)return!0;return!1})()&&k&&N&&k({file:N,name:O,copyright:z,originalFileName:N.name})}const T=()=>{C.current&&C.current.open()},L=()=>{let t="";for(const[e,n]of Object.entries(null!=v?v:{}))t+=n+", ";return t=t.slice(0,-1),e.jsxs("div",{className:"bee-upload-dialog-empty-drop",children:[e.jsx(Ar,{headlineType:"h4",value:f,type:"primary"}),e.jsx(Er,{value:m,size:"small",type:"default"}),e.jsx(U,{label:g,disabled:o,type:"primary",isLoading:!1,onClick:T}),e.jsx("div",{className:"bee-upload-dialog-formats",children:"Unterstützte Formate sind: "+t})]})};return e.jsx("div",{onKeyDown:e=>function(e){13===e.keyCode&&N&&I(),27===e.keyCode&&P()}(e),tabIndex:0,children:e.jsxs(R.Dialog,{id:S,className:E,header:l,visible:r,modal:!0,footer:y?e.jsx("div",{children:e.jsx(U,{label:"Schließen",disabled:!1,isLoading:!1,type:a,onClick:()=>P()})}):e.jsxs("div",{children:[e.jsx(K,{label:"Abbrechen",raised:!1,disabled:b,isLoading:!1,type:"primary",onClick:()=>P()}),e.jsx(U,{label:"Hochladen",disabled:!N||b,type:a,isLoading:!1,onClick:()=>I()})]}),onHide:()=>P(),children:[c?e.jsx(Er,{value:c,size:"medium",type:"default"}):null,e.jsx(cl,{ref:C,noClick:!0,noKeyboard:!0,accept:null!=v?v:{},disabled:null!=o&&o,onDrop:e=>{e&&e.length>0&&(M(e[0]),D(e[0]?e[0].name:void 0))},children:({getRootProps:t,getInputProps:n})=>e.jsx("div",{className:"container",children:e.jsxs("div",Object.assign({},t({className:"bee-upload-dialog-dropzone"}),{children:[e.jsx("input",Object.assign({},n())),y?e.jsxs("div",{className:"bee-upload-dialog-error",children:[e.jsx(Ar,{headlineType:"h4",value:_,type:"primary"}),e.jsxs("div",{className:"grid",children:[e.jsx("i",{className:"col-fixed col-align-center pi pi-exclamation-triangle"}),e.jsx("p",{className:"col col-align-center bee-upload-dialog-error-descr",children:w})]})]}):N?b?e.jsxs("div",{className:"bee-upload-dialog-progress",children:[e.jsx(Gr,{strokeWidth:"3",type:"mixed"}),e.jsx("div",{className:"bee-upload-dialog-progress-msg",children:x})]}):N?e.jsxs("div",{className:"bee-upload-dialog-selected-drop",children:[e.jsx(Ar,{headlineType:"h4",value:'"'+N.name+'" wurde ausgewählt',type:"primary"}),e.jsx("i",{className:"pi pi-file"}),e.jsx(U,{label:"Datei ändern",disabled:o,type:"primary",isLoading:!1,onClick:T}),e.jsxs("div",{className:"bee-upload-dialog-file-info",children:[e.jsxs("span",{children:["Dateigröße: ",fl(N.size)]}),e.jsxs("span",{children:[" Letzte Änderung: ",new Date(N.lastModified).toLocaleDateString(s)]})]})]}):L():L()]}))})}),!N||b||y?null:(()=>{if(d||h)return e.jsxs("div",{children:[e.jsx("p",{children:"Weitere Informationen:"}),d?e.jsx(Dr,{label:u,value:O,disabled:o,formstate:"neutral",readOnly:b,required:!1,onChange:e=>D(e.target.value)}):null,h?e.jsx(Dr,{label:p,value:z,disabled:o,formstate:"neutral",readOnly:b,required:!1,onChange:e=>A(e.target.value)}):null]})})()]})})},exports.BeeVisibleItemCount=function({id:t,className:n,visibleData:i,allData:a,isLoading:r}){const o="bee-visible-item-count"+(r?" isLoading":"")+(n?" "+n:"");return e.jsx("div",{id:t,className:o,children:function(t,n){return t&&t.length>0&&n&&n.length>0&&!r?e.jsx(e.Fragment,{children:t.length+" / "+n.length}):e.jsx(e.Fragment,{children:"– / –"})}(i,a)})},exports.ContractPotentialsChart=function({chartOptions:n,legend:i,noChartDisplay:a,id:r,className:o}){var s,l;const c=t.useRef(null),u=t.useRef(null);return t.useLayoutEffect(()=>{var e,t;if(!c.current)return;const i=c.current.getContext("2d");return i?(u.current&&u.current.destroy(),(null===(e=n.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(n.data.datasets[0].backgroundColor=[Mr("--secondary-color-50")]),(null===(t=n.data.datasets[1])||void 0===t?void 0:t.backgroundColor)&&(n.data.datasets[1].backgroundColor=[Mr("--primary-color-68",1)]),u.current=new $a(i,n),()=>{var e;null===(e=u.current)||void 0===e||e.destroy()}):void 0},[n]),e.jsx("div",{id:r,className:"contract-potentials"+(o?" "+o:""),children:e.jsx("div",{className:"contract-potentials__content",children:(null===(s=n.data.datasets[0])||void 0===s?void 0:s.data.every(e=>0===e))&&(null===(l=n.data.datasets[1])||void 0===l?void 0:l.data.every(e=>0===e))?e.jsx("div",{className:"contract-potentials__empty",children:null!=a?a:e.jsx("div",{children:"Kein Chart verfügbar"})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"contract-potentials__chart",children:e.jsx("canvas",{ref:c})}),i]})})})},exports.LvEditingStatusChart=function({chartOptions:n,legend:i,noChartDisplay:a,id:r,className:o}){var s;const l=t.useRef(null),c=t.useRef(null);return t.useLayoutEffect(()=>{var e,t;if(!l.current)return;const i=l.current.getContext("2d");return i?(c.current&&c.current.destroy(),(null===(e=n.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(n.data.datasets[0].backgroundColor=[Mr("--warning-color",.6),Mr("--valid-color",.6),Mr("--error-color",.6)]),(null===(t=n.data.datasets[0])||void 0===t?void 0:t.borderColor)&&(n.data.datasets[0].borderColor=[Mr("--warning-color",.6),Mr("--valid-color",.6),Mr("--error-color",.6)]),c.current=new $a(i,n),()=>{var e;null===(e=c.current)||void 0===e||e.destroy()}):void 0},[]),e.jsx("div",{id:r,className:"lv-editing-status-chart"+(o?" "+o:""),children:e.jsx("div",{className:"lv-editing-status-chart__content",children:(null===(s=n.data.datasets[0])||void 0===s?void 0:s.data.every(e=>0===e))?e.jsx("div",{className:"lv-editing-status-chart__empty",children:null!=a?a:e.jsx("div",{children:"Kein Chart verfügbar"})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"lv-editing-status-chart__chart",children:e.jsx("canvas",{ref:l})}),i]})})})},exports.LvInsightsChart=function({chartOptions:n,legend:i,noChartDisplay:a,id:r,className:o}){var s;const l=t.useRef(null),c=t.useRef(null),u=[Mr("--secondary-color",.7),Mr("--primary-color",.7),Mr("--info-color",.7),Mr("--diagram-color-5",.7)],d=[Mr("--secondary-color",1),Mr("--primary-color",1),Mr("--info-color",1),Mr("--diagram-color-5",1)];return t.useLayoutEffect(()=>{var e,t;if(!l.current)return;const i=l.current.getContext("2d");return i?(c.current&&c.current.destroy(),(null===(e=n.data.datasets[0])||void 0===e?void 0:e.backgroundColor)&&(n.data.datasets[0].backgroundColor=u),(null===(t=n.data.datasets[0])||void 0===t?void 0:t.hoverBackgroundColor)&&(n.data.datasets[0].hoverBackgroundColor=d),c.current=new $a(i,n),()=>{var e;null===(e=c.current)||void 0===e||e.destroy()}):void 0},[]),e.jsx("div",{id:r,className:"lv-insights"+(o?" "+o:""),children:e.jsx("div",{className:"lv-insights__content",children:(null===(s=n.data.datasets[0])||void 0===s?void 0:s.data.every(e=>0===e))?e.jsx("div",{className:"lv-insights__empty",children:null!=a?a:e.jsx("div",{children:"Kein Chart verfügbar"})}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"lv-insights__chart",children:e.jsx("canvas",{ref:l})}),i]})})})};
|
|
54
|
+
*/function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;return objectAssign=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={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,n){for(var a,s,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))t.call(a,c)&&(o[c]=a[c]);if(e){s=e(a);for(var h=0;h<s.length;h++)i.call(a,s[h])&&(o[s[h]]=a[s[h]])}}return o},objectAssign}function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;return ReactPropTypesSecret_1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function requireHas(){return hasRequiredHas?has:(hasRequiredHas=1,has=Function.call.bind(Object.prototype.hasOwnProperty))}function requireCheckPropTypes(){if(hasRequiredCheckPropTypes)return checkPropTypes_1;hasRequiredCheckPropTypes=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=requireReactPropTypesSecret(),i={},r=requireHas();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function n(n,a,s,o,l){if("production"!==process.env.NODE_ENV)for(var c in n)if(r(n,c)){var h;try{if("function"!=typeof n[c]){var p=Error((o||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}h=n[c](a,c,o,s,null,t)}catch(e){h=e}if(!h||h instanceof Error||e((o||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in i)){i[h.message]=!0;var u=l?l():"";e("Failed "+s+" type: "+h.message+(null!=u?u:""))}}}return n.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(i={})},checkPropTypes_1=n}function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var e=requireReactIs(),t=requireObjectAssign(),i=requireReactPropTypesSecret(),r=requireHas(),n=requireCheckPropTypes(),a=function(){};function s(){return null}return"production"!==process.env.NODE_ENV&&(a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),factoryWithTypeCheckers=function(o,l){var c="function"==typeof Symbol&&Symbol.iterator;var h="<<anonymous>>",p={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:f(s),arrayOf:function(e){return f(function(t,r,n,a,s){if("function"!=typeof e)return new d("Property `"+s+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var o=t[r];if(!Array.isArray(o))return new d("Invalid "+a+" `"+s+"` of type `"+y(o)+"` supplied to `"+n+"`, expected an array.");for(var l=0;l<o.length;l++){var c=e(o,l,n,a,s+"["+l+"]",i);if(c instanceof Error)return c}return null})},element:f(function(e,t,i,r,n){var a=e[t];return o(a)?null:new d("Invalid "+r+" `"+n+"` of type `"+y(a)+"` supplied to `"+i+"`, expected a single ReactElement.")}),elementType:f(function(t,i,r,n,a){var s=t[i];return e.isValidElementType(s)?null:new d("Invalid "+n+" `"+a+"` of type `"+y(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return f(function(t,i,r,n,a){if(!(t[i]instanceof e)){var s=e.name||h;return new d("Invalid "+n+" `"+a+"` of type `"+(((o=t[i]).constructor&&o.constructor.name?o.constructor.name:h)+"` supplied to `")+r+"`, expected instance of `"+s+"`.")}var o;return null})},node:f(function(e,t,i,r,n){return v(e[t])?null:new d("Invalid "+r+" `"+n+"` supplied to `"+i+"`, expected a ReactNode.")}),objectOf:function(e){return f(function(t,n,a,s,o){if("function"!=typeof e)return new d("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[n],c=y(l);if("object"!==c)return new d("Invalid "+s+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected an object.");for(var h in l)if(r(l,h)){var p=e(l,h,a,s,o+"."+h,i);if(p instanceof Error)return p}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a(arguments.length>1?"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."),s;return f(function(t,i,r,n,a){for(var s=t[i],o=0;o<e.length;o++)if(u(s,e[o]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===b(t)?String(t):t});return new d("Invalid "+n+" `"+a+"` of value `"+String(s)+"` supplied to `"+r+"`, expected one of "+l+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&a("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(n)+" at index "+t+"."),s}return f(function(t,n,a,s,o){for(var l=[],c=0;c<e.length;c++){var h=(0,e[c])(t,n,a,s,o,i);if(null==h)return null;h.data&&r(h.data,"expectedType")&&l.push(h.data.expectedType)}return new d("Invalid "+s+" `"+o+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return f(function(t,r,n,a,s){var o=t[r],l=y(o);if("object"!==l)return new d("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+n+"`, expected `object`.");for(var c in e){var h=e[c];if("function"!=typeof h)return g(n,a,s,c,b(h));var p=h(o,c,n,a,s+"."+c,i);if(p)return p}return null})},exact:function(e){return f(function(n,a,s,o,l){var c=n[a],h=y(c);if("object"!==h)return new d("Invalid "+o+" `"+l+"` of type `"+h+"` supplied to `"+s+"`, expected `object`.");var p=t({},n[a],e);for(var u in p){var f=e[u];if(r(e,u)&&"function"!=typeof f)return g(s,o,l,u,b(f));if(!f)return new d("Invalid "+o+" `"+l+"` key `"+u+"` supplied to `"+s+"`.\nBad object: "+JSON.stringify(n[a],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=f(c,u,s,o,l+"."+u,i);if(m)return m}return null})}};function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function f(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function n(n,s,o,c,p,u,f){if(c=c||h,u=u||o,f!==i){if(l){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 g=c+":"+o;!t[g]&&r<3&&(a("You are manually calling a React.PropTypes validation function for the `"+u+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==s[o]?n?null===s[o]?new d("The "+p+" `"+u+"` is marked as required in `"+c+"`, but its value is `null`."):new d("The "+p+" `"+u+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(s,o,c,p,u)}var s=n.bind(null,!1);return s.isRequired=n.bind(null,!0),s}function m(e){return f(function(t,i,r,n,a,s){var o=t[i];return y(o)!==e?new d("Invalid "+n+" `"+a+"` of type `"+b(o)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function g(e,t,i,r,n){return new d((e||"React class")+": "+t+" type `"+i+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+n+"`.")}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||o(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var i,r=t.call(e);if(t!==e.entries){for(;!(i=r.next()).done;)if(!v(i.value))return!1}else for(;!(i=r.next()).done;){var n=i.value;if(n&&!v(n[1]))return!1}return!0;default:return!1}}function y(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 b(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return d.prototype=Error.prototype,p.checkPropTypes=n,p.resetWarningCache=n.resetWarningCache,p.PropTypes=p,p},factoryWithTypeCheckers}function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var e=requireReactPropTypesSecret();function t(){}function i(){}return i.resetWarningCache=t,factoryWithThrowingShims=function(){function r(t,i,r,n,a,s){if(s!==e){var o=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 o.name="Invariant Violation",o}}function n(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:n,element:r,elementType:r,instanceOf:n,node:r,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:t};return a.PropTypes=a,a}}function requirePropTypes(){if(hasRequiredPropTypes)return propTypes.exports;if(hasRequiredPropTypes=1,"production"!==process.env.NODE_ENV){var e=requireReactIs();propTypes.exports=requireFactoryWithTypeCheckers()(e.isElement,true)}else propTypes.exports=requireFactoryWithThrowingShims()();return propTypes.exports}var propTypesExports=requirePropTypes(),PropTypes=getDefaultExportFromCjs(propTypesExports);const COMMON_MIME_TYPES=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function toFileWithPath(e,t,i){const r=withMimeType(e),{webkitRelativePath:n}=e,a="string"==typeof t?t:"string"==typeof n&&n.length>0?n:`./${e.name}`;return"string"!=typeof r.path&&setObjProp(r,"path",a),setObjProp(r,"relativePath",a),r}function withMimeType(e){const{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){const i=t.split(".").pop().toLowerCase(),r=COMMON_MIME_TYPES.get(i);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}function setObjProp(e,t,i){Object.defineProperty(e,t,{value:i,writable:!1,configurable:!1,enumerable:!0})}const FILES_TO_IGNORE=[".DS_Store","Thumbs.db"];function fromEvent(e){return __awaiter(this,void 0,void 0,function*(){return isObject(e)&&isDataTransfer(e.dataTransfer)?getDataTransferFiles(e.dataTransfer,e.type):isChangeEvt(e)?getInputFiles(e):Array.isArray(e)&&e.every(e=>"getFile"in e&&"function"==typeof e.getFile)?getFsHandleFiles(e):[]})}function isDataTransfer(e){return isObject(e)}function isChangeEvt(e){return isObject(e)&&isObject(e.target)}function isObject(e){return"object"==typeof e&&null!==e}function getInputFiles(e){return fromList(e.target.files).map(e=>toFileWithPath(e))}function getFsHandleFiles(e){return __awaiter(this,void 0,void 0,function*(){return(yield Promise.all(e.map(e=>e.getFile()))).map(e=>toFileWithPath(e))})}function getDataTransferFiles(e,t){return __awaiter(this,void 0,void 0,function*(){if(e.items){const i=fromList(e.items).filter(e=>"file"===e.kind);if("drop"!==t)return i;return noIgnoredFiles(flatten(yield Promise.all(i.map(toFilePromises))))}return noIgnoredFiles(fromList(e.files).map(e=>toFileWithPath(e)))})}function noIgnoredFiles(e){return e.filter(e=>-1===FILES_TO_IGNORE.indexOf(e.name))}function fromList(e){if(null===e)return[];const t=[];for(let i=0;i<e.length;i++){const r=e[i];t.push(r)}return t}function toFilePromises(e){if("function"!=typeof e.webkitGetAsEntry)return fromDataTransferItem(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?fromDirEntry(t):fromDataTransferItem(e,t)}function flatten(e){return e.reduce((e,t)=>[...e,...Array.isArray(t)?flatten(t):[t]],[])}function fromDataTransferItem(e,t){return __awaiter(this,void 0,void 0,function*(){var i;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){const t=yield e.getAsFileSystemHandle();if(null===t)throw new Error(`${e} is not a File`);if(void 0!==t){const e=yield t.getFile();return e.handle=t,toFileWithPath(e)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return toFileWithPath(r,null!==(i=null==t?void 0:t.fullPath)&&void 0!==i?i:void 0)})}function fromEntry(e){return __awaiter(this,void 0,void 0,function*(){return e.isDirectory?fromDirEntry(e):fromFileEntry(e)})}function fromDirEntry(e){const t=e.createReader();return new Promise((e,i)=>{const r=[];!function n(){t.readEntries(t=>__awaiter(this,void 0,void 0,function*(){if(t.length){const e=Promise.all(t.map(fromEntry));r.push(e),n()}else try{const t=yield Promise.all(r);e(t)}catch(e){i(e)}}),e=>{i(e)})}()})}function fromFileEntry(e){return __awaiter(this,void 0,void 0,function*(){return new Promise((t,i)=>{e.file(i=>{const r=toFileWithPath(i,e.fullPath);t(r)},e=>{i(e)})})})}var es={},hasRequiredEs;function requireEs(){return hasRequiredEs||(hasRequiredEs=1,es.__esModule=!0,es.default=function(e,t){if(e&&t){var i=Array.isArray(t)?t:t.split(",");if(0===i.length)return!0;var r=e.name||"",n=(e.type||"").toLowerCase(),a=n.replace(/\/.*$/,"");return i.some(function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):n===t})}return!0}),es}var esExports=requireEs(),_accepts=getDefaultExportFromCjs(esExports);function _toConsumableArray$1(e){return _arrayWithoutHoles$1(e)||_iterableToArray$1(e)||_unsupportedIterableToArray$2(e)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray$1(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles$1(e){if(Array.isArray(e))return _arrayLikeToArray$2(e)}function ownKeys$2(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function _objectSpread$1(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$2(Object(i),!0).forEach(function(t){_defineProperty$2(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys$2(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function _defineProperty$2(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _slicedToArray$2(e,t){return _arrayWithHoles$2(e)||_iterableToArrayLimit$2(e,t)||_unsupportedIterableToArray$2(e,t)||_nonIterableRest$2()}function _nonIterableRest$2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray$2(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$2(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray$2(e,t):void 0}}function _arrayLikeToArray$2(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=e[i];return r}function _iterableToArrayLimit$2(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var r,n,a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}function _arrayWithHoles$2(e){if(Array.isArray(e))return e}var accepts="function"==typeof _accepts?_accepts:_accepts.default,FILE_INVALID_TYPE="file-invalid-type",FILE_TOO_LARGE="file-too-large",FILE_TOO_SMALL="file-too-small",TOO_MANY_FILES="too-many-files",getInvalidTypeRejectionErr=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),t=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:FILE_INVALID_TYPE,message:"File type must be ".concat(t)}},getTooLargeRejectionErr=function(e){return{code:FILE_TOO_LARGE,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},getTooSmallRejectionErr=function(e){return{code:FILE_TOO_SMALL,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},TOO_MANY_FILES_REJECTION={code:TOO_MANY_FILES,message:"Too many files"};function isDataTransferItemWithEmptyType(e){return""===e.type&&"function"==typeof e.getAsFile}function fileAccepted(e,t){var i="application/x-moz-file"===e.type||accepts(e,t)||isDataTransferItemWithEmptyType(e);return[i,i?null:getInvalidTypeRejectionErr(t)]}function fileMatchSize(e,t,i){if(isDefined(e.size))if(isDefined(t)&&isDefined(i)){if(e.size>i)return[!1,getTooLargeRejectionErr(i)];if(e.size<t)return[!1,getTooSmallRejectionErr(t)]}else{if(isDefined(t)&&e.size<t)return[!1,getTooSmallRejectionErr(t)];if(isDefined(i)&&e.size>i)return[!1,getTooLargeRejectionErr(i)]}return[!0,null]}function isDefined(e){return null!=e}function allFilesAccepted(e){var t=e.files,i=e.accept,r=e.minSize,n=e.maxSize,a=e.multiple,s=e.maxFiles,o=e.validator;return!(!a&&t.length>1||a&&s>=1&&t.length>s)&&t.every(function(e){var t=_slicedToArray$2(fileAccepted(e,i),1)[0],a=_slicedToArray$2(fileMatchSize(e,r,n),1)[0],s=o?o(e):null;return t&&a&&!s})}function isPropagationStopped(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function isEvtWithFiles(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(e){return"Files"===e||"application/x-moz-file"===e}):!!e.target&&!!e.target.files}function onDocumentDragOver(e){e.preventDefault()}function isIe(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function isEdge(e){return-1!==e.indexOf("Edge/")}function isIeOrEdge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return isIe(e)||isEdge(e)}function composeEventHandlers(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return t.some(function(t){return!isPropagationStopped(e)&&t&&t.apply(void 0,[e].concat(r)),isPropagationStopped(e)})}}function canUseFileSystemAccessAPI(){return"showOpenFilePicker"in window}function pickerOptionsFromAccept(e){return isDefined(e)?[{description:"Files",accept:Object.entries(e).filter(function(e){var t=_slicedToArray$2(e,2),i=t[0],r=t[1],n=!0;return isMIMEType(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),n=!1),Array.isArray(r)&&r.every(isExt)||(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),n=!1),n}).reduce(function(e,t){var i=_slicedToArray$2(t,2),r=i[0],n=i[1];return _objectSpread$1(_objectSpread$1({},e),{},_defineProperty$2({},r,n))},{})}]:e}function acceptPropAsAcceptAttr(e){if(isDefined(e))return Object.entries(e).reduce(function(e,t){var i=_slicedToArray$2(t,2),r=i[0],n=i[1];return[].concat(_toConsumableArray$1(e),[r],_toConsumableArray$1(n))},[]).filter(function(e){return isMIMEType(e)||isExt(e)}).join(",")}function isAbort(e){return e instanceof DOMException&&("AbortError"===e.name||e.code===e.ABORT_ERR)}function isSecurityError(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}function isMIMEType(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function isExt(e){return/^.*\.[\w]+$/.test(e)}var _excluded$2=["children"],_excluded2=["open"],_excluded3=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],_excluded4=["refKey","onChange","onClick"];function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray$1(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray$1(e)}function _slicedToArray$1(e,t){return _arrayWithHoles$1(e)||_iterableToArrayLimit$1(e,t)||_unsupportedIterableToArray$1(e,t)||_nonIterableRest$1()}function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray$1(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$1(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray$1(e,t):void 0}}function _arrayLikeToArray$1(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=e[i];return r}function _iterableToArrayLimit$1(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var r,n,a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}function _arrayWithHoles$1(e){if(Array.isArray(e))return e}function ownKeys$1(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys$1(Object(i),!0).forEach(function(t){_defineProperty$1(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys$1(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function _defineProperty$1(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _objectWithoutProperties$1(e,t){if(null==e)return{};var i,r,n=_objectWithoutPropertiesLoose$1(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)i=a[r],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var i,r,n={},a=Object.keys(e);for(r=0;r<a.length;r++)i=a[r],t.indexOf(i)>=0||(n[i]=e[i]);return n}var Dropzone=React.forwardRef(function(e,t){var i=e.children,r=useDropzone(_objectWithoutProperties$1(e,_excluded$2)),n=r.open,a=_objectWithoutProperties$1(r,_excluded2);return React.useImperativeHandle(t,function(){return{open:n}},[n]),React.createElement(React.Fragment,null,i(_objectSpread(_objectSpread({},a),{},{open:n})))});Dropzone.displayName="Dropzone";var defaultProps={disabled:!1,getFilesFromEvent:fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Dropzone.defaultProps=defaultProps,Dropzone.propTypes={children:PropTypes.func,accept:PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),multiple:PropTypes.bool,preventDropOnDocument:PropTypes.bool,noClick:PropTypes.bool,noKeyboard:PropTypes.bool,noDrag:PropTypes.bool,noDragEventsBubbling:PropTypes.bool,minSize:PropTypes.number,maxSize:PropTypes.number,maxFiles:PropTypes.number,disabled:PropTypes.bool,getFilesFromEvent:PropTypes.func,onFileDialogCancel:PropTypes.func,onFileDialogOpen:PropTypes.func,useFsAccessApi:PropTypes.bool,autoFocus:PropTypes.bool,onDragEnter:PropTypes.func,onDragLeave:PropTypes.func,onDragOver:PropTypes.func,onDrop:PropTypes.func,onDropAccepted:PropTypes.func,onDropRejected:PropTypes.func,onError:PropTypes.func,validator:PropTypes.func};var initialState={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function useDropzone(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=_objectSpread(_objectSpread({},defaultProps),e),i=t.accept,r=t.disabled,n=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,o=t.multiple,l=t.maxFiles,c=t.onDragEnter,h=t.onDragLeave,p=t.onDragOver,u=t.onDrop,d=t.onDropAccepted,f=t.onDropRejected,m=t.onFileDialogCancel,g=t.onFileDialogOpen,v=t.useFsAccessApi,y=t.autoFocus,b=t.preventDropOnDocument,x=t.noClick,_=t.noKeyboard,S=t.noDrag,w=t.noDragEventsBubbling,C=t.onError,P=t.validator,E=React.useMemo(function(){return acceptPropAsAcceptAttr(i)},[i]),k=React.useMemo(function(){return pickerOptionsFromAccept(i)},[i]),$=React.useMemo(function(){return"function"==typeof g?g:noop},[g]),A=React.useMemo(function(){return"function"==typeof m?m:noop},[m]),T=React.useRef(null),D=React.useRef(null),M=_slicedToArray$1(React.useReducer(reducer,initialState),2),I=M[0],F=M[1],j=I.isFocused,R=I.isFileDialogActive,B=React.useRef("undefined"!=typeof window&&window.isSecureContext&&v&&canUseFileSystemAccessAPI()),O=function(){!B.current&&R&&setTimeout(function(){D.current&&(D.current.files.length||(F({type:"closeDialog"}),A()))},300)};React.useEffect(function(){return window.addEventListener("focus",O,!1),function(){window.removeEventListener("focus",O,!1)}},[D,R,A,B]);var L=React.useRef([]),q=React.useRef([]),N=function(e){T.current&&T.current.contains(e.target)||(e.preventDefault(),L.current=[])};React.useEffect(function(){return b&&(document.addEventListener("dragover",onDocumentDragOver,!1),document.addEventListener("drop",N,!1)),function(){b&&(document.removeEventListener("dragover",onDocumentDragOver),document.removeEventListener("drop",N))}},[T,b]),React.useEffect(function(){var e=function(e){q.current=[].concat(_toConsumableArray(q.current),[e.target]),isEvtWithFiles(e)&&F({isDragGlobal:!0,type:"setDragGlobal"})},t=function(e){q.current=q.current.filter(function(t){return t!==e.target&&null!==t}),q.current.length>0||F({isDragGlobal:!1,type:"setDragGlobal"})},i=function(){q.current=[],F({isDragGlobal:!1,type:"setDragGlobal"})},r=function(){q.current=[],F({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",e,!1),document.addEventListener("dragleave",t,!1),document.addEventListener("dragend",i,!1),document.addEventListener("drop",r,!1),function(){document.removeEventListener("dragenter",e),document.removeEventListener("dragleave",t),document.removeEventListener("dragend",i),document.removeEventListener("drop",r)}},[T]),React.useEffect(function(){return!r&&y&&T.current&&T.current.focus(),function(){}},[T,y,r]);var z=React.useCallback(function(e){C?C(e):console.error(e)},[C]),V=React.useCallback(function(e){e.preventDefault(),e.persist(),ie(e),L.current=[].concat(_toConsumableArray(L.current),[e.target]),isEvtWithFiles(e)&&Promise.resolve(n(e)).then(function(t){if(!isPropagationStopped(e)||w){var i=t.length,r=i>0&&allFilesAccepted({files:t,accept:E,minSize:s,maxSize:a,multiple:o,maxFiles:l,validator:P});F({isDragAccept:r,isDragReject:i>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}}).catch(function(e){return z(e)})},[n,c,z,w,E,s,a,o,l,P]),H=React.useCallback(function(e){e.preventDefault(),e.persist(),ie(e);var t=isEvtWithFiles(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&p&&p(e),!1},[p,w]),W=React.useCallback(function(e){e.preventDefault(),e.persist(),ie(e);var t=L.current.filter(function(e){return T.current&&T.current.contains(e)}),i=t.indexOf(e.target);-1!==i&&t.splice(i,1),L.current=t,t.length>0||(F({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),isEvtWithFiles(e)&&h&&h(e))},[T,h,w]),G=React.useCallback(function(e,t){var i=[],r=[];e.forEach(function(e){var t=_slicedToArray$1(fileAccepted(e,E),2),n=t[0],o=t[1],l=_slicedToArray$1(fileMatchSize(e,s,a),2),c=l[0],h=l[1],p=P?P(e):null;if(n&&c&&!p)i.push(e);else{var u=[o,h];p&&(u=u.concat(p)),r.push({file:e,errors:u.filter(function(e){return e})})}}),(!o&&i.length>1||o&&l>=1&&i.length>l)&&(i.forEach(function(e){r.push({file:e,errors:[TOO_MANY_FILES_REJECTION]})}),i.splice(0)),F({acceptedFiles:i,fileRejections:r,type:"setFiles"}),u&&u(i,r,t),r.length>0&&f&&f(r,t),i.length>0&&d&&d(i,t)},[F,o,E,s,a,l,u,d,f,P]),U=React.useCallback(function(e){e.preventDefault(),e.persist(),ie(e),L.current=[],isEvtWithFiles(e)&&Promise.resolve(n(e)).then(function(t){isPropagationStopped(e)&&!w||G(t,e)}).catch(function(e){return z(e)}),F({type:"reset"})},[n,G,z,w]),Y=React.useCallback(function(){if(B.current){F({type:"openDialog"}),$();var e={multiple:o,types:k};window.showOpenFilePicker(e).then(function(e){return n(e)}).then(function(e){G(e,null),F({type:"closeDialog"})}).catch(function(e){isAbort(e)?(A(e),F({type:"closeDialog"})):isSecurityError(e)?(B.current=!1,D.current?(D.current.value=null,D.current.click()):z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):z(e)})}else D.current&&(F({type:"openDialog"}),$(),D.current.value=null,D.current.click())},[F,$,A,v,G,z,k,o]),K=React.useCallback(function(e){T.current&&T.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Y()))},[T,Y]),X=React.useCallback(function(){F({type:"focus"})},[]),Z=React.useCallback(function(){F({type:"blur"})},[]),J=React.useCallback(function(){x||(isIeOrEdge()?setTimeout(Y,0):Y())},[x,Y]),Q=function(e){return r?null:e},ee=function(e){return _?null:Q(e)},te=function(e){return S?null:Q(e)},ie=function(e){w&&e.stopPropagation()},re=React.useMemo(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,i=void 0===t?"ref":t,n=e.role,a=e.onKeyDown,s=e.onFocus,o=e.onBlur,l=e.onClick,c=e.onDragEnter,h=e.onDragOver,p=e.onDragLeave,u=e.onDrop,d=_objectWithoutProperties$1(e,_excluded3);return _objectSpread(_objectSpread(_defineProperty$1({onKeyDown:ee(composeEventHandlers(a,K)),onFocus:ee(composeEventHandlers(s,X)),onBlur:ee(composeEventHandlers(o,Z)),onClick:Q(composeEventHandlers(l,J)),onDragEnter:te(composeEventHandlers(c,V)),onDragOver:te(composeEventHandlers(h,H)),onDragLeave:te(composeEventHandlers(p,W)),onDrop:te(composeEventHandlers(u,U)),role:"string"==typeof n&&""!==n?n:"presentation"},i,T),r||_?{}:{tabIndex:0}),d)}},[T,K,X,Z,J,V,H,W,U,_,S,r]),ne=React.useCallback(function(e){e.stopPropagation()},[]),ae=React.useMemo(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,i=void 0===t?"ref":t,r=e.onChange,n=e.onClick,a=_objectWithoutProperties$1(e,_excluded4);return _objectSpread(_objectSpread({},_defineProperty$1({accept:E,multiple:o,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Q(composeEventHandlers(r,U)),onClick:Q(composeEventHandlers(n,ne)),tabIndex:-1},i,D)),a)}},[D,i,o,U,r]);return _objectSpread(_objectSpread({},I),{},{isFocused:j&&!r,getRootProps:re,getInputProps:ae,rootRef:T,inputRef:D,open:Q(Y)})}function reducer(e,t){switch(t.type){case"focus":return _objectSpread(_objectSpread({},e),{},{isFocused:!0});case"blur":return _objectSpread(_objectSpread({},e),{},{isFocused:!1});case"openDialog":return _objectSpread(_objectSpread({},initialState),{},{isFileDialogActive:!0});case"closeDialog":return _objectSpread(_objectSpread({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return _objectSpread(_objectSpread({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return _objectSpread(_objectSpread({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:!1});case"setDragGlobal":return _objectSpread(_objectSpread({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return _objectSpread({},initialState);default:return e}}function noop(){}function fileSizeSI(e){const t=Math,i=t.log;let r=i(e)/i(1e3)|0;return(e/t.pow(1e3,r)).toFixed(2)+" "+(r?"kMGTPEZY"[--r]+"B":"Bytes")}function BeeUploadDialog({id:e,className:t,type:i="primary",visible:r,disabled:n,locale:a="de-DE",header:s,info:o,titleLabel:l,titleVisible:c,copyrightLabel:h,copyrightVisible:p,dropzoneTitle:u="",dropzoneDescription:d="",dropzoneAddLabel:f,dropzoneFormats:m,progressVisible:g,progressMessage:v,errorVisible:y,errorHeadline:b="",errorDescription:x,onHide:_,onUpload:S}){const w=null!=e?e:libExports.useId(1,"bee-upload-dialog")[0],C=React.createRef(),[P,E]=React.useState(),[k,$]=React.useState(),[A,T]=React.useState(""),D="bee-upload-dialog"+("primary"===i?" bee-upload-dialog-primary":"secondary"===i?" bee-upload-dialog-secondary":" bee-upload-dialog-primary")+(t?" "+t:"");function M(){_&&(_(),E(void 0))}function I(){(function(){if(P)return!0;return!1})()&&S&&P&&S({file:P,name:k,copyright:A,originalFileName:P.name})}const F=()=>{C.current&&C.current.open()},j=()=>{let e="";for(const[t,i]of Object.entries(null!=m?m:{}))e+=i+", ";return e=e.slice(0,-1),require$$0.jsxs("div",{className:"bee-upload-dialog-empty-drop",children:[require$$0.jsx(BeeContentHeadline,{headlineType:"h4",value:u,type:"primary"}),require$$0.jsx(BeeContentParagraph,{value:d,size:"small",type:"default"}),require$$0.jsx(BeeButton,{label:f,disabled:n,type:"primary",isLoading:!1,onClick:F}),require$$0.jsx("div",{className:"bee-upload-dialog-formats",children:"Unterstützte Formate sind: "+e})]})};return require$$0.jsx("div",{onKeyDown:e=>function(e){e.keyCode===enter&&P&&I(),e.keyCode===escape&&M()}(e),tabIndex:0,children:require$$0.jsxs(dialog.Dialog,{id:w,className:D,header:s,visible:r,modal:!0,footer:y?require$$0.jsx("div",{children:require$$0.jsx(BeeButton,{label:"Schließen",disabled:!1,isLoading:!1,type:i,onClick:()=>M()})}):require$$0.jsxs("div",{children:[require$$0.jsx(BeeLinkButton,{label:"Abbrechen",raised:!1,disabled:g,isLoading:!1,type:"primary",onClick:()=>M()}),require$$0.jsx(BeeButton,{label:"Hochladen",disabled:!P||g,type:i,isLoading:!1,onClick:()=>I()})]}),onHide:()=>M(),children:[o?require$$0.jsx(BeeContentParagraph,{value:o,size:"medium",type:"default"}):null,require$$0.jsx(Dropzone,{ref:C,noClick:!0,noKeyboard:!0,accept:null!=m?m:{},disabled:null!=n&&n,onDrop:e=>{e&&e.length>0&&(E(e[0]),$(e[0]?e[0].name:void 0))},children:({getRootProps:e,getInputProps:t})=>require$$0.jsx("div",{className:"container",children:require$$0.jsxs("div",Object.assign({},e({className:"bee-upload-dialog-dropzone"}),{children:[require$$0.jsx("input",Object.assign({},t())),y?require$$0.jsxs("div",{className:"bee-upload-dialog-error",children:[require$$0.jsx(BeeContentHeadline,{headlineType:"h4",value:b,type:"primary"}),require$$0.jsxs("div",{className:"grid",children:[require$$0.jsx("i",{className:"col-fixed col-align-center pi pi-exclamation-triangle"}),require$$0.jsx("p",{className:"col col-align-center bee-upload-dialog-error-descr",children:x})]})]}):P?g?require$$0.jsxs("div",{className:"bee-upload-dialog-progress",children:[require$$0.jsx(BeeLoadingSpinner,{strokeWidth:"3",type:"mixed"}),require$$0.jsx("div",{className:"bee-upload-dialog-progress-msg",children:v})]}):P?require$$0.jsxs("div",{className:"bee-upload-dialog-selected-drop",children:[require$$0.jsx(BeeContentHeadline,{headlineType:"h4",value:'"'+P.name+'" wurde ausgewählt',type:"primary"}),require$$0.jsx("i",{className:"pi pi-file"}),require$$0.jsx(BeeButton,{label:"Datei ändern",disabled:n,type:"primary",isLoading:!1,onClick:F}),require$$0.jsxs("div",{className:"bee-upload-dialog-file-info",children:[require$$0.jsxs("span",{children:["Dateigröße: ",fileSizeSI(P.size)]}),require$$0.jsxs("span",{children:[" Letzte Änderung: ",new Date(P.lastModified).toLocaleDateString(a)]})]})]}):j():j()]}))})}),!P||g||y?null:(()=>{if(c||p)return require$$0.jsxs("div",{children:[require$$0.jsx("p",{children:"Weitere Informationen:"}),c?require$$0.jsx(BeeTextInput,{label:l,value:k,disabled:n,formstate:"neutral",readOnly:g,required:!1,onChange:e=>$(e.target.value)}):null,p?require$$0.jsx(BeeTextInput,{label:h,value:A,disabled:n,formstate:"neutral",readOnly:g,required:!1,onChange:e=>T(e.target.value)}):null]})})()]})})}const DEFAULT_IMAGE_FORMATS={"image/*":[".png",".jpg",".jpeg",".gif",".webp"]};function BeeImageUploadDialog({id:e,className:t,type:i="primary",visible:r,disabled:n,dropzoneTitle:a="",dropzoneDescription:s="",dropzoneAddLabel:o,dropzoneFormats:l,progressVisible:c,progressMessage:h,errorVisible:p,errorHeadline:u="",errorDescription:d,cropShape:f="rect",aspectWidth:m,aspectHeight:g,cropSize:v,maxOutputSize:y,showZoom:b,showRotation:x,controlsPosition:_="overlay",minZoom:S,maxZoom:w,zoomStep:C,zoomLabel:P,rotateLabel:E,onHide:k,onUpload:$}){const A=null!=e?e:libExports.useId(1,"bee-image-upload-dialog")[0],T=React.useRef(null),D=React.useRef(null),[M,I]=React.useState(),[F,j]=React.useState(),R=null!=l?l:DEFAULT_IMAGE_FORMATS;React.useEffect(()=>{if(!M)return void j(void 0);const e=URL.createObjectURL(M);return j(e),()=>{URL.revokeObjectURL(e)}},[M]);const B="bee-image-upload-dialog"+("primary"===i?" bee-image-upload-dialog-primary":"secondary"===i?" bee-image-upload-dialog-secondary":" bee-image-upload-dialog-primary")+(t?" "+t:"");function O(){k&&(k(),I(void 0))}function L(){return __awaiter(this,void 0,void 0,function*(){if(M&&D.current){const e=yield D.current.getCroppedFile();$({file:e,name:void 0,copyright:void 0,originalFileName:M.name})}})}function q(){T.current&&T.current.open()}const N=()=>{const e=[];for(const[t,i]of Object.entries(R))e.push(...i);const t=[...new Set(e)].join(", ");return require$$0.jsxs("div",{className:"bee-image-upload-dialog-empty-drop",children:[require$$0.jsx(BeeContentHeadline,{headlineType:"h4",value:a,type:"primary"}),require$$0.jsx(BeeContentParagraph,{value:s,size:"small",type:"default"}),require$$0.jsx(BeeButton,{label:o,disabled:n,type:"primary",isLoading:!1,onClick:q}),require$$0.jsx("div",{className:"bee-image-upload-dialog-formats",children:"Unterstützte Formate sind: "+t})]})};return require$$0.jsx("div",{onKeyDown:e=>function(e){e.keyCode===enter&&M&&L(),e.keyCode===escape&&O()}(e),tabIndex:0,children:require$$0.jsx(dialog.Dialog,{id:A,className:B,showHeader:!1,visible:r,modal:!0,footer:p?require$$0.jsx("div",{children:require$$0.jsx(BeeButton,{label:"Schließen",disabled:!1,isLoading:!1,type:i,onClick:()=>O()})}):M&&!c?require$$0.jsxs("div",{className:"flex justify-content-between align-items-center",children:[require$$0.jsx(BeeLinkButton,{label:"Datei ändern",raised:!1,disabled:c,isLoading:!1,type:"primary",onClick:()=>q()}),require$$0.jsxs("div",{className:"flex align-items-center gap-2",children:[require$$0.jsx(BeeLinkButton,{label:"Abbrechen",raised:!1,disabled:c,isLoading:!1,type:"primary",onClick:()=>O()}),require$$0.jsx(BeeButton,{label:"Hochladen",disabled:!M||c,type:i,isLoading:!1,onClick:()=>L()})]})]}):require$$0.jsxs("div",{className:"flex justify-content-end align-items-center gap-2",children:[require$$0.jsx(BeeLinkButton,{label:"Abbrechen",raised:!1,disabled:c,isLoading:!1,type:"primary",onClick:()=>O()}),require$$0.jsx(BeeButton,{label:"Hochladen",disabled:!M||c,type:i,isLoading:!1,onClick:()=>L()})]}),onHide:()=>O(),children:(()=>{const e="bee-image-upload-dialog-dropzone"+(M&&!c&&!p?" bee-image-upload-dialog-dropzone--cropper-active":"");return require$$0.jsx(Dropzone,{ref:T,noClick:!0,noKeyboard:!0,accept:R,disabled:null!=n&&n,onDrop:e=>{e&&e.length>0&&I(e[0])},children:({getRootProps:t,getInputProps:i})=>require$$0.jsx("div",{className:"container",children:require$$0.jsxs("div",Object.assign({},t({className:e}),{"aria-label":"Bildupload Bereich - Datei hierher ziehen oder klicken zum Auswählen",children:[require$$0.jsx("input",Object.assign({},i({"aria-label":"Bilddatei auswählen"}))),p?require$$0.jsxs("div",{className:"bee-image-upload-dialog-error",role:"alert",children:[require$$0.jsx(BeeContentHeadline,{headlineType:"h4",value:u,type:"primary"}),require$$0.jsxs("div",{className:"grid",children:[require$$0.jsx("i",{className:"col-fixed col-align-center pi pi-exclamation-triangle","aria-hidden":"true"}),require$$0.jsx("p",{className:"col col-align-center bee-image-upload-dialog-error-descr",children:d})]})]}):M?c?require$$0.jsxs("div",{className:"bee-image-upload-dialog-progress",role:"status","aria-live":"polite","aria-busy":"true",children:[require$$0.jsx(BeeLoadingSpinner,{strokeWidth:"3",type:"mixed"}),require$$0.jsx("div",{className:"bee-image-upload-dialog-progress-msg",children:h})]}):F?require$$0.jsx("div",{className:"bee-image-upload-dialog-cropper","aria-label":"Bildbearbeitung",children:require$$0.jsx(BeeImageCropper,{ref:D,image:F,cropShape:f,aspectWidth:m,aspectHeight:g,cropSize:v,maxOutputSize:y,showZoom:b,showRotation:x,controlsPosition:_,minZoom:S,maxZoom:w,zoomStep:C,disabled:n,zoomLabel:P,rotateLabel:E})}):N():N()]}))})})})()})})}const ERROR_STREET="Bitte geben Sie eine Straße an.",ERROR_HOUSENUMBER="Bitte geben Sie eine Hausnr. an.",ERROR_ZIP="Bitte geben Sie eine Postleitzahl an.",ERROR_CITY="Bitte geben Sie eine Stadt an.",ERROR_COUNTRY="Bitte geben Sie ein Land an.",ERROR_REGION="Bitte geben Sie eine Region an.";function BeeAddressForm({disabled:e=!1,readOnly:t=!1,required:i=!1,countryOptions:r,regionOptions:n,countryOptionLabel:a="label",regionOptionLabel:s="label",street:o,housenumber:l,zip:c,city:h,country:p,region:u,isErrorStreet:d=!1,isErrorHousenumber:f=!1,isErrorZip:m=!1,isErrorCity:g=!1,isErrorCountry:v=!1,isErrorRegion:y=!1,onStreetChange:b,onHousenumberChange:x,onZipChange:_,onCityChange:S,onCountryChange:w,onRegionChange:C,onStreetFocusOut:P,onHousenumberFocusOut:E,onZipFocusOut:k,onCityFocusOut:$,onCountryFocusOut:A,onRegionFocusOut:T,className:D}){function M(e){null==b||b(e)}function I(e){null==x||x(e)}function F(e){null==_||_(e)}function j(e){null==S||S(e)}function R(e){null==P||P(e)}function B(e){null==E||E(e)}function O(e){null==k||k(e)}function L(e){null==$||$(e)}const q="bee-address-form grid"+(D?" "+D:"");return require$$0.jsxs("div",{className:q,children:[require$$0.jsx("div",{className:"col-12 sm:col-9 md:col-9 lg:col-8",children:require$$0.jsx(BeeTextInput,{label:"Straße",statusLabel:d?ERROR_STREET:void 0,value:o,disabled:e,formstate:d?"error":"none",readOnly:t,required:i,onChange:M,onFocusOut:R})}),require$$0.jsx("div",{className:"col-12 sm:col-3 md:col-3 lg:col-4",children:require$$0.jsx(BeeTextInput,{label:"Hausnr.",statusLabel:f?ERROR_HOUSENUMBER:void 0,value:l,disabled:e,formstate:f?"error":"none",readOnly:t,required:i,onChange:I,onFocusOut:B})}),require$$0.jsx("div",{className:"col-12 sm:col-3 md:col-3 lg:col-4",children:require$$0.jsx(BeeTextInput,{label:"PLZ",statusLabel:m?ERROR_ZIP:void 0,value:c,disabled:e,formstate:m?"error":"none",readOnly:t,required:i,onChange:F,onFocusOut:O})}),require$$0.jsx("div",{className:"col-12 sm:col-9 md:col-9 lg:col-8",children:require$$0.jsx(BeeTextInput,{label:"Stadt",statusLabel:g?ERROR_CITY:void 0,value:h,disabled:e,formstate:g?"error":"none",readOnly:t,required:i,onChange:j,onFocusOut:L})}),require$$0.jsx("div",{className:"col-12 sm:col-6 md:col-6 lg:col-6",children:require$$0.jsx(BeeDropDown,{label:"Land",statusLabel:v?ERROR_COUNTRY:void 0,value:p,formstate:v?"error":"none",options:r,optionLabel:a,disabled:e,readOnly:t,required:i,onChange:e=>{!function(e){null==w||w(e)}(e),function(e){null==A||A(e)}(e)}})}),require$$0.jsx("div",{className:"col-12 sm:col-6 md:col-6 lg:col-6",children:require$$0.jsx(BeeDropDown,{label:"Region",statusLabel:y?ERROR_REGION:void 0,disabled:e,value:u,formstate:y?"error":"none",readOnly:t,required:i,options:n,optionLabel:s,onChange:e=>{!function(e){null==C||C(e)}(e),function(e){null==T||T(e)}(e)}})})]})}function BeeChatWindow({name:e,messages:t,participants:i,chatRoomId:r,currentUserId:n,readOnly:a,disabled:s,showLoaderOldMsgs:o,showLoaderNewMsgs:l,project:c,maxWindow:h=!1,inputValue:p,onInputChange:u,onMessageSubmit:d,canDeleteMessage:f,onMsgDelete:m,onDownloadFile:g}){const[v,y]=React.useState(""),[b,x]=React.useState(!1),_=React.useRef(null),S=void 0!==u,w=S?null!=p?p:"":v,C=S?null!=u?u:()=>{}:y;function P(){const e=null==w?void 0:w.trim();!e||s||a||(null==d||d(e),C(""))}function E(e){"Enter"!==e.key||e.shiftKey||(e.preventDefault(),e.stopPropagation(),P())}const k=h,$=!0;function A(e){return require$$0.jsxs(require$$0.Fragment,{children:[o&&require$$0.jsx("div",{className:"bee-chat-window__loader-old",children:require$$0.jsx(BeeLoadingSpinner,{type:"primary",size:"2rem"})}),require$$0.jsx("div",{className:"bee-chat-window__separator"}),t&&t.length>0?t.map(t=>{var a,s;const o=function(e){if(e.participantId)return null==i?void 0:i.find(t=>t.id===e.participantId)}(t),l=(null==o?void 0:o.userId)===n;return require$$0.jsx(BeeChatMessage,Object.assign({maxWindow:e,msg:t,participant:o,project:c,chatMsgSource:c,isCurrentUser:l},t.id&&(null==o?void 0:o.id)&&m?{showDeleteButton:!f||f(t),onMsgDelete:()=>{var e,i;m(null!=r?r:"",null!==(e=o.id)&&void 0!==e?e:"",null!==(i=t.id)&&void 0!==i?i:"")}}:{},{onDownload:()=>null==g?void 0:g(t)}),null!==(s=null!==(a=t.id)&&void 0!==a?a:t.createdAt)&&void 0!==s?s:Math.random())}):require$$0.jsx("div",{className:"bee-chat-window__no-messages",children:"Es sind keine Nachrichten verfügbar"}),require$$0.jsx("div",{className:"bee-chat-window__separator"}),l&&require$$0.jsx("div",{className:"bee-chat-window__loader-new",children:require$$0.jsx(BeeLoadingSpinner,{type:"primary",size:"2rem"})})]})}function T(e){const t=e?5:1;return!a&&require$$0.jsx("div",{className:"footer-container",children:require$$0.jsxs("div",{className:"textarea-container",onKeyDown:E,children:[require$$0.jsx(BeeTextArea,{label:"Kommentar schreiben...",value:w,rows:t,autoResize:e,readOnly:null!=a&&a,required:!1,onChange:e=>{var t;return C(null!==(t=e.target.value)&&void 0!==t?t:"")}}),require$$0.jsx(BeeIconButton,{iconClass:"pi pi-send",rounded:!1,disabled:s||!(null==w?void 0:w.trim()),type:"lightPrimary",isLoading:!1,onClick:P})]})})}return require$$0.jsxs(require$$0.Fragment,{children:[require$$0.jsxs("div",{className:"bee-chat-window bee-chat-window__room",children:[require$$0.jsxs("div",{className:"bee-chat-window__header",children:[require$$0.jsx("h3",{className:"bee-chat-window__title",children:e}),require$$0.jsx(BeeIconButton,{className:"bee-chat-window__maximize-btn",iconClass:b?"pi pi-window-minimize":"pi pi-window-maximize",rounded:!0,type:"lightPrimary",onClick:()=>x(!b)})]}),require$$0.jsxs("div",{className:"bee-chat-window__body",children:[require$$0.jsx("div",{className:"bee-chat-window__messages",ref:_,children:require$$0.jsx("div",{className:"bee-chat-window__content",children:A(k)})}),T(k)]})]}),require$$0.jsx(dialog.Dialog,{header:e,visible:b,onHide:()=>x(!1),className:"bee-chat-window__dialog bee-dialog-primary",maximizable:!1,draggable:!1,footer:a?require$$0.jsx("div",{className:"bee-chat-window__footer-spacer"}):T($),children:require$$0.jsx("div",{className:"bee-chat-window__messages bee-chat-window__messages--dialog",children:require$$0.jsx("div",{className:"bee-chat-window__content",children:A($)})})})]})}function BeeChatRoom({title:e,readOnly:t,chatRoomId:i,project:r=exports.ChatMessageSourceEnum.AUDIT,currentUserId:n,messages:a,participants:s,showLoaderOldMsgs:o,showLoaderNewMsgs:l,disabled:c,inputValue:h,hasError:p,onInputChange:u,onDownloadFile:d,onMessageSubmit:f,canDeleteMessage:m,onMsgDelete:g,onRetry:v}){return p?require$$0.jsxs("div",{className:"bee-chat-room-error",children:[require$$0.jsx("p",{children:"Chat konnte nicht geladen werden. Bitte versuchen Sie es erneut."}),require$$0.jsx(BeeButton,{label:"Erneut versuchen",type:"primary",onClick:null!=v?v:()=>{}})]}):require$$0.jsx(BeeChatWindow,{name:e,messages:a,participants:s,chatRoomId:i,currentUserId:n,readOnly:t,disabled:c,showLoaderOldMsgs:o,showLoaderNewMsgs:l,project:r,inputValue:h,onInputChange:null!=u?u:()=>{},onMessageSubmit:null!=f?f:()=>{},canDeleteMessage:null!=m?m:()=>!0,onMsgDelete:null!=g?g:()=>{},onDownloadFile:null!=d?d:()=>{}})}var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,function(module,exports$1){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var i,r,n=e.length;for(i=0;i<n;i+=1)for(var a in r=e[i].prototype)Object.prototype.hasOwnProperty.call(r,a)&&(t.prototype[a]=r[a])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,i=this.audios.length;for(t=0;t<i;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var i,r=0,n=[];switch(e){case"int16":case"uint8c":i=1;break;default:i=1.1}for(r=0;r<t;r+=1)n.push(i);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,i){return"float32"===t?new Float32Array(i):"int16"===t?new Int16Array(i):"uint8c"===t?new Uint8ClampedArray(i):e(t,i)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=t.length;for(e=0;e<i;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,i=createSizedArray(e.length),r=e.length;for(t=0;t<r;t+=1)i[t]=Math.abs(e[t]);return i}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,i,r){this.type=e,this.currentTime=t,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,i,r){this.type=e,this.currentLoop=i,this.totalLoops=t,this.direction=r<0?-1:1}function BMSegmentStartEvent(e,t,i){this.type=e,this.firstFrame=t,this.totalFrames=i}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,i){var r,n,a,s,o,l,c,h;switch(l=i*(1-t),c=i*(1-(o=6*e-(s=Math.floor(6*e)))*t),h=i*(1-(1-o)*t),s%6){case 0:r=i,n=h,a=l;break;case 1:r=c,n=i,a=l;break;case 2:r=l,n=i,a=h;break;case 3:r=l,n=c,a=i;break;case 4:r=h,n=l,a=i;break;case 5:r=i,n=l,a=c}return[r,n,a]}function RGBtoHSV(e,t,i){var r,n=Math.max(e,t,i),a=Math.min(e,t,i),s=n-a,o=0===n?0:s/n,l=n/255;switch(n){case a:r=0;break;case e:r=t-i+s*(t<i?6:0),r/=6*s;break;case t:r=i-e+2*s,r/=6*s;break;case i:r=e-t+4*s,r/=6*s}return[r,o,l]}function addSaturationToRGB(e,t){var i=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return i[1]+=t,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,t){var i=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return i[2]+=t,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,t){var i=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return i[0]+=t/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e,t,i=[];for(e=0;e<256;e+=1)t=e.toString(16),i[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+i[e]+i[t]+i[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,i=1,r=[],n={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){n.onmessage({data:e})}};function s(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(i);return new Worker(r)}return e=t,n}(function(e){if(a.dataManager||(a.dataManager=function(){function e(n,a){var s,o,l,c,h,u,d=n.length;for(o=0;o<d;o+=1)if("ks"in(s=n[o])&&!s.completed){if(s.completed=!0,s.hasMask){var f=s.masksProperties;for(c=f.length,l=0;l<c;l+=1)if(f[l].pt.k.i)r(f[l].pt.k);else for(u=f[l].pt.k.length,h=0;h<u;h+=1)f[l].pt.k[h].s&&r(f[l].pt.k[h].s[0]),f[l].pt.k[h].e&&r(f[l].pt.k[h].e[0])}0===s.ty?(s.layers=t(s.refId,a),e(s.layers,a)):4===s.ty?i(s.shapes):5===s.ty&&p(s)}}function t(e,t){var i=function(e,t){for(var i=0,r=t.length;i<r;){if(t[i].id===e)return t[i];i+=1}return null}(e,t);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(e){var t,n,a;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(a=e[t].ks.k.length,n=0;n<a;n+=1)e[t].ks.k[n].s&&r(e[t].ks.k[n].s[0]),e[t].ks.k[n].e&&r(e[t].ks.k[n].e[0]);else"gr"===e[t].ty&&i(e[t].it)}function r(e){var t,i=e.i.length;for(t=0;t<i;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function n(e,t){var i=t?t.split("."):[100,100,100];return e[0]>i[0]||!(i[0]>e[0])&&(e[1]>i[1]||!(i[1]>e[1])&&(e[2]>i[2]||!(i[2]>e[2])&&null))}var a,s=function(){var e=[4,4,14];function t(e){var t=e.t.d;e.t.d={k:[{s:t,t:0}]}}function i(e){var i,r=e.length;for(i=0;i<r;i+=1)5===e[i].ty&&t(e[i])}return function(t){if(n(e,t.v)&&(i(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&i(t.assets[r].layers)}}}(),o=(a=[4,7,99],function(e){if(e.chars&&!n(a,e.v)){var t,r=e.chars.length;for(t=0;t<r;t+=1){var s=e.chars[t];s.data&&s.data.shapes&&(i(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(s.data.shapes.push({ty:"no"}),s.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t=e.t.p;"number"==typeof t.a&&(t.a={a:0,k:t.a}),"number"==typeof t.p&&(t.p={a:0,k:t.p}),"number"==typeof t.r&&(t.r={a:0,k:t.r})}function i(e){var i,r=e.length;for(i=0;i<r;i+=1)5===e[i].ty&&t(e[i])}return function(t){if(n(e,t.v)&&(i(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&i(t.assets[r].layers)}}}(),c=function(){var e=[4,1,9];function t(e){var i,r,n,a=e.length;for(i=0;i<a;i+=1)if("gr"===e[i].ty)t(e[i].it);else if("fl"===e[i].ty||"st"===e[i].ty)if(e[i].c.k&&e[i].c.k[0].i)for(n=e[i].c.k.length,r=0;r<n;r+=1)e[i].c.k[r].s&&(e[i].c.k[r].s[0]/=255,e[i].c.k[r].s[1]/=255,e[i].c.k[r].s[2]/=255,e[i].c.k[r].s[3]/=255),e[i].c.k[r].e&&(e[i].c.k[r].e[0]/=255,e[i].c.k[r].e[1]/=255,e[i].c.k[r].e[2]/=255,e[i].c.k[r].e[3]/=255);else e[i].c.k[0]/=255,e[i].c.k[1]/=255,e[i].c.k[2]/=255,e[i].c.k[3]/=255}function i(e){var i,r=e.length;for(i=0;i<r;i+=1)4===e[i].ty&&t(e[i].shapes)}return function(t){if(n(e,t.v)&&(i(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&i(t.assets[r].layers)}}}(),h=function(){var e=[4,4,18];function t(e){var i,r,n;for(i=e.length-1;i>=0;i-=1)if("sh"===e[i].ty)if(e[i].ks.k.i)e[i].ks.k.c=e[i].closed;else for(n=e[i].ks.k.length,r=0;r<n;r+=1)e[i].ks.k[r].s&&(e[i].ks.k[r].s[0].c=e[i].closed),e[i].ks.k[r].e&&(e[i].ks.k[r].e[0].c=e[i].closed);else"gr"===e[i].ty&&t(e[i].it)}function i(e){var i,r,n,a,s,o,l=e.length;for(r=0;r<l;r+=1){if((i=e[r]).hasMask){var c=i.masksProperties;for(a=c.length,n=0;n<a;n+=1)if(c[n].pt.k.i)c[n].pt.k.c=c[n].cl;else for(o=c[n].pt.k.length,s=0;s<o;s+=1)c[n].pt.k[s].s&&(c[n].pt.k[s].s[0].c=c[n].cl),c[n].pt.k[s].e&&(c[n].pt.k[s].e[0].c=c[n].cl)}4===i.ty&&t(i.shapes)}}return function(t){if(n(e,t.v)&&(i(t.layers),t.assets)){var r,a=t.assets.length;for(r=0;r<a;r+=1)t.assets[r].layers&&i(t.assets[r].layers)}}}();function p(e){0===e.t.a.length&&e.t.p}var u={completeData:function(i){i.__complete||(c(i),s(i),o(i),l(i),h(i),e(i.layers,i.assets),function(i,r){if(i){var n=0,a=i.length;for(n=0;n<a;n+=1)1===i[n].t&&(i[n].data.layers=t(i[n].data.refId,r),e(i[n].data.layers,r))}}(i.chars,i.assets),i.__complete=!0)}};return u.checkColors=c,u.checkChars=o,u.checkPathProperties=l,u.checkShapes=h,u.completeLayers=e,u}()),a.assetLoader||(a.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,i,r,n){var a,s=new XMLHttpRequest;try{s.responseType="json"}catch(e){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)a=e(s),r(a);else try{a=e(s),r(a)}catch(e){n&&n(e)}};try{s.open(["G","E","T"].join(""),t,!0)}catch(e){s.open(["G","E","T"].join(""),i+"/"+t,!0)}s.send()}}}()),"loadAnimation"===e.data.type)a.assetLoader.load(e.data.path,e.data.fullPath,function(t){a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})},function(){a.postMessage({id:e.data.id,status:"error"})});else if("complete"===e.data.type){var t=e.data.animation;a.dataManager.completeData(t),a.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&a.assetLoader.load(e.data.path,e.data.fullPath,function(t){a.postMessage({id:e.data.id,payload:t,status:"success"})},function(){a.postMessage({id:e.data.id,status:"error"})})}),t.onmessage=function(e){var t=e.data,i=t.id,n=r[i];r[i]=null,"success"===t.status?n.onComplete(t.payload):n.onError&&n.onError()})}function o(e,t){var n="processId_"+(i+=1);return r[n]={onComplete:e,onError:t},n}return{loadAnimation:function(e,i,r){s();var n=o(i,r);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(e,i,r){s();var n=o(i,r);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(e,i,r){s();var n=o(i,r);t.postMessage({type:"complete",animation:e,id:n})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(e,t,i){var r="";if(e.e)r=e.p;else if(t){var n=e.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),r=t+n}else r=i,r+=e.u?e.u:"",r+=e.p;return r}function n(e){var t=0,i=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(i)),t+=1}.bind(this),50)}function a(e){var t={assetData:e},i=r(e,this.assetsPath,this.path);return dataManager.loadData(i,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function s(){this._imageLoaded=t.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(e,t){var i;this.imagesLoadedCb=t;var r=e.length;for(i=0;i<r;i+=1)e[i].layers||(e[i].t&&"seq"!==e[i].t?3===e[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[i]))):(this.totalImages+=1,this.images.push(this._createImageData(e[i]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,i=this.images.length;t<i;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var i=r(t,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),n.src=i;var a={img:n,assetData:t};return a},createImageData:function(t){var i=r(t,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",function(){a.img=e,this._imageLoaded()}.bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var a={img:n,assetData:t};return a},imageLoaded:t,footageLoaded:i,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},s}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var i=this._cbs[e],r=0;r<i.length;r+=1)i[r](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var i=0,r=this._cbs[e].length;i<r;)this._cbs[e][i]===t&&(this._cbs[e].splice(i,1),i-=1,r-=1),i+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,i=e.split("\r\n"),r={},n=0,a=0;a<i.length;a+=1)2===(t=i[a].split(":")).length&&(r[t[0]]=t[1].trim(),n+=1);if(0===n)throw new Error;return r}return function(t){for(var i=[],r=0;r<t.length;r+=1){var n=t[r],a={time:n.tm,duration:n.dr};try{a.payload=JSON.parse(t[r].cm)}catch(i){try{a.payload=e(t[r].cm)}catch(e){a.payload={name:t[r].cm}}}i.push(a)}return i}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,i=this.compositions.length;t<i;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var i=getRenderer(t);this.renderer=new i(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var i={wrapper:e,animationData:t},r=e.attributes;i.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",i.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===n?i.loop=!1:"true"===n?i.loop=!0:""!==n&&(i.loop=parseInt(n,10));var a=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;i.autoplay="false"!==a,i.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,i,r=this.animationData.layers,n=r.length,a=e.layers,s=a.length;for(i=0;i<s;i+=1)for(t=0;t<n;){if(r[t].id===a[i].id){r[t]=a[i];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(n=e.assets.length,t=0;t<n;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var i="number"==typeof e?e:void 0,r="number"==typeof t?t:void 0;this.renderer.updateContainerSize(i,r)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,i=0;i<this.markers.length;i+=1)if((t=this.markers[i]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,i){if(!i||this.name===i){var r=Number(e);if(isNaN(r)){var n=this.getMarkerData(e);n&&this.goToAndStop(n.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,i){if(!i||this.name===i){var r=Number(e);if(isNaN(r)){var n=this.getMarkerData(e);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(r,t,i);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,i=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(i=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),i&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?i=e:this.currentRawFrame+this.firstFrame>t&&(i=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var i,r=e.length;for(i=0;i<r;i+=1)this.segments.push(e[i])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),t=this.assetsPath+i}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,i=this.assets.length;t<i;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,i){try{this.renderer.getElementByPath(e).updateDocumentData(t,i)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],i=0,r=0,n=0,a=!0,s=!1;function o(e){for(var i=0,n=e.target;i<r;)t[i].animation===n&&(t.splice(i,1),i-=1,r-=1,n.isPaused||h()),i+=1}function l(e,i){if(!e)return null;for(var n=0;n<r;){if(t[n].elem===e&&null!==t[n].elem)return t[n].animation;n+=1}var a=new AnimationItem;return p(a,e),a.setData(e,i),a}function c(){n+=1,f()}function h(){n-=1}function p(e,i){e.addEventListener("destroy",o),e.addEventListener("_active",c),e.addEventListener("_idle",h),t.push({elem:i,animation:e}),r+=1}function u(e){var o,l=e-i;for(o=0;o<r;o+=1)t[o].animation.advanceTime(l);i=e,n&&!s?window.requestAnimationFrame(u):a=!0}function d(e){i=e,window.requestAnimationFrame(u)}function f(){!s&&n&&a&&(window.requestAnimationFrame(d),a=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return p(t,null),t.setParams(e),t},e.setSpeed=function(e,i){var n;for(n=0;n<r;n+=1)t[n].animation.setSpeed(e,i)},e.setDirection=function(e,i){var n;for(n=0;n<r;n+=1)t[n].animation.setDirection(e,i)},e.play=function(e){var i;for(i=0;i<r;i+=1)t[i].animation.play(e)},e.pause=function(e){var i;for(i=0;i<r;i+=1)t[i].animation.pause(e)},e.stop=function(e){var i;for(i=0;i<r;i+=1)t[i].animation.stop(e)},e.togglePause=function(e){var i;for(i=0;i<r;i+=1)t[i].animation.togglePause(e)},e.searchAnimations=function(e,t,i){var r,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=n.length;for(r=0;r<a;r+=1)i&&n[r].setAttribute("data-bm-type",i),l(n[r],e);if(t&&0===a){i||(i="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",i),s.appendChild(o),l(o,e)}},e.resize=function(){var e;for(e=0;e<r;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,i,n){var a;for(a=0;a<r;a+=1)t[a].animation.goToAndStop(e,i,n)},e.destroy=function(e){var i;for(i=r-1;i>=0;i-=1)t[i].animation.destroy(e)},e.freeze=function(){s=!0},e.unfreeze=function(){s=!1,f()},e.setVolume=function(e,i){var n;for(n=0;n<r;n+=1)t[n].animation.setVolume(e,i)},e.mute=function(e){var i;for(i=0;i<r;i+=1)t[i].animation.mute(e)},e.unmute=function(e){var i;for(i=0;i<r;i+=1)t[i].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,i=t.length,r=[];for(e=0;e<i;e+=1)r.push(t[e].animation);return r},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,i,r,n,a){var s=a||("bez_"+e+"_"+i+"_"+r+"_"+n).replace(/\./g,"p");if(t[s])return t[s];var o=new h([e,i,r,n]);return t[s]=o,o}},t={},i=11,r=1/(i-1),n="function"==typeof Float32Array;function a(e,t){return 1-3*t+3*e}function s(e,t){return 3*t-6*e}function o(e){return 3*e}function l(e,t,i){return((a(t,i)*e+s(t,i))*e+o(t))*e}function c(e,t,i){return 3*a(t,i)*e*e+2*s(t,i)*e+o(t)}function h(e){this._p=e,this._mSampleValues=n?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(e){var t=this._p[0],i=this._p[1],r=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),t===i&&r===n?e:0===e?0:1===e?1:l(this._getTForX(e),i,n)},_precompute:function(){var e=this._p[0],t=this._p[1],i=this._p[2],r=this._p[3];this._precomputed=!0,e===t&&i===r||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],n=0;n<i;++n)this._mSampleValues[n]=l(n*r,e,t)},_getTForX:function(e){for(var t=this._p[0],n=this._p[2],a=this._mSampleValues,s=0,o=1,h=i-1;o!==h&&a[o]<=e;++o)s+=r;var p=s+(e-a[--o])/(a[o+1]-a[o])*r,u=c(p,t,n);return u>=.001?function(e,t,i,r){for(var n=0;n<4;++n){var a=c(t,i,r);if(0===a)return t;t-=(l(t,i,r)-e)/a}return t}(e,p,t,n):0===u?p:function(e,t,i,r,n){var a,s,o=0;do{(a=l(s=t+(i-t)/2,r,n)-e)>0?i=s:t=s}while(Math.abs(a)>1e-7&&++o<10);return s}(e,s,s+r,t,n)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,i){var r=0,n=e,a=createSizedArray(n);return{newElement:function(){return r?a[r-=1]:t()},release:function(e){r===n&&(a=pooling.double(a),n*=2),i&&i(e),a[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(e){var t,i=e.lengths.length;for(t=0;t<i;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0});function bezFunction(){var e=Math;function t(e,t,i,r,n,a){var s=e*r+t*n+i*a-n*r-a*e-i*t;return s>-.001&&s<.001}var i=function(e,t,i,r){var n,a,s,o,l,c,h=getDefaultCurveSegments(),p=0,u=[],d=[],f=bezierLengthPool.newElement();for(s=i.length,n=0;n<h;n+=1){for(l=n/(h-1),c=0,a=0;a<s;a+=1)o=bmPow(1-l,3)*e[a]+3*bmPow(1-l,2)*l*i[a]+3*(1-l)*bmPow(l,2)*r[a]+bmPow(l,3)*t[a],u[a]=o,null!==d[a]&&(c+=bmPow(u[a]-d[a],2)),d[a]=u[a];c&&(p+=c=bmSqrt(c)),f.percents[n]=l,f.lengths[n]=p}return f.addedLength=p,f};function r(e){this.segmentLength=0,this.points=new Array(e)}function n(e,t){this.partialLength=e,this.point=t}var a,s=(a={},function(e,i,s,o){var l=(e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!a[l]){var c,h,p,u,d,f,m,g=getDefaultCurveSegments(),v=0,y=null;2===e.length&&(e[0]!==i[0]||e[1]!==i[1])&&t(e[0],e[1],i[0],i[1],e[0]+s[0],e[1]+s[1])&&t(e[0],e[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(g=2);var b=new r(g);for(p=s.length,c=0;c<g;c+=1){for(m=createSizedArray(p),d=c/(g-1),f=0,h=0;h<p;h+=1)u=bmPow(1-d,3)*e[h]+3*bmPow(1-d,2)*d*(e[h]+s[h])+3*(1-d)*bmPow(d,2)*(i[h]+o[h])+bmPow(d,3)*i[h],m[h]=u,null!==y&&(f+=bmPow(m[h]-y[h],2));v+=f=bmSqrt(f),b.points[c]=new n(f,m),y=m}b.segmentLength=v,a[l]=b}return a[l]});function o(e,t){var i=t.percents,r=t.lengths,n=i.length,a=bmFloor((n-1)*e),s=e*t.addedLength,o=0;if(a===n-1||0===a||s===r[a])return i[a];for(var l=r[a]>s?-1:1,c=!0;c;)if(r[a]<=s&&r[a+1]>s?(o=(s-r[a])/(r[a+1]-r[a]),c=!1):a+=l,a<0||a>=n-1){if(a===n-1)return i[a];c=!1}return i[a]+(i[a+1]-i[a])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),n=e.c,a=e.v,s=e.o,o=e.i,l=e._length,c=r.lengths,h=0;for(t=0;t<l-1;t+=1)c[t]=i(a[t],a[t+1],s[t],o[t+1]),h+=c[t].addedLength;return n&&l&&(c[t]=i(a[t],a[0],s[t],o[0]),h+=c[t].addedLength),r.totalLength=h,r},getNewSegment:function(t,i,r,n,a,s,c){a<0?a=0:a>1&&(a=1);var h,p=o(a,c),u=o(s=s>1?1:s,c),d=t.length,f=1-p,m=1-u,g=f*f*f,v=p*f*f*3,y=p*p*f*3,b=p*p*p,x=f*f*m,_=p*f*m+f*p*m+f*f*u,S=p*p*m+f*p*u+p*f*u,w=p*p*u,C=f*m*m,P=p*m*m+f*u*m+f*m*u,E=p*u*m+f*u*u+p*m*u,k=p*u*u,$=m*m*m,A=u*m*m+m*u*m+m*m*u,T=u*u*m+m*u*u+u*m*u,D=u*u*u;for(h=0;h<d;h+=1)l[4*h]=e.round(1e3*(g*t[h]+v*r[h]+y*n[h]+b*i[h]))/1e3,l[4*h+1]=e.round(1e3*(x*t[h]+_*r[h]+S*n[h]+w*i[h]))/1e3,l[4*h+2]=e.round(1e3*(C*t[h]+P*r[h]+E*n[h]+k*i[h]))/1e3,l[4*h+3]=e.round(1e3*($*t[h]+A*r[h]+T*n[h]+D*i[h]))/1e3;return l},getPointInSegment:function(t,i,r,n,a,s){var l=o(a,s),c=1-l;return[e.round(1e3*(c*c*c*t[0]+(l*c*c+c*l*c+c*c*l)*r[0]+(l*l*c+c*l*l+l*c*l)*n[0]+l*l*l*i[0]))/1e3,e.round(1e3*(c*c*c*t[1]+(l*c*c+c*l*c+c*c*l)*r[1]+(l*l*c+c*l*l+l*c*l)*n[1]+l*l*l*i[1]))/1e3]},buildBezierData:s,pointOnLine2D:t,pointOnLine3D:function(i,r,n,a,s,o,l,c,h){if(0===n&&0===o&&0===h)return t(i,r,a,s,l,c);var p,u=e.sqrt(e.pow(a-i,2)+e.pow(s-r,2)+e.pow(o-n,2)),d=e.sqrt(e.pow(l-i,2)+e.pow(c-r,2)+e.pow(h-n,2)),f=e.sqrt(e.pow(l-a,2)+e.pow(c-s,2)+e.pow(h-o,2));return(p=u>d?u>f?u-d-f:f-d-u:f>d?f-d-u:d-u-f)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var i,r=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var n,a,s,o,l,c,h,p,u,d=t.lastIndex,f=d,m=this.keyframes.length-1,g=!0;g;){if(n=this.keyframes[f],a=this.keyframes[f+1],f===m-1&&e>=a.t-r){n.h&&(n=a),d=0;break}if(a.t-r>e){d=f;break}f<m-1?f+=1:(d=0,g=!1)}s=this.keyframesMetadata[f]||{};var v,y=a.t-r,b=n.t-r;if(n.to){s.bezierData||(s.bezierData=bez.buildBezierData(n.s,a.s||n.e,n.to,n.ti));var x=s.bezierData;if(e>=y||e<b){var _=e>=y?x.points.length-1:0;for(l=x.points[_].point.length,o=0;o<l;o+=1)i[o]=x.points[_].point[o]}else{s.__fnct?u=s.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,s.__fnct=u),c=u((e-b)/(y-b));var S,w=x.segmentLength*c,C=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,h=x.points.length;g;){if(C+=x.points[p].partialLength,0===w||0===c||p===x.points.length-1){for(l=x.points[p].point.length,o=0;o<l;o+=1)i[o]=x.points[p].point[o];break}if(w>=C&&w<C+x.points[p+1].partialLength){for(S=(w-C)/x.points[p+1].partialLength,l=x.points[p].point.length,o=0;o<l;o+=1)i[o]=x.points[p].point[o]+(x.points[p+1].point[o]-x.points[p].point[o])*S;break}p<h-1?p+=1:g=!1}t._lastPoint=p,t._lastAddedLength=C-x.points[p].partialLength,t._lastKeyframeIndex=f}}else{var P,E,k,$,A;if(m=n.s.length,v=a.s||n.e,this.sh&&1!==n.h)e>=y?(i[0]=v[0],i[1]=v[1],i[2]=v[2]):e<=b?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):quaternionToEuler(i,slerp(createQuaternion(n.s),createQuaternion(v),(e-b)/(y-b)));else for(f=0;f<m;f+=1)1!==n.h&&(e>=y?c=1:e<b?c=0:(n.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[f]?u=s.__fnct[f]:(P=void 0===n.o.x[f]?n.o.x[0]:n.o.x[f],E=void 0===n.o.y[f]?n.o.y[0]:n.o.y[f],k=void 0===n.i.x[f]?n.i.x[0]:n.i.x[f],$=void 0===n.i.y[f]?n.i.y[0]:n.i.y[f],u=BezierFactory.getBezierEasing(P,E,k,$).get,s.__fnct[f]=u)):s.__fnct?u=s.__fnct:(P=n.o.x,E=n.o.y,k=n.i.x,$=n.i.y,u=BezierFactory.getBezierEasing(P,E,k,$).get,n.keyframeMetadata=u),c=u((e-b)/(y-b)))),v=a.s||n.e,A=1===n.h?n.s[f]:n.s[f]+(v[f]-n.s[f])*c,"multidimensional"===this.propType?i[f]=A:i=A}return t.lastIndex=d,i}function slerp(e,t,i){var r,n,a,s,o,l=[],c=e[0],h=e[1],p=e[2],u=e[3],d=t[0],f=t[1],m=t[2],g=t[3];return(n=c*d+h*f+p*m+u*g)<0&&(n=-n,d=-d,f=-f,m=-m,g=-g),1-n>1e-6?(r=Math.acos(n),a=Math.sin(r),s=Math.sin((1-i)*r)/a,o=Math.sin(i*r)/a):(s=1-i,o=i),l[0]=s*c+o*d,l[1]=s*h+o*f,l[2]=s*p+o*m,l[3]=s*u+o*g,l}function quaternionToEuler(e,t){var i=t[0],r=t[1],n=t[2],a=t[3],s=Math.atan2(2*r*a-2*i*n,1-2*r*r-2*n*n),o=Math.asin(2*i*r+2*n*a),l=Math.atan2(2*i*a-2*r*n,1-2*i*i-2*n*n);e[0]=s/degToRads,e[1]=o/degToRads,e[2]=l/degToRads}function createQuaternion(e){var t=e[0]*degToRads,i=e[1]*degToRads,r=e[2]*degToRads,n=Math.cos(t/2),a=Math.cos(i/2),s=Math.cos(r/2),o=Math.sin(t/2),l=Math.sin(i/2),c=Math.sin(r/2);return[o*l*s+n*a*c,o*a*s+n*l*c,n*l*s-o*a*c,n*a*s-o*l*c]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(e,this._caching);this.pv=r}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)t=e[i]*this.mult,mathAbs(this.v[i]-t)>1e-5&&(this.v[i]=t,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)i=this.effectsSequence[e](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,i,r){this.propType="unidimensional",this.mult=i||1,this.data=t,this.v=i?t.k*i:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,i,r){var n;this.propType="multidimensional",this.mult=i||1,this.data=t,this._mdf=!1,this.elem=e,this.container=r,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),n=0;n<a;n+=1)this.v[n]=t.k[n]*this.mult,this.pv[n]=t.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,i,r){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=i||1,this.elem=e,this.container=r,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,i,r){var n;this.propType="multidimensional";var a,s,o,l,c=t.k.length;for(n=0;n<c-1;n+=1)t.k[n].to&&t.k[n].s&&t.k[n+1]&&t.k[n+1].s&&(a=t.k[n].s,s=t.k[n+1].s,o=t.k[n].to,l=t.k[n].ti,(2===a.length&&(a[0]!==s[0]||a[1]!==s[1])&&bez.pointOnLine2D(a[0],a[1],s[0],s[1],a[0]+o[0],a[1]+o[1])&&bez.pointOnLine2D(a[0],a[1],s[0],s[1],s[0]+l[0],s[1]+l[1])||3===a.length&&(a[0]!==s[0]||a[1]!==s[1]||a[2]!==s[2])&&bez.pointOnLine3D(a[0],a[1],a[2],s[0],s[1],s[2],a[0]+o[0],a[1]+o[1],a[2]+o[2])&&bez.pointOnLine3D(a[0],a[1],a[2],s[0],s[1],s[2],s[0]+l[0],s[1]+l[1],s[2]+l[2]))&&(t.k[n].to=null,t.k[n].ti=null),a[0]===s[0]&&a[1]===s[1]&&0===o[0]&&0===o[1]&&0===l[0]&&0===l[1]&&(2===a.length||a[2]===s[2]&&0===o[2]&&0===l[2])&&(t.k[n].to=null,t.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=r,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var h=t.k[0].s.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),n=0;n<h;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",h)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,i,r,n){var a;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])a=new MultiDimensionalProperty(e,t,r,n);else switch(i){case 0:a=new KeyframedValueProperty(e,t,r,n);break;case 1:a=new KeyframedMultidimensionalProperty(e,t,r,n)}else a=new ValueProperty(e,t,r,n);return a.effectsSequence.length&&n.addDynamicProperty(a),a}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var i=0;i<t;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,i,r,n){var a;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!n)&&(a[r]=pointPool.newElement()),a[r][0]=e,a[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,i,r,n,a,s,o){this.setXYAt(e,t,"v",s,o),this.setXYAt(i,r,"o",s,o),this.setXYAt(n,a,"i",s,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,i=this.o,r=this.i,n=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),n=1);var a,s=this._length-1,o=this._length;for(a=n;a<o;a+=1)e.setTripleAt(t[s][0],t[s][1],r[s][0],r[s][1],i[s][0],i[s][1],a,!1),s-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(e){var t,i=e._length;for(t=0;t<i;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1}),factory.clone=function(e){var t,i=factory.newElement(),r=void 0===e._length?e.v.length:e._length;for(i.setLength(r),i.c=e.c,t=0;t<r;t+=1)i.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return i},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,i=e._length;for(t=0;t<i;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,i){var r,n,a,s,o,l,c,h,p,u=i.lastIndex,d=this.keyframes;if(e<d[0].t-this.offsetTime)r=d[0].s[0],a=!0,u=0;else if(e>=d[d.length-1].t-this.offsetTime)r=d[d.length-1].s?d[d.length-1].s[0]:d[d.length-2].e[0],a=!0;else{for(var f,m,g,v=u,y=d.length-1,b=!0;b&&(f=d[v],!((m=d[v+1]).t-this.offsetTime>e));)v<y-1?v+=1:b=!1;if(g=this.keyframesMetadata[v]||{},u=v,!(a=1===f.h)){if(e>=m.t-this.offsetTime)h=1;else if(e<f.t-this.offsetTime)h=0;else{var x;g.__fnct?x=g.__fnct:(x=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=x),h=x((e-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}n=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=t._length,c=r.i[0].length,i.lastIndex=u,s=0;s<l;s+=1)for(o=0;o<c;o+=1)p=a?r.i[s][o]:r.i[s][o]+(n.i[s][o]-r.i[s][o])*h,t.i[s][o]=p,p=a?r.o[s][o]:r.o[s][o]+(n.o[s][o]-r.o[s][o])*h,t.o[s][o]=p,p=a?r.v[s][o]:r.v[s][o]+(n.v[s][o]-r.v[s][o])*h,t.v[s][o]=p}function i(){var t=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==e&&(n<i&&t<i||n>r&&t>r)||(this._caching.lastIndex=n<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function r(){this.paths=this.localShapeCollection}function n(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var i,r=e._length;for(i=0;i<r;i+=1)if(e.v[i][0]!==t.v[i][0]||e.v[i][1]!==t.v[i][1]||e.o[i][0]!==t.o[i][0]||e.o[i][1]!==t.o[i][1]||e.i[i][0]!==t.i[i][0]||e.i[i][1]!==t.i[i][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(t=0;t<i;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,i){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===i?t.pt.k:t.ks.k;this.v=shapePool.clone(n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,n,a){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===a?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=r,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[i.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=a,s.prototype.setVValue=n,s.prototype.addEffect=o,l.prototype.getValue=a,l.prototype.interpolateShape=t,l.prototype.setVValue=n,l.prototype.addEffect=o;var c=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],i=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,a=3!==this.d,s=this.v;s.v[0][0]=t,s.v[0][1]=i-n,s.v[1][0]=a?t+r:t-r,s.v[1][1]=i,s.v[2][0]=t,s.v[2][1]=i+n,s.v[3][0]=a?t-r:t+r,s.v[3][1]=i,s.i[0][0]=a?t-r*e:t+r*e,s.i[0][1]=i-n,s.i[1][0]=a?t+r:t-r,s.i[1][1]=i-n*e,s.i[2][0]=a?t+r*e:t-r*e,s.i[2][1]=i+n,s.i[3][0]=a?t-r:t+r,s.i[3][1]=i+n*e,s.o[0][0]=a?t+r*e:t-r*e,s.o[0][1]=i-n,s.o[1][0]=a?t+r:t-r,s.o[1][1]=i+n*e,s.o[2][0]=a?t-r*e:t+r*e,s.o[2][1]=i+n,s.o[3][0]=a?t-r:t+r,s.o[3][1]=i-n*e}},extendPrototype([DynamicPropertyContainer],t),t}(),h=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,i,r,n=2*Math.floor(this.pt.v),a=2*Math.PI/n,s=!0,o=this.or.v,l=this.ir.v,c=this.os.v,h=this.is.v,p=2*Math.PI*o/(2*n),u=2*Math.PI*l/(2*n),d=-Math.PI/2;d+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<n;e+=1){i=s?c:h,r=s?p:u;var m=(t=s?o:l)*Math.cos(d),g=t*Math.sin(d),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*r*i*f,g-y*r*i*f,m+v*r*i*f,g+y*r*i*f,e,!0),s=!s,d+=a*f}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),i=2*Math.PI/t,r=this.or.v,n=this.os.v,a=2*Math.PI*r/(4*t),s=.5*-Math.PI,o=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=r*Math.cos(s),c=r*Math.sin(s),h=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),p=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-h*a*n*o,c-p*a*n*o,l+h*a*n*o,c+p*a*n*o,e,!0),s+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,n=bmMin(i,r,this.r.v),a=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+i,t-r+n,e+i,t-r+n,e+i,t-r+a,0,!0),this.v.setTripleAt(e+i,t+r-n,e+i,t+r-a,e+i,t+r-n,1,!0),0!==n?(this.v.setTripleAt(e+i-n,t+r,e+i-n,t+r,e+i-a,t+r,2,!0),this.v.setTripleAt(e-i+n,t+r,e-i+a,t+r,e-i+n,t+r,3,!0),this.v.setTripleAt(e-i,t+r-n,e-i,t+r-n,e-i,t+r-a,4,!0),this.v.setTripleAt(e-i,t-r+n,e-i,t-r+a,e-i,t-r+n,5,!0),this.v.setTripleAt(e-i+n,t-r,e-i+n,t-r,e-i+a,t-r,6,!0),this.v.setTripleAt(e+i-n,t-r,e+i-a,t-r,e+i-n,t-r,7,!0)):(this.v.setTripleAt(e-i,t+r,e-i+a,t+r,e-i,t+r,2),this.v.setTripleAt(e-i,t-r,e-i,t-r+a,e-i,t-r,3))):(this.v.setTripleAt(e+i,t-r+n,e+i,t-r+a,e+i,t-r+n,0,!0),0!==n?(this.v.setTripleAt(e+i-n,t-r,e+i-n,t-r,e+i-a,t-r,1,!0),this.v.setTripleAt(e-i+n,t-r,e-i+a,t-r,e-i+n,t-r,2,!0),this.v.setTripleAt(e-i,t-r+n,e-i,t-r+n,e-i,t-r+a,3,!0),this.v.setTripleAt(e-i,t+r-n,e-i,t+r-a,e-i,t+r-n,4,!0),this.v.setTripleAt(e-i+n,t+r,e-i+n,t+r,e-i+a,t+r,5,!0),this.v.setTripleAt(e+i-n,t+r,e+i-a,t+r,e+i-n,t+r,6,!0),this.v.setTripleAt(e+i,t+r-n,e+i,t+r-n,e+i,t+r-a,7,!0)):(this.v.setTripleAt(e-i,t-r,e-i+a,t-r,e-i,t-r,1,!0),this.v.setTripleAt(e-i,t+r,e-i,t+r-a,e-i,t+r,2,!0),this.v.setTripleAt(e+i,t+r,e+i-a,t+r,e+i,t+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],e),e}(),u={getShapeProp:function(e,t,i){var r;return 3===i||4===i?r=(3===i?t.pt:t.ks).k.length?new l(e,t,i):new s(e,t,i):5===i?r=new p(e,t):6===i?r=new c(e,t):7===i&&(r=new h(e,t)),r.k&&e.addDynamicProperty(r),r},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return l}};return u}(),Matrix=function(){var e=Math.cos,t=Math.sin,i=Math.tan,r=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(i){if(0===i)return this;var r=e(i),n=t(i);return this._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function s(i){if(0===i)return this;var r=e(i),n=t(i);return this._t(1,0,0,0,0,r,-n,0,0,n,r,0,0,0,0,1)}function o(i){if(0===i)return this;var r=e(i),n=t(i);return this._t(r,0,n,0,0,1,0,0,-n,0,r,0,0,0,0,1)}function l(i){if(0===i)return this;var r=e(i),n=t(i);return this._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function c(e,t){return this._t(1,t,e,1,0,0)}function h(e,t){return this.shear(i(e),i(t))}function p(r,n){var a=e(n),s=t(n);return this._t(a,s,0,0,-s,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(r),1,0,0,0,0,1,0,0,0,0,1)._t(a,-s,0,0,s,a,0,0,0,0,1,0,0,0,0,1)}function u(e,t,i){return i||0===i||(i=1),1===e&&1===t&&1===i?this:this._t(e,0,0,0,0,t,0,0,0,0,i,0,0,0,0,1)}function d(e,t,i,r,n,a,s,o,l,c,h,p,u,d,f,m){return this.props[0]=e,this.props[1]=t,this.props[2]=i,this.props[3]=r,this.props[4]=n,this.props[5]=a,this.props[6]=s,this.props[7]=o,this.props[8]=l,this.props[9]=c,this.props[10]=h,this.props[11]=p,this.props[12]=u,this.props[13]=d,this.props[14]=f,this.props[15]=m,this}function f(e,t,i){return i=i||0,0!==e||0!==t||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,i,1):this}function m(e,t,i,r,n,a,s,o,l,c,h,p,u,d,f,m){var g=this.props;if(1===e&&0===t&&0===i&&0===r&&0===n&&1===a&&0===s&&0===o&&0===l&&0===c&&1===h&&0===p)return g[12]=g[12]*e+g[15]*u,g[13]=g[13]*a+g[15]*d,g[14]=g[14]*h+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],x=g[3],_=g[4],S=g[5],w=g[6],C=g[7],P=g[8],E=g[9],k=g[10],$=g[11],A=g[12],T=g[13],D=g[14],M=g[15];return g[0]=v*e+y*n+b*l+x*u,g[1]=v*t+y*a+b*c+x*d,g[2]=v*i+y*s+b*h+x*f,g[3]=v*r+y*o+b*p+x*m,g[4]=_*e+S*n+w*l+C*u,g[5]=_*t+S*a+w*c+C*d,g[6]=_*i+S*s+w*h+C*f,g[7]=_*r+S*o+w*p+C*m,g[8]=P*e+E*n+k*l+$*u,g[9]=P*t+E*a+k*c+$*d,g[10]=P*i+E*s+k*h+$*f,g[11]=P*r+E*o+k*p+$*m,g[12]=A*e+T*n+D*l+M*u,g[13]=A*t+T*a+D*c+M*d,g[14]=A*i+T*s+D*h+M*f,g[15]=A*r+T*o+D*p+M*m,this._identityCalculated=!1,this}function g(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function b(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function x(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function _(e,t,i){return{x:e*this.props[0]+t*this.props[4]+i*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+i*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+i*this.props[10]+this.props[14]}}function S(e,t,i){return e*this.props[0]+t*this.props[4]+i*this.props[8]+this.props[12]}function w(e,t,i){return e*this.props[1]+t*this.props[5]+i*this.props[9]+this.props[13]}function C(e,t,i){return e*this.props[2]+t*this.props[6]+i*this.props[10]+this.props[14]}function P(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,i=-this.props[1]/e,r=-this.props[4]/e,n=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,o=new Matrix;return o.props[0]=t,o.props[1]=i,o.props[4]=r,o.props[5]=n,o.props[12]=a,o.props[13]=s,o}function E(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function k(e){var t,i=e.length,r=[];for(t=0;t<i;t+=1)r[t]=E(e[t]);return r}function $(e,t,i){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=e[0],r[1]=e[1],r[2]=t[0],r[3]=t[1],r[4]=i[0],r[5]=i[1];else{var n=this.props[0],a=this.props[1],s=this.props[4],o=this.props[5],l=this.props[12],c=this.props[13];r[0]=e[0]*n+e[1]*s+l,r[1]=e[0]*a+e[1]*o+c,r[2]=t[0]*n+t[1]*s+l,r[3]=t[0]*a+t[1]*o+c,r[4]=i[0]*n+i[1]*s+l,r[5]=i[0]*a+i[1]*o+c}return r}function A(e,t,i){return this.isIdentity()?[e,t,i]:[e*this.props[0]+t*this.props[4]+i*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+i*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+i*this.props[10]+this.props[14]]}function T(e,t){if(this.isIdentity())return e+","+t;var i=this.props;return Math.round(100*(e*i[0]+t*i[4]+i[12]))/100+","+Math.round(100*(e*i[1]+t*i[5]+i[13]))/100}function D(){for(var e=0,t=this.props,i="matrix3d(";e<16;)i+=r(1e4*t[e])/1e4,i+=15===e?")":",",e+=1;return i}function M(e){return e<1e-6&&e>0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function I(){var e=this.props;return"matrix("+M(e[0])+","+M(e[1])+","+M(e[4])+","+M(e[5])+","+M(e[12])+","+M(e[13])+")"}return function(){this.reset=n,this.rotate=a,this.rotateX=s,this.rotateY=o,this.rotateZ=l,this.skew=h,this.skewFromAxis=p,this.shear=c,this.scale=u,this.setTransform=d,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=_,this.applyToX=S,this.applyToY=w,this.applyToZ=C,this.applyToPointArray=A,this.applyToTriplePoints=$,this.applyToPointStringified=T,this.toCSS=D,this.to2dCSS=I,this.clone=b,this.cloneFromProps=x,this.equals=y,this.inversePoints=k,this.inversePoint=E,this.getInverseMatrix=P,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),i=0;i<t.length;i+=1){var r=t[i].split("=");if(decodeURIComponent(r[0])==e)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="",scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer");var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports$1)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,i){t[e]||(t[e]=i)},e.getModifier=function(e,i,r){return new t[e](i,r)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,i,r,n){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var s,o,l=[],c=a.length;for(s=0;s<c;s+=1){var h,p;(o=a[s]).e*n<r||o.s*n>r+i||(h=o.s*n<=r?0:(o.s*n-r)/i,p=o.e*n>=r+i?1:(o.e*n-r)/i,l.push([h,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(e){var t,i=e.length;for(t=0;t<i;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,i,r,n;if(this._mdf||e){var a=this.o.v%360/360;if(a<0&&(a+=1),(t=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(i=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var s=t;t=i,i=s}t=1e-4*Math.round(1e4*t),i=1e-4*Math.round(1e4*i),this.sValue=t,this.eValue=i}else t=this.sValue,i=this.eValue;var o,l,c,h,p,u=this.shapes.length,d=0;if(i===t)for(n=0;n<u;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===i&&0===t||0===i&&1===t){if(this._mdf)for(n=0;n<u;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var f,m,g=[];for(n=0;n<u;n+=1)if((f=this.shapes[n]).shape._mdf||this._mdf||e||2===this.m){if(l=(r=f.shape.paths)._length,p=0,!f.shape._mdf&&f.pathsData.length)p=f.totalShapeLength;else{for(c=this.releasePathsData(f.pathsData),o=0;o<l;o+=1)h=bez.getSegmentsLength(r.shapes[o]),c.push(h),p+=h.totalLength;f.totalShapeLength=p,f.pathsData=c}d+=p,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var v,y=t,b=i,x=0;for(n=u-1;n>=0;n-=1)if((f=this.shapes[n]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&u>1?(v=this.calculateShapeEdges(t,i,f.totalShapeLength,x,d),x+=f.totalShapeLength):v=[[y,b]],l=v.length,o=0;o<l;o+=1){y=v[o][0],b=v[o][1],g.length=0,b<=1?g.push({s:f.totalShapeLength*y,e:f.totalShapeLength*b}):y>=1?g.push({s:f.totalShapeLength*(y-1),e:f.totalShapeLength*(b-1)}):(g.push({s:f.totalShapeLength*y,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(b-1)}));var _=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var S=_.pop();this.addPaths(_,m),_=this.addShapes(f,g[1],S)}else this.addPaths(_,m),_=this.addShapes(f,g[1]);this.addPaths(_,m)}}f.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var i,r=e.length;for(i=0;i<r;i+=1)t.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,t,i,r,n,a,s){n.setXYAt(t[0],t[1],"o",a),n.setXYAt(i[0],i[1],"i",a+1),s&&n.setXYAt(e[0],e[1],"v",a),n.setXYAt(r[0],r[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,i,r){t.setXYAt(e[1],e[5],"o",i),t.setXYAt(e[2],e[6],"i",i+1),r&&t.setXYAt(e[0],e[4],"v",i),t.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,t,i){var r,n,a,s,o,l,c,h,p=e.pathsData,u=e.shape.paths.shapes,d=e.shape.paths._length,f=0,m=[],g=!0;for(i?(o=i._length,h=i._length):(i=shapePool.newElement(),o=0,h=0),m.push(i),r=0;r<d;r+=1){for(l=p[r].lengths,i.c=u[r].c,a=u[r].c?l.length:l.length+1,n=1;n<a;n+=1)if(f+(s=l[n-1]).addedLength<t.s)f+=s.addedLength,i.c=!1;else{if(f>t.e){i.c=!1;break}t.s<=f&&t.e>=f+s.addedLength?(this.addSegment(u[r].v[n-1],u[r].o[n-1],u[r].i[n],u[r].v[n],i,o,g),g=!1):(c=bez.getNewSegment(u[r].v[n-1],u[r].v[n],u[r].o[n-1],u[r].i[n],(t.s-f)/s.addedLength,(t.e-f)/s.addedLength,l[n-1]),this.addSegmentFromArray(c,i,o,g),g=!1,i.c=!1),f+=s.addedLength,o+=1}if(u[r].c&&l.length){if(s=l[n-1],f<=t.e){var v=l[n-1].addedLength;t.s<=f&&t.e>=f+v?(this.addSegment(u[r].v[n-1],u[r].o[n-1],u[r].i[0],u[r].v[0],i,o,g),g=!1):(c=bez.getNewSegment(u[r].v[n-1],u[r].v[0],u[r].o[n-1],u[r].i[0],(t.s-f)/v,(t.e-f)/v,l[n-1]),this.addSegmentFromArray(c,i,o,g),g=!1,i.c=!1)}else i.c=!1;f+=s.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[h][0],i.v[h][1],"i",h),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>t.e)break;r<d-1&&(i=shapePool.newElement(),g=!0,m.push(i),o=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var i=t/100,r=[0,0],n=e._length,a=0;for(a=0;a<n;a+=1)r[0]+=e.v[a][0],r[1]+=e.v[a][1];r[0]/=n,r[1]/=n;var s,o,l,c,h,p,u=shapePool.newElement();for(u.c=e.c,a=0;a<n;a+=1)s=e.v[a][0]+(r[0]-e.v[a][0])*i,o=e.v[a][1]+(r[1]-e.v[a][1])*i,l=e.o[a][0]+(r[0]-e.o[a][0])*-i,c=e.o[a][1]+(r[1]-e.o[a][1])*-i,h=e.i[a][0]+(r[0]-e.i[a][0])*-i,p=e.i[a][1]+(r[1]-e.i[a][1])*-i,u.setTripleAt(s,o,l,c,h,p,a);return u},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,i,r,n,a,s,o=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<o;i+=1){if(s=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||e)for(s.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)s.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,i){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var r,n=t.or.k.length;for(r=0;r<n;r+=1)t.or.k[r].to=null,t.or.k[r].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var r,n;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(r=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],n=[];var a=this.px,s=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),r[1]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0),n[0]=a.getValueAtTime(a.keyframes[0].t/i,0),n[1]=s.getValueAtTime(s.keyframes[0].t/i,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),r[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0),n[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0),n[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0)):(r=[a.pv,s.pv],n[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime),n[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime))}else r=n=e;this.v.rotate(-Math.atan2(r[1]-n[1],r[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,i,r){return new t(e,i,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,i){return e*(1-i)+t*i}function lerpPoint(e,t,i){return[lerp(e[0],t[0],i),lerp(e[1],t[1],i)]}function quadRoots(e,t,i){if(0===e)return[];var r=t*t-4*e*i;if(r<0)return[];var n=-t/(2*e);if(0===r)return[n];var a=Math.sqrt(r)/(2*e);return[n-a,n+a]}function polynomialCoefficients(e,t,i,r){return[3*t-e-3*i+r,3*e-6*t+3*i,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,i,r,n){n&&pointEqual(e,t)&&(t=lerpPoint(e,r,1/3)),n&&pointEqual(i,r)&&(i=lerpPoint(e,r,2/3));var a=polynomialCoefficients(e[0],t[0],i[0],r[0]),s=polynomialCoefficients(e[1],t[1],i[1],r[1]);this.a=[a[0],s[0]],this.b=[a[1],s[1]],this.c=[a[2],s[2]],this.d=[a[3],s[3]],this.points=[e,t,i,r]}function extrema(e,t){var i=e.points[0][t],r=e.points[e.points.length-1][t];if(i>r){var n=r;r=i,i=n}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),s=0;s<a.length;s+=1)if(a[s]>0&&a[s]<1){var o=e.point(a[s])[t];o<i?i=o:o>r&&(r=o)}return{min:i,max:r}}function intersectData(e,t,i){var r=e.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:e,t:(t+i)/2,t1:t,t2:i}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,i,r,n,a){if(boxIntersect(e,t))if(i>=a||e.width<=r&&e.height<=r&&t.width<=r&&t.height<=r)n.push([e.t,t.t]);else{var s=splitData(e),o=splitData(t);intersectsImpl(s[0],o[0],i+1,r,n,a),intersectsImpl(s[0],o[1],i+1,r,n,a),intersectsImpl(s[1],o[0],i+1,r,n,a),intersectsImpl(s[1],o[1],i+1,r,n,a)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,i,r){var n=[e[0],e[1],1],a=[t[0],t[1],1],s=[i[0],i[1],1],o=[r[0],r[1],1],l=crossProduct(crossProduct(n,a),crossProduct(s,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(e,t,i){return[e[0]+Math.cos(t)*i,e[1]-Math.sin(t)*i]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,i,r,n,a,s){var o=i-Math.PI/2,l=i+Math.PI/2,c=t[0]+Math.cos(i)*r*n,h=t[1]-Math.sin(i)*r*n;e.setTripleAt(c,h,c+Math.cos(o)*a,h-Math.sin(o)*a,c+Math.cos(l)*s,h-Math.sin(l)*s,e.length())}function getPerpendicularVector(e,t){var i=[t[0]-e[0],t[1]-e[1]],r=.5*-Math.PI;return[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]]}function getProjectingAngle(e,t){var i=0===t?e.length()-1:t-1,r=(t+1)%e.length(),n=getPerpendicularVector(e.v[i],e.v[r]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(e,t,i,r,n,a,s){var o=getProjectingAngle(t,i),l=t.v[i%t._length],c=t.v[0===i?t._length-1:i-1],h=t.v[(i+1)%t._length],p=2===a?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,u=2===a?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0;setPoint(e,t.v[i%t._length],o,s,r,u/(2*(n+1)),p/(2*(n+1)))}function zigZagSegment(e,t,i,r,n,a){for(var s=0;s<r;s+=1){var o=(s+1)/(r+1),l=2===n?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,c=t.normalAngle(o);setPoint(e,t.point(o),c,a,i,l/(2*(r+1)),l/(2*(r+1))),a=-a}return a}function linearOffset(e,t,i){var r=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,r,i),polarOffset(t,r,i)]}function offsetSegment(e,t){var i,r,n,a,s,o,l;i=(l=linearOffset(e.points[0],e.points[1],t))[0],r=l[1],n=(l=linearOffset(e.points[1],e.points[2],t))[0],a=l[1],s=(l=linearOffset(e.points[2],e.points[3],t))[0],o=l[1];var c=lineIntersection(i,r,n,a);null===c&&(c=r);var h=lineIntersection(s,o,n,a);return null===h&&(h=s),new PolynomialBezier(i,c,h,o)}function joinLines(e,t,i,r,n){var a=t.points[3],s=i.points[0];if(3===r)return a;if(pointEqual(a,s))return a;if(2===r){var o=-t.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,c=lineIntersection(a,polarOffset(a,o+Math.PI/2,100),s,polarOffset(s,o+Math.PI/2,100)),h=c?pointDistance(c,a):pointDistance(a,s)/2,p=polarOffset(a,o,2*h*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(s,l,2*h*roundCorner),e.setTripleAt(s[0],s[1],s[0],s[1],p[0],p[1],e.length()),s}var u=lineIntersection(pointEqual(a,t.points[2])?t.points[0]:t.points[2],a,s,pointEqual(s,i.points[1])?i.points[3]:i.points[1]);return u&&pointDistance(u,a)<n?(e.setTripleAt(u[0],u[1],u[0],u[1],u[0],u[1],e.length()),u):a}function getIntersection(e,t){var i=e.intersections(t);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,t){var i=e.slice(),r=t.slice(),n=getIntersection(e[e.length-1],t[0]);return n&&(i[e.length-1]=e[e.length-1].split(n[0])[0],r[0]=t[0].split(n[1])[1]),e.length>1&&t.length>1&&(n=getIntersection(e[0],t[t.length-1]))?[[e[0].split(n[0])[0]],[t[t.length-1].split(n[1])[1]]]:[i,r]}function pruneIntersections(e){for(var t,i=1;i<e.length;i+=1)t=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=t[0],e[i]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var i,r,n,a,s=e.inflectionPoints();if(0===s.length)return[offsetSegment(e,t)];if(1===s.length||floatEqual(s[1],1))return i=(n=e.split(s[0]))[0],r=n[1],[offsetSegment(i,t),offsetSegment(r,t)];i=(n=e.split(s[0]))[0];var o=(s[1]-s[0])/(1-s[0]);return a=(n=n[1].split(o))[0],r=n[1],[offsetSegment(i,t),offsetSegment(a,t),offsetSegment(r,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],i="normal",r="normal",n=t.length,a=0;a<n;a+=1)switch(t[a].toLowerCase()){case"italic":r="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:r,weight:e.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,i,r,n,a){var s=a?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-n),l=r.s.v[1]+(1-r.s.v[1])*(1-n);e.translate(r.p.v[0]*s*n,r.p.v[1]*s*n,r.p.v[2]),t.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),t.rotate(-r.r.v*s*n),t.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(a?1/o:o,a?1/l:l),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(e,t,i,r){for(this.elem=e,this.arr=t,this.pos=i,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[i]);i>0;)i-=1,this._elements.unshift(t[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var i,r=e.length;for(i=0;i<r;i+=1)e[i]._render=t,"gr"===e[i].ty&&this.changeGroupRender(e[i].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,i,r,n,a,s=!1;if(this._mdf||e){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}for(a=0,r=0;r<=this._groups.length-1;r+=1){if(o=a<l,this._groups[r]._render=o,this.changeGroupRender(this._groups[r].it,o),!o){var h=this.elemsData[r].it,p=h[h.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}a+=1}this._currentCopies=l;var u=this.o.v,d=u%1,f=u>0?Math.floor(u):Math.ceil(u),m=this.pMatrix.props,g=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var y,b,x=0;if(u>0){for(;x<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,d,!1),x+=d)}else if(u<0){for(;x>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;d&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-d,!0),x-=d)}for(r=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(i=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==x){for((0!==r&&1===n||r!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),y=0;y<b;y+=1)i[y]=this.matrix.props[y];this.matrix.reset()}else for(this.matrix.reset(),y=0;y<b;y+=1)i[y]=this.matrix.props[y];x+=1,a-=1,r+=n}}else for(a=this._currentCopies,r=0,n=1;a;)i=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,r+=n;return s},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var i,r=shapePool.newElement();r.c=e.c;var n,a,s,o,l,c,h,p,u,d,f,m,g=e._length,v=0;for(i=0;i<g;i+=1)n=e.v[i],s=e.o[i],a=e.i[i],n[0]===s[0]&&n[1]===s[1]&&n[0]===a[0]&&n[1]===a[1]?0!==i&&i!==g-1||e.c?(o=0===i?e.v[g-1]:e.v[i-1],c=(l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(l/2,t)/l:0,h=f=n[0]+(o[0]-n[0])*c,p=m=n[1]-(n[1]-o[1])*c,u=h-(h-n[0])*roundCorner,d=p-(p-n[1])*roundCorner,r.setTripleAt(h,p,u,d,f,m,v),v+=1,o=i===g-1?e.v[0]:e.v[i+1],c=(l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(l/2,t)/l:0,h=u=n[0]+(o[0]-n[0])*c,p=d=n[1]+(o[1]-n[1])*c,f=h-(h-n[0])*roundCorner,m=p-(p-n[1])*roundCorner,r.setTripleAt(h,p,u,d,f,m,v),v+=1):(r.setTripleAt(n[0],n[1],s[0],s[1],a[0],a[1],v),v+=1):(r.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],v),v+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,i,r,n,a,s,o=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<o;i+=1){if(s=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||e)for(s.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)s.addShape(this.processPath(t[r],l));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,i=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var r=Math.sqrt(i);return floatZero(r)?r>0&&r<1?[t]:[]:[t-r,t+r].filter(function(e){return e>0&&e<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),i=lerpPoint(this.points[1],this.points[2],e),r=lerpPoint(this.points[2],this.points[3],e),n=lerpPoint(t,i,e),a=lerpPoint(i,r,e),s=lerpPoint(n,a,e);return[new PolynomialBezier(this.points[0],t,n,s,!0),new PolynomialBezier(s,a,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,i){void 0===t&&(t=2),void 0===i&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,r,i),r},PolynomialBezier.shapeSegment=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var i=(t+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,i,r){var n=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(n-=1),0===n)return a;var s=-1,o=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,i,r,s);for(var l=0;l<n;l+=1)s=zigZagSegment(a,o,t,i,r,-s),o=l!==n-1||e.c?PolynomialBezier.shapeSegment(e,(l+1)%n):null,zigZagCorner(a,e,l+1,t,i,r,s);return a},ZigZagModifier.prototype.processShapes=function(e){var t,i,r,n,a,s,o=this.shapes.length,l=this.amplitude.v,c=Math.max(0,Math.round(this.frequency.v)),h=this.pointsType.v;if(0!==l)for(i=0;i<o;i+=1){if(s=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||e)for(s.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)s.addShape(this.processPath(t[r],l,c,h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,i,r){var n=shapePool.newElement();n.c=e.c;var a,s,o,l=e.length();e.c||(l-=1);var c=[];for(a=0;a<l;a+=1)o=PolynomialBezier.shapeSegment(e,a),c.push(offsetSegmentSplit(o,t));if(!e.c)for(a=l-1;a>=0;a-=1)o=PolynomialBezier.shapeSegmentInverted(e,a),c.push(offsetSegmentSplit(o,t));c=pruneIntersections(c);var h=null,p=null;for(a=0;a<c.length;a+=1){var u=c[a];for(p&&(h=joinLines(n,p,u[0],i,r)),p=u[u.length-1],s=0;s<u.length;s+=1)o=u[s],h&&pointEqual(o.points[0],h)?n.setXYAt(o.points[1][0],o.points[1][1],"o",n.length()-1):n.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],n.length()),n.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],n.length()),h=o.points[3]}return c.length&&joinLines(n,p,c[0][0],i,r),n},OffsetPathModifier.prototype.processShapes=function(e){var t,i,r,n,a,s,o=this.shapes.length,l=this.amount.v,c=this.miterLimit.v,h=this.lineJoin;if(0!==l)for(i=0;i<o;i+=1){if(s=(a=this.shapes[i]).localShapeCollection,a.shape._mdf||this._mdf||e)for(s.releaseShapes(),a.shape._mdf=!0,t=a.shape.paths.shapes,n=a.shape.paths._length,r=0;r<n;r+=1)s.addShape(this.processPath(t[r],l,h,c));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(e,t){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=t;var r=createTag("span");r.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(r),document.body.appendChild(i);var n=r.offsetWidth;return r.style.fontFamily=function(e){var t,i=e.split(","),r=i.length,n=[];for(t=0;t<r;t+=1)"sans-serif"!==i[t]&&"monospace"!==i[t]&&n.push(i[t]);return n.join(",")}(e)+", "+t,{node:r,w:n,parent:i}}function a(e,t){var i,r=document.body&&t?"svg":"canvas",n=getFontProperties(e);if("svg"===r){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",e.fFamily),a.setAttribute("font-style",n.style),a.setAttribute("font-weight",n.weight),a.textContent="1",e.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",e.fClass)):a.style.fontFamily=e.fFamily,t.appendChild(a),i=a}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=n.style+" "+n.weight+" 100px "+e.fFamily,i=s}return{measureText:function(e){return"svg"===r?(i.textContent=e,i.getComputedTextLength()):i.measureText(e).width}}}function s(e){var t=0,i=e.charCodeAt(0);if(i>=55296&&i<=56319){var r=e.charCodeAt(1);r>=56320&&r<=57343&&(t=1024*(i-55296)+r-56320+65536)}return t}function o(e){var t=s(e);return t>=127462&&t<=127487}var l=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};l.isModifier=function(e,t){var i=e.toString(16)+t.toString(16);return-1!==r.indexOf(i)},l.isZeroWidthJoiner=function(e){return 8205===e},l.isFlagEmoji=function(e){return o(e.substr(0,2))&&o(e.substr(2,2))},l.isRegionalCode=o,l.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},l.isRegionalFlag=function(e,t){var r=s(e.substr(t,2));if(r!==i)return!1;var n=0;for(t+=2;n<5;){if((r=s(e.substr(t,2)))<917601||r>917626)return!1;n+=1,t+=2}return 917631===s(e.substr(t,2))},l.isVariationSelector=function(e){return 65039===e},l.BLACK_FLAG_CODE_POINT=i;var c={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var i,r,n=e.length,a=this.chars.length;for(t=0;t<n;t+=1){for(i=0,r=!1;i<a;)this.chars[i].style===e[t].style&&this.chars[i].fFamily===e[t].fFamily&&this.chars[i].ch===e[t].ch&&(r=!0),i+=1;r||(this.chars.push(e[t]),a+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach(function(e){e.helper=a(e),e.cache={}}),void(this.fonts=e.list);var i,r=e.list,s=r.length,o=s;for(i=0;i<s;i+=1){var l,c,h=!0;if(r[i].loaded=!1,r[i].monoCase=n(r[i].fFamily,"monospace"),r[i].sansCase=n(r[i].fFamily,"sans-serif"),r[i].fPath){if("p"===r[i].fOrigin||3===r[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[i].fFamily+'"], style[f-origin="3"][f-family="'+r[i].fFamily+'"]')).length>0&&(h=!1),h){var p=createTag("style");p.setAttribute("f-forigin",r[i].fOrigin),p.setAttribute("f-origin",r[i].origin),p.setAttribute("f-family",r[i].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",t.appendChild(p)}}else if("g"===r[i].fOrigin||1===r[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c+=1)-1!==l[c].href.indexOf(r[i].fPath)&&(h=!1);if(h){var u=createTag("link");u.setAttribute("f-forigin",r[i].fOrigin),u.setAttribute("f-origin",r[i].origin),u.type="text/css",u.rel="stylesheet",u.href=r[i].fPath,document.body.appendChild(u)}}else if("t"===r[i].fOrigin||2===r[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c+=1)r[i].fPath===l[c].src&&(h=!1);if(h){var d=createTag("link");d.setAttribute("f-forigin",r[i].fOrigin),d.setAttribute("f-origin",r[i].origin),d.setAttribute("rel","stylesheet"),d.setAttribute("href",r[i].fPath),t.appendChild(d)}}}else r[i].loaded=!0,o-=1;r[i].helper=a(r[i],t),r[i].cache={},this.fonts.push(r[i])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,i,r){for(var n=0,a=this.chars.length;n<a;){if(this.chars[n].ch===t&&this.chars[n].style===i&&this.chars[n].fFamily===r)return this.chars[n];n+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,i,r)),e},getFontByName:function(e){for(var t=0,i=this.fonts.length;t<i;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,i){var r=this.getFontByName(t),n=e;if(!r.cache[n]){var a=r.helper;if(" "===e){var s=a.measureText("|"+e+"|"),o=a.measureText("||");r.cache[n]=(s-o)/100}else r.cache[n]=a.measureText(e)/100}return r.cache[n]*i},checkLoadedFonts:function(){var e,t,i,r=this.fonts.length,n=r;for(e=0;e<r;e+=1)this.fonts[e].loaded?n-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,i=this.fonts[e].monoCase.w,t.offsetWidth!==i?(n-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,i=this.fonts[e].sansCase.w,t.offsetWidth!==i&&(n-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=c,l}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function AngleEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function ColorEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function PointEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,1,0,i)}function LayerIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function MaskIndexEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function CheckboxEffect(e,t,i){this.p=PropertyFactory.getProp(t,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var i,r=e.ef||[];this.effectElements=[];var n,a=r.length;for(i=0;i<a;i+=1)n=new GroupEffect(r[i],t),this.effectElements.push(n)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,i)}function AudioElement(e,t,i){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,i),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var i;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,n=this.data.ef.length,a=this.data.ef;for(i=0;i<n;i+=1){switch(r=null,a[i].ty){case 0:r=new SliderEffect(a[i],t,this);break;case 1:r=new AngleEffect(a[i],t,this);break;case 2:r=new ColorEffect(a[i],t,this);break;case 3:r=new PointEffect(a[i],t,this);break;case 4:case 7:r=new CheckboxEffect(a[i],t,this);break;case 10:r=new LayerIndexEffect(a[i],t,this);break;case 11:r=new MaskIndexEffect(a[i],t,this);break;case 5:r=new EffectsManager(a[i],t);break;default:r=new NoValueEffect(a[i])}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),i=e("effects"),r=e("shape"),n=e("text"),a=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var s=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(s),0===this.data.ty||this.data.xt?this.compInterface=a(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,i){this.globalData=t,this.comp=i,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var i,r=this.dynamicProperties.length;for(i=0;i<r;i+=1)(t||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,i,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t]).ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var i,r=e.length,n=this.layers.length;for(t=0;t<r;t+=1)for(i=0;i<n;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,i){for(var r=this.elements,n=this.layers,a=0,s=n.length;a<s;)n[a].ind==t&&(r[a]&&!0!==r[a]?(i.push(r[a]),r[a].setAsParent(),void 0!==n[a].parent?this.buildElementParenting(e,n[a].parent,i):e.setHierarchy(i)):(this.buildItem(a),this.addPendingElement(e))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,i=e.length;for(t=0;t<i;t+=1)if(e[t].xt){var r=this.createComp(e[t]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(e){var t,i=this.elements.length;for(t=0;t<i;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,i=e.shift();if("number"==typeof i)t=this.elements[i];else{var r,n=this.elements.length;for(r=0;r<n;r+=1)if(this.elements[r].data.nm===i){t=this.elements[r];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,i){this.data=e,this.element=t,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r,n,a=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var o,l,c,h,p,u,d=this.masksProperties,f=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(r=0;r<s;r+=1)if(("a"!==d[r].mode&&"n"!==d[r].mode||d[r].inv||100!==d[r].o.k||d[r].o.x)&&(v="mask",y="mask"),"s"!==d[r].mode&&"i"!==d[r].mode||0!==f?c=null:((c=createNS("rect")).setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),n=createNS("path"),"n"===d[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,d[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[r],3),elem:n,lastPath:""},a.appendChild(n);else{var b;if(f+=1,n.setAttribute("fill","s"===d[r].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==d[r].x.k?(v="mask",y="mask",u=PropertyFactory.getProp(this.element,d[r].x,0,null,this.element),b=createElementID(),(h=createNS("filter")).setAttribute("id",b),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),h.appendChild(p),a.appendChild(h),n.setAttribute("stroke","s"===d[r].mode?"#000000":"#ffffff")):(p=null,u=null),this.storedData[r]={elem:n,x:u,expan:p,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===d[r].mode){l=m.length;var x=createNS("g");for(o=0;o<l;o+=1)x.appendChild(m[o]);var _=createNS("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",g+"_"+f),_.appendChild(n),a.appendChild(_),x.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(x)}else m.push(n);d[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,d[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,d[r],3),invRect:c},this.viewData[r].prop.k||this.drawPath(d[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(v),s=m.length,r=0;r<s;r+=1)this.maskElement.appendChild(m[r]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+getLocationHref()+"#"+g+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),i=0;i<r;i+=1)t.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),e=1;e<t;e+=1){var r=this.localTransforms[e].matrix;i.multiply(r)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)n*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,i=e.length;for(t=0;t<i;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var i,r=!0,n=this.comp;r;)n.finalTransform?(n.data.hasMask&&t.splice(0,0,n.finalTransform),n=n.comp):r=!1;var a,s=t.length;for(i=0;i<s;i+=1)a=t[i].mat.applyToPointArray(0,0,0),e=[e[0]-a[0],e[1]-a[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,i=this.element.finalTransform.mat,r=this.masksProperties.length;for(t=0;t<r;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var n=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),n.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,i){var r,n,a=" M"+t.v[0][0]+","+t.v[0][1];for(n=t._length,r=1;r<n;r+=1)a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[r][0]+","+t.i[r][1]+" "+t.v[r][0]+","+t.v[r][1];if(t.c&&n>1&&(a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),i.lastPath!==a){var s="";i.elem&&(t.c&&(s=e.inv?this.solidPath+a:a),i.elem.setAttribute("d",s)),i.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var i=createNS("filter");return i.setAttribute("id",e),!0!==t&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,i,r="SourceGraphic",n=e.data.ef?e.data.ef.length:0,a=createElementID(),s=filtersFactory.createFilter(a,!0),o=0;for(this.filters=[],t=0;t<n;t+=1){i=null;var l=e.data.ef[t].ty;registeredEffects$1[l]&&(i=new(0,registeredEffects$1[l].effect)(s,e.effectsManager.effectElements[t],e,idPrefix+o,r),r=idPrefix+o,registeredEffects$1[l].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,i){registeredEffects$1[e]={effect:t,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,i=this.filters.length,r=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(i.setAttribute("id",n),i.appendChild(r),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,i,r,n,a=this.layerId+"_"+e;if(1===e||3===e){var s=createNS("mask");s.setAttribute("id",a),s.setAttribute("mask-type",3===e?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(r),this.globalData.defs.appendChild(s),featureSupport.maskType||1!==e||(s.setAttribute("mask-type","luminance"),t=createElementID(),i=filtersFactory.createFilter(t),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(r),s.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var o=createNS("mask");o.setAttribute("id",a),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),t=createElementID(),i=filtersFactory.createFilter(t);var c=createNS("feComponentTransfer");c.setAttribute("in","SourceGraphic"),i.appendChild(c);var h=createNS("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),c.appendChild(h),this.globalData.defs.appendChild(i);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),l.appendChild(p),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(p),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(o)}this.matteMasks[e]=a}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initTransform(e,t,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,i=this.shapeModifiers.length;for(t=0;t<i;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,i=0,r=t.length;i<r;){if(t[i].elem===e)return t[i].pos;i+=1}return 0},addProcessedElement:function(e,t){for(var i=this.processedElements,r=i.length;r;)if(i[r-=1].elem===e)return void(i[r].pos=t);i.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=t,this._isAnimated=!!i.k;for(var r=0,n=e.length;r<n;){if(e[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,i,r){var n;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var a,s=t.length||0;for(n=0;n<s;n+=1)a=PropertyFactory.getProp(e,t[n].v,0,0,this),this.k=a.k||this.k,this.dataProps[n]={n:t[n].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=i}function SVGNoStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(e,t,i){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var r=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,i)}function SVGGradientStrokeStyleData(e,t,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,i){this.transform={mProps:e,op:t,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<i;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var i=0,r=this.o.length/2;i<r;){if(Math.abs(e[4*i]-e[4*t+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,i,r,n=4*this.data.p;for(t=0;t<n;t+=1)i=t%4==0?100:255,r=Math.round(this.prop.v[t]*i),this.c[t]!==r&&(this.c[t]=r,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,t=4*this.data.p;t<n;t+=1)i=t%2==0?100:1,r=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==r&&(this.o[t-4*this.data.p]=r,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,i){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,t),this.setGradientOpacity(t,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var i=createElementID(),r=createNS(1===t.t?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var n,a,s,o=[];for(s=4*t.g.p,a=0;a<s;a+=4)n=createNS("stop"),r.appendChild(n),o.push(n);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=r,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var i,r,n,a=createNS("mask"),s=createNS("path");a.appendChild(s);var o=createElementID(),l=createElementID();a.setAttribute("id",l);var c=createNS(1===e.t?"linearGradient":"radialGradient");c.setAttribute("id",o),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),n=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var h=this.stops;for(r=4*e.g.p;r<n;r+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(i),h.push(i);s.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===e.ty&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=c,this.ms=a,this.ost=h,this.maskId=l,t.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,i,r){if(0===t)return"";var n,a=e.o,s=e.i,o=e.v,l=" M"+r.applyToPointStringified(o[0][0],o[0][1]);for(n=1;n<t;n+=1)l+=" C"+r.applyToPointStringified(a[n-1][0],a[n-1][1])+" "+r.applyToPointStringified(s[n][0],s[n][1])+" "+r.applyToPointStringified(o[n][0],o[n][1]);return i&&t&&(l+=" C"+r.applyToPointStringified(a[n-1][0],a[n-1][1])+" "+r.applyToPointStringified(s[0][0],s[0][1])+" "+r.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function i(e,t,i){(i||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(i||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function r(){}function n(i,r,n){var a,s,o,l,c,h,p,u,d,f,m=r.styles.length,g=r.lvl;for(h=0;h<m;h+=1){if(l=r.sh._mdf||n,r.styles[h].lvl<g){for(u=t.reset(),d=g-r.styles[h].lvl,f=r.transformers.length-1;!l&&d>0;)l=r.transformers[f].mProps._mdf||l,d-=1,f-=1;if(l)for(d=g-r.styles[h].lvl,f=r.transformers.length-1;d>0;)u.multiply(r.transformers[f].mProps.v),d-=1,f-=1}else u=e;if(s=(p=r.sh.paths)._length,l){for(o="",a=0;a<s;a+=1)(c=p.shapes[a])&&c._length&&(o+=buildShapeString(c,c._length,c.c,u));r.caches[h]=o}else o=r.caches[h];r.styles[h].d+=!0===i.hd?"":o,r.styles[h]._mdf=l||r.styles[h]._mdf}}function a(e,t,i){var r=t.style;(t.c._mdf||i)&&r.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i)&&r.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,i){o(e,t,i),l(0,t,i)}function o(e,t,i){var r,n,a,s,o,l=t.gf,c=t.g._hasOpacity,h=t.s.v,p=t.e.v;if(t.o._mdf||i){var u="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(u,t.o.v)}if(t.s._mdf||i){var d=1===e.t?"x1":"cx",f="x1"===d?"y1":"cy";l.setAttribute(d,h[0]),l.setAttribute(f,h[1]),c&&!t.g._collapsable&&(t.of.setAttribute(d,h[0]),t.of.setAttribute(f,h[1]))}if(t.g._cmdf||i){r=t.cst;var m=t.g.c;for(a=r.length,n=0;n<a;n+=1)(s=r[n]).setAttribute("offset",m[4*n]+"%"),s.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(c&&(t.g._omdf||i)){var g=t.g.o;for(a=(r=t.g._collapsable?t.cst:t.ost).length,n=0;n<a;n+=1)s=r[n],t.g._collapsable||s.setAttribute("offset",g[2*n]+"%"),s.setAttribute("stop-opacity",g[2*n+1])}if(1===e.t)(t.e._mdf||i)&&(l.setAttribute("x2",p[0]),l.setAttribute("y2",p[1]),c&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||i)&&(o=Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)),l.setAttribute("r",o),c&&!t.g._collapsable&&t.of.setAttribute("r",o)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||i){o||(o=Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)));var v=Math.atan2(p[1]-h[1],p[0]-h[0]),y=t.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=o*y,x=Math.cos(v+t.a.v)*b+h[0],_=Math.sin(v+t.a.v)*b+h[1];l.setAttribute("fx",x),l.setAttribute("fy",_),c&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",_))}}function l(e,t,i){var r=t.style,n=t.d;n&&(n._mdf||i)&&n.dashStr&&(r.pElem.setAttribute("stroke-dasharray",n.dashStr),r.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),t.c&&(t.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return o;case"gs":return s;case"st":return l;case"sh":case"el":case"rc":case"sr":return n;case"tr":return i;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,i),this.prevViewData=[]}function LetterProps(e,t,i,r,n,a){this.o=e,this.sw=t,this.sc=i,this.fc=r,this.m=n,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!i,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,i,r,n=this.shapes.length,a=this.stylesList.length,s=[],o=!1;for(i=0;i<a;i+=1){for(r=this.stylesList[i],o=!1,s.length=0,e=0;e<n;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(r)&&(s.push(t),o=t._isAnimated||o);s.length>1&&o&&this.setShapesAsAnimated(s)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var i,r=new SVGStyleData(e,t),n=r.pElem;return"st"===e.ty?i=new SVGStrokeStyleData(this,e,r):"fl"===e.ty?i=new SVGFillStyleData(this,e,r):"gf"===e.ty||"gs"===e.ty?(i=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,r),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),n.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===e.ty&&(i=new SVGNoStyleData(this,e,r)),"st"!==e.ty&&"gs"!==e.ty||(n.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),n.setAttribute("fill-opacity","0"),1===e.lj&&n.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&n.setAttribute("fill-rule","evenodd"),e.ln&&n.setAttribute("id",e.ln),e.cl&&n.setAttribute("class",e.cl),e.bm&&(n.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(r),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var i=TransformPropertyFactory.getTransformProperty(this,e,this),r=new SVGTransformData(i,i.o,t);return this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createShapeElement=function(e,t,i){var r=4;"rc"===e.ty?r=5:"el"===e.ty?r=6:"sr"===e.ty&&(r=7);var n=new SVGShapeData(t,i,ShapePropertyFactory.getShapeProp(this,e,r,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var i=0,r=this.animatedContents.length;i<r;){if(this.animatedContents[i].element===t)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,i=e.styles,r=this.stylesList.length;for(t=0;t<r;t+=1)-1!==i.indexOf(this.stylesList[t])||this.stylesList[t].closed||i.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,i,r,n,a,s){var o,l,c,h,p,u,d=[].concat(a),f=e.length-1,m=[],g=[];for(o=f;o>=0;o-=1){if((u=this.searchProcessedElement(e[o]))?t[o]=i[u-1]:e[o]._render=s,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty||"no"===e[o].ty)u?t[o].style.closed=e[o].hd:t[o]=this.createStyleElement(e[o],n),e[o]._render&&t[o].style.pElem.parentNode!==r&&r.appendChild(t[o].style.pElem),m.push(t[o].style);else if("gr"===e[o].ty){if(u)for(c=t[o].it.length,l=0;l<c;l+=1)t[o].prevViewData[l]=t[o].it[l];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,n+1,d,s),e[o]._render&&t[o].gr.parentNode!==r&&r.appendChild(t[o].gr)}else"tr"===e[o].ty?(u||(t[o]=this.createTransformElement(e[o],r)),h=t[o].transform,d.push(h)):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?(u||(t[o]=this.createShapeElement(e[o],d,n)),this.setElementStyles(t[o])):"tm"===e[o].ty||"rd"===e[o].ty||"ms"===e[o].ty||"pb"===e[o].ty||"zz"===e[o].ty||"op"===e[o].ty?(u?(p=t[o]).closed=!1:((p=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=p,this.shapeModifiers.push(p)),g.push(p)):"rp"===e[o].ty&&(u?(p=t[o]).closed=!0:(p=ShapeModifiers.getModifier(e[o].ty),t[o]=p,p.init(this,e,o,t),this.shapeModifiers.push(p),s=!1),g.push(p));this.addProcessedElement(e[o],o+1)}for(f=m.length,o=0;o<f;o+=1)m[o].closed=!0;for(f=g.length,o=0;o<f;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,i=this.animatedContents.length;for(e=0;e<i;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,i,r,n,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,s=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,s=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,s=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,s=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,s=!0),s},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(r=0;r<n;r+=1)a=i!==this.keysIndex?this.effectsSequence[r](a,a.t):this.effectsSequence[r](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,i=0,r=e.length;i<=r-1&&!(i===r-1||e[i+1].t>t);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,i,r=[],n=0,a=e.length,s=!1,o=!1,l="";n<a;)s=o,o=!1,t=e.charCodeAt(n),l=e.charAt(n),FontManager.isCombinedCharacter(t)?s=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,n)?l=e.substr(n,14):(i=e.charCodeAt(n+1))>=56320&&i<=57343&&(FontManager.isModifier(t,i)?(l=e.substr(n,2),s=!0):l=FontManager.isFlagEmoji(e.substr(n,4))?e.substr(n,4):e.substr(n,2)):t>56319?(i=e.charCodeAt(n+1),FontManager.isVariationSelector(t)&&(s=!0)):FontManager.isZeroWidthJoiner(t)&&(s=!0,o=!0),s?(r[r.length-1]+=l,s=!1):r.push(l),n+=l.length;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,i,r,n,a,s,o,l=this.elem.globalData.fontManager,c=this.data,h=[],p=0,u=c.m.g,d=0,f=0,m=0,g=[],v=0,y=0,b=l.getFontByName(e.f),x=0,_=getFontProperties(b);e.fWeight=_.weight,e.fStyle=_.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),i=e.finalText.length,e.finalLineHeight=e.lh;var S,w=e.tr/1e3*e.finalSize;if(e.sz)for(var C,P,E=!0,k=e.sz[0],$=e.sz[1];E;){C=0,v=0,i=(P=this.buildFinalText(e.t)).length,w=e.tr/1e3*e.finalSize;var A=-1;for(t=0;t<i;t+=1)S=P[t].charCodeAt(0),r=!1," "===P[t]?A=t:13!==S&&3!==S||(v=0,r=!0,C+=e.finalLineHeight||1.2*e.finalSize),l.chars?(o=l.getCharData(P[t],b.fStyle,b.fFamily),x=r?0:o.w*e.finalSize/100):x=l.measureText(P[t],e.f,e.finalSize),v+x>k&&" "!==P[t]?(-1===A?i+=1:t=A,C+=e.finalLineHeight||1.2*e.finalSize,P.splice(t,A===t?1:0,"\r"),A=-1,v=0):(v+=x,v+=w);C+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&$<C?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=P,i=e.finalText.length,E=!1)}v=-w,x=0;var T,D=0;for(t=0;t<i;t+=1)if(r=!1,13===(S=(T=e.finalText[t]).charCodeAt(0))||3===S?(D=0,g.push(v),y=v>y?v:y,v=-2*w,n="",r=!0,m+=1):n=T,l.chars?(o=l.getCharData(T,b.fStyle,l.getFontByName(e.f).fFamily),x=r?0:o.w*e.finalSize/100):x=l.measureText(n,e.f,e.finalSize)," "===T?D+=x+w:(v+=x+w+D,D=0),h.push({l:x,an:x,add:d,n:r,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==u){if(d+=x,""===n||" "===n||t===i-1){for(""!==n&&" "!==n||(d-=x);f<=t;)h[f].an=d,h[f].ind=p,h[f].extra=x,f+=1;p+=1,d=0}}else if(3==u){if(d+=x,""===n||t===i-1){for(""===n&&(d-=x);f<=t;)h[f].an=d,h[f].ind=p,h[f].extra=x,f+=1;d=0,p+=1}}else h[p].ind=p,h[p].extra=0,p+=1;if(e.l=h,y=v>y?v:y,g.push(v),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=y,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var M,I,F,j,R=c.a;s=R.length;var B=[];for(a=0;a<s;a+=1){for((M=R[a]).a.sc&&(e.strokeColorAnim=!0),M.a.sw&&(e.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(e.fillColorAnim=!0),j=0,F=M.s.b,t=0;t<i;t+=1)(I=h[t]).anIndexes[a]=j,(1==F&&""!==I.val||2==F&&""!==I.val&&" "!==I.val||3==F&&(I.n||" "==I.val||t==i-1)||4==F&&(I.n||t==i-1))&&(1===M.s.rn&&B.push(j),j+=1);c.a[a].s.totalChars=j;var O,L=-1;if(1===M.s.rn)for(t=0;t<i;t+=1)L!=(I=h[t]).anIndexes[a]&&(L=I.anIndexes[a],O=B.splice(Math.floor(Math.random()*B.length),1)[0]),I.anIndexes[a]=O}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var i=this.copyData({},this.data.d.k[t].s);i=this.copyData(i,e),this.data.d.k[t].s=i,this.recalculate(t),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,i=Math.floor;function r(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,a=0,s=1,o=1;this.ne.v>0?n=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,a,s,o).get,c=0,h=this.finalS,p=this.finalE,u=this.data.sh;if(2===u)c=l(c=p===h?r>=p?1:0:e(0,t(.5/(p-h)+(r-h)/(p-h),1)));else if(3===u)c=l(c=p===h?r>=p?0:1:1-e(0,t(.5/(p-h)+(r-h)/(p-h),1)));else if(4===u)p===h?c=0:(c=e(0,t(.5/(p-h)+(r-h)/(p-h),1)))<.5?c*=2:c=1-2*(c-.5),c=l(c);else if(5===u){if(p===h)c=0;else{var d=p-h,f=-d/2+(r=t(e(0,r+.5-h),p-h)),m=d/2;c=Math.sqrt(1-f*f/(m*m))}c=l(c)}else 6===u?(p===h?c=0:(r=t(e(0,r+.5-h),p-h),c=(1+Math.cos(Math.PI+2*Math.PI*r/(p-h)))/2),c=l(c)):(r>=i(h)&&(c=e(0,t(r-h<0?t(p,1)-(h-r):p-r,1))),c=l(c));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;c<v?c=0:(c=(c-v)/g)>1&&(c=1)}return c*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/t,r=this.s.v/t+i,n=this.e.v/t+i;if(r>n){var a=r;r=n,n=a}this.finalS=r,this.finalE=n}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,i){return new r(e,t)}}}();function TextAnimatorDataProperty(e,t,i){var r={propType:!1},n=PropertyFactory.getProp,a=t.a;this.a={r:a.r?n(e,a.r,0,degToRads,i):r,rx:a.rx?n(e,a.rx,0,degToRads,i):r,ry:a.ry?n(e,a.ry,0,degToRads,i):r,sk:a.sk?n(e,a.sk,0,degToRads,i):r,sa:a.sa?n(e,a.sa,0,degToRads,i):r,s:a.s?n(e,a.s,1,.01,i):r,a:a.a?n(e,a.a,1,0,i):r,o:a.o?n(e,a.o,0,.01,i):r,p:a.p?n(e,a.p,1,0,i):r,sw:a.sw?n(e,a.sw,0,0,i):r,sc:a.sc?n(e,a.sc,1,0,i):r,fc:a.fc?n(e,a.fc,1,0,i):r,fh:a.fh?n(e,a.fh,0,0,i):r,fs:a.fs?n(e,a.fs,0,.01,i):r,fb:a.fb?n(e,a.fb,0,.01,i):r,t:a.t?n(e,a.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,i),this.s.t=t.s.t}function TextAnimatorProperty(e,t,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,i=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e<i;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,r,n,a,s,o,l,c,h,p,u,d,f,m,g,v,y,b,x,_=this._moreOptions.alignment.v,S=this._animatorsData,w=this._textData,C=this.mHelper,P=this._renderType,E=this.renderedLetters.length,k=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var $,A=x.v;for(this._pathData.r.v&&(A=A.reverse()),s={tLength:0,segments:[]},a=A._length-1,v=0,n=0;n<a;n+=1)$=bez.buildBezierData(A.v[n],A.v[n+1],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[n+1][0]-A.v[n+1][0],A.i[n+1][1]-A.v[n+1][1]]),s.tLength+=$.segmentLength,s.segments.push($),v+=$.segmentLength;n=a,x.v.c&&($=bez.buildBezierData(A.v[n],A.v[0],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),s.tLength+=$.segmentLength,s.segments.push($),v+=$.segmentLength),this._pathData.pi=s}if(s=this._pathData.pi,o=this._pathData.f.v,u=0,p=1,c=0,h=!0,m=s.segments,o<0&&x.v.c)for(s.tLength<Math.abs(o)&&(o=-Math.abs(o)%s.tLength),p=(f=m[u=m.length-1].points).length-1;o<0;)o+=f[p].partialLength,(p-=1)<0&&(p=(f=m[u-=1].points).length-1);d=(f=m[u].points)[p-1],g=(l=f[p]).partialLength}a=k.length,i=0,r=0;var T,D,M,I,F,j=1.2*e.finalSize*.714,R=!0;M=S.length;var B,O,L,q,N,z,V,H,W,G,U,Y,K=-1,X=o,Z=u,J=p,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ie=0,re=0,ne=2===e.j?-.5:-1,ae=0,se=!0;for(n=0;n<a;n+=1)if(k[n].n){for(ie&&(ie+=re);ae<n;)k[ae].animatorJustifyOffset=ie,ae+=1;ie=0,se=!0}else{for(D=0;D<M;D+=1)(T=S[D].a).t.propType&&(se&&2===e.j&&(re+=T.t.v*ne),(F=S[D].s.getMult(k[n].anIndexes[D],w.a[D].s.totalChars)).length?ie+=T.t.v*F[0]*ne:ie+=T.t.v*F*ne);se=!1}for(ie&&(ie+=re);ae<n;)k[ae].animatorJustifyOffset=ie,ae+=1}for(n=0;n<a;n+=1){if(C.reset(),q=1,k[n].n)i=0,r+=e.yOffset,r+=R?1:0,o=X,R=!1,this._hasMaskedPath&&(p=J,d=(f=m[u=Z].points)[p-1],g=(l=f[p]).partialLength,c=0),ee="",U="",W="",Y="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==k[n].line){switch(e.j){case 1:o+=v-e.lineWidths[k[n].line];break;case 2:o+=(v-e.lineWidths[k[n].line])/2}Q=k[n].line}K!==k[n].ind&&(k[K]&&(o+=k[K].extra),o+=k[n].an/2,K=k[n].ind),o+=_[0]*k[n].an*.005;var oe=0;for(D=0;D<M;D+=1)(T=S[D].a).p.propType&&((F=S[D].s.getMult(k[n].anIndexes[D],w.a[D].s.totalChars)).length?oe+=T.p.v[0]*F[0]:oe+=T.p.v[0]*F),T.a.propType&&((F=S[D].s.getMult(k[n].anIndexes[D],w.a[D].s.totalChars)).length?oe+=T.a.v[0]*F[0]:oe+=T.a.v[0]*F);for(h=!0,this._pathData.a.v&&(o=.5*k[0].an+(v-this._pathData.f.v-.5*k[0].an-.5*k[k.length-1].an)*K/(a-1),o+=this._pathData.f.v);h;)c+g>=o+oe||!f?(y=(o+oe-c)/l.partialLength,O=d.point[0]+(l.point[0]-d.point[0])*y,L=d.point[1]+(l.point[1]-d.point[1])*y,C.translate(-_[0]*k[n].an*.005,-_[1]*j*.01),h=!1):f&&(c+=l.partialLength,(p+=1)>=f.length&&(p=0,m[u+=1]?f=m[u].points:x.v.c?(p=0,f=m[u=0].points):(c-=l.partialLength,f=null)),f&&(d=l,g=(l=f[p]).partialLength));B=k[n].an/2-k[n].add,C.translate(-B,0,0)}else B=k[n].an/2-k[n].add,C.translate(-B,0,0),C.translate(-_[0]*k[n].an*.005,-_[1]*j*.01,0);for(D=0;D<M;D+=1)(T=S[D].a).t.propType&&(F=S[D].s.getMult(k[n].anIndexes[D],w.a[D].s.totalChars),0===i&&0===e.j||(this._hasMaskedPath?F.length?o+=T.t.v*F[0]:o+=T.t.v*F:F.length?i+=T.t.v*F[0]:i+=T.t.v*F));for(e.strokeWidthAnim&&(z=e.sw||0),e.strokeColorAnim&&(N=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(V=[e.fc[0],e.fc[1],e.fc[2]]),D=0;D<M;D+=1)(T=S[D].a).a.propType&&((F=S[D].s.getMult(k[n].anIndexes[D],w.a[D].s.totalChars)).length?C.translate(-T.a.v[0]*F[0],-T.a.v[1]*F[1],T.a.v[2]*F[2]):C.translate(-T.a.v[0]*F,-T.a.v[1]*F,T.a.v[2]*F));for(D=0;D<M;D+=1)(T=S[D].a).s.propType&&((F=S[D].s.getMult(k[n].anIndexes[D],w.a[D].s.totalChars)).length?C.scale(1+(T.s.v[0]-1)*F[0],1+(T.s.v[1]-1)*F[1],1):C.scale(1+(T.s.v[0]-1)*F,1+(T.s.v[1]-1)*F,1));for(D=0;D<M;D+=1){if(T=S[D].a,F=S[D].s.getMult(k[n].anIndexes[D],w.a[D].s.totalChars),T.sk.propType&&(F.length?C.skewFromAxis(-T.sk.v*F[0],T.sa.v*F[1]):C.skewFromAxis(-T.sk.v*F,T.sa.v*F)),T.r.propType&&(F.length?C.rotateZ(-T.r.v*F[2]):C.rotateZ(-T.r.v*F)),T.ry.propType&&(F.length?C.rotateY(T.ry.v*F[1]):C.rotateY(T.ry.v*F)),T.rx.propType&&(F.length?C.rotateX(T.rx.v*F[0]):C.rotateX(T.rx.v*F)),T.o.propType&&(F.length?q+=(T.o.v*F[0]-q)*F[0]:q+=(T.o.v*F-q)*F),e.strokeWidthAnim&&T.sw.propType&&(F.length?z+=T.sw.v*F[0]:z+=T.sw.v*F),e.strokeColorAnim&&T.sc.propType)for(H=0;H<3;H+=1)F.length?N[H]+=(T.sc.v[H]-N[H])*F[0]:N[H]+=(T.sc.v[H]-N[H])*F;if(e.fillColorAnim&&e.fc){if(T.fc.propType)for(H=0;H<3;H+=1)F.length?V[H]+=(T.fc.v[H]-V[H])*F[0]:V[H]+=(T.fc.v[H]-V[H])*F;T.fh.propType&&(V=F.length?addHueToRGB(V,T.fh.v*F[0]):addHueToRGB(V,T.fh.v*F)),T.fs.propType&&(V=F.length?addSaturationToRGB(V,T.fs.v*F[0]):addSaturationToRGB(V,T.fs.v*F)),T.fb.propType&&(V=F.length?addBrightnessToRGB(V,T.fb.v*F[0]):addBrightnessToRGB(V,T.fb.v*F))}}for(D=0;D<M;D+=1)(T=S[D].a).p.propType&&(F=S[D].s.getMult(k[n].anIndexes[D],w.a[D].s.totalChars),this._hasMaskedPath?F.length?C.translate(0,T.p.v[1]*F[0],-T.p.v[2]*F[1]):C.translate(0,T.p.v[1]*F,-T.p.v[2]*F):F.length?C.translate(T.p.v[0]*F[0],T.p.v[1]*F[1],-T.p.v[2]*F[2]):C.translate(T.p.v[0]*F,T.p.v[1]*F,-T.p.v[2]*F));if(e.strokeWidthAnim&&(W=z<0?0:z),e.strokeColorAnim&&(G="rgb("+Math.round(255*N[0])+","+Math.round(255*N[1])+","+Math.round(255*N[2])+")"),e.fillColorAnim&&e.fc&&(U="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),this._hasMaskedPath){if(C.translate(0,-e.ls),C.translate(0,_[1]*j*.01+r,0),this._pathData.p.v){b=(l.point[1]-d.point[1])/(l.point[0]-d.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<d.point[0]&&(le+=180),C.rotate(-le*Math.PI/180)}C.translate(O,L,0),o-=_[0]*k[n].an*.005,k[n+1]&&K!==k[n+1].ind&&(o+=k[n].an/2,o+=.001*e.tr*e.finalSize)}else{switch(C.translate(i,r,0),e.ps&&C.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:C.translate(k[n].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[k[n].line]),0,0);break;case 2:C.translate(k[n].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[k[n].line])/2,0,0)}C.translate(0,-e.ls),C.translate(B,0,0),C.translate(_[0]*k[n].an*.005,_[1]*j*.01,0),i+=k[n].l+.001*e.tr*e.finalSize}"html"===P?ee=C.toCSS():"svg"===P?ee=C.to2dCSS():te=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],Y=q}E<=n?(I=new LetterProps(Y,W,G,U,ee,te),this.renderedLetters.push(I),E+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[n],this.lettersChangedFlag=I.update(Y,W,G,U,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var i,r,n=t.length,a="";for(i=0;i<n;i+=1)"sh"===t[i].ty&&(r=t[i].ks.k,a+=buildShapeString(r,r.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,i,r,n){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0)}t.translate(r,n,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,i){this.textSpans=[],this.renderType="svg",this.initElement(e,t,i)}function ISolidElement(e,t,i){this.initElement(e,t,i)}function NullElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initFrame(),this.initTransform(e,t,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(t&&t.title){var r=createNS("title"),n=createElementID();r.setAttribute("id",n),r.textContent=t.title,this.svgElement.appendChild(r),i+=n}if(t&&t.description){var a=createNS("desc"),s=createElementID();a.setAttribute("id",s),a.textContent=t.description,this.svgElement.appendChild(a),i+=" "+s}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,i=e.length,r=[],n="";t<i;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(r.push(n),n=""):n+=e[t],t+=1;return r.push(n),r},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var r=i.it[i.it.length-1];r.s&&(r.s.k[0]=t,r.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var r=this.globalData.fontManager.getFontByName(i.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var n=i.fWeight,a=i.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",i.t);var s,o=i.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var c=this.mHelper,h=this.data.singleShape,p=0,u=0,d=!0,f=.001*i.tr*i.finalSize;if(!h||l||i.sz){var m,g=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!h||0===e){if(s=g>e?this.textSpans[e].span:createNS(l?"g":"text"),g<=e){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=s,l){var v=createNS("g");s.appendChild(v),this.textSpans[e].childSpan=v}this.textSpans[e].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(c.reset(),h&&(o[e].n&&(p=-f,u+=i.yOffset,u+=d?1:0,d=!1),this.applyTextPropertiesToMatrix(i,c,o[e].line,p,u),p+=o[e].l||0,p+=f),l){var y;if(1===(m=this.globalData.fontManager.getCharData(i.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)y=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,i.finalSize)),y=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var x=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[e].glyph=y,y._debug=!0,y.prepareFrame(0),y.renderFrame(),this.textSpans[e].childSpan.appendChild(y.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else h&&s.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),s.textContent=o[e].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}h&&s&&s.setAttribute("d","")}else{var _=this.textContainer,S="start";switch(i.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}_.setAttribute("text-anchor",S),_.setAttribute("letter-spacing",f);var w=this.buildTextContents(i.finalText);for(t=w.length,u=i.ps?i.ps[1]+i.ascent:0,e=0;e<t;e+=1)(s=this.textSpans[e].span||createNS("tspan")).textContent=w[e],s.setAttribute("x",0),s.setAttribute("y",u),s.style.display="inherit",_.appendChild(s),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=s,u+=i.finalLineHeight;this.layerElement.appendChild(_)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<i;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var i,r,n,a=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(t=s.length,e=0;e<t;e+=1)s[e].n||(i=a[e],r=this.textSpans[e].span,(n=this.textSpans[e].glyph)&&n.renderFrame(),i._mdf.m&&r.setAttribute("transform",i.m),i._mdf.o&&r.setAttribute("opacity",i.o),i._mdf.sw&&r.setAttribute("stroke-width",i.sw),i._mdf.sc&&r.setAttribute("stroke",i.sc),i._mdf.fc&&r.setAttribute("fill",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var i=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",e.w),r.setAttribute("height",e.h),r.setAttribute("x",0),r.setAttribute("y",0);var n=createElementID();i.setAttribute("id",n),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),t.appendChild(i),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,i=this.layers.length;for(t=0;t<i;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var i=this.createItem(this.layers[e]);if(t[e]=i,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var r="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var n=t[r].getMatte(this.layers[e].tt);i.setMatte(n)}else this.buildItem(r),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,i=this.elements.length;t<i;){if(this.elements[t]===e){var r="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,n=this.elements[r].getMatte(this.layers[t].tt);e.setMatte(n);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=i-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<i;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){for(var r,n=0;n<t;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(i,r):this.layerElement.appendChild(i)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initTransform(e,t,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var i,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,i=e.length,r="_";for(t=0;t<i;t+=1)r+=e[t].transform.key+"_";var n=this.sequences[r];return n||(n={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=n,this.sequenceList.push(n)),n},processSequence:function(e,t){for(var i=0,r=e.transforms.length,n=t;i<r&&!t;){if(e.transforms[i].transform.mProps._mdf){n=!0;break}i+=1}if(n)for(e.finalTransform.reset(),i=r-1;i>=0;i-=1)e.finalTransform.multiply(e.transforms[i].transform.mProps.v);e._mdf=n},processSequences:function(e){var t,i=this.sequenceList.length;for(t=0;t<i;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,i=null,r=null;function n(){var n,a,s;t||(n=createNS("svg"),a=createNS("filter"),s=createNS("feColorMatrix"),a.setAttribute("id",e),s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),a.appendChild(s),n.appendChild(a),n.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(n.style.display="none"),r=n,document.body.appendChild(r),t=createTag("canvas"),(i=t.getContext("2d")).filter="url(#"+e+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}return{load:n,get:function(r){return t||n(),t.width=r.width,t.height=r.height,i.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var i=createTag("canvas");return i.width=e,i.height=t,i}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(e){var t,i,r=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<r;t+=1){i=null;var n=e.data.ef[t].ty;registeredEffects[n]&&(i=new(0,registeredEffects[n].effect)(e.effectsManager.effectElements[t],e)),i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var i;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r=this.masksProperties.length,n=!1;for(i=0;i<r;i+=1)"n"!==this.masksProperties[i].mode&&(n=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,i=this.filters.length;for(t=0;t<i;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,i=this.filters.length,r=[];for(t=0;t<i;t+=1)this.filters[t].type===e&&r.push(this.filters[t]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,i,r,n=this.element.finalTransform.mat,a=this.element.canvasContext,s=this.masksProperties.length;for(a.beginPath(),e=0;e<s;e+=1)if("n"!==this.masksProperties[e].mode){var o;this.masksProperties[e].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),r=this.viewData[e].v,t=n.applyToPointArray(r.v[0][0],r.v[0][1],0),a.moveTo(t[0],t[1]);var l=r._length;for(o=1;o<l;o+=1)i=n.applyToTriplePoints(r.o[o-1],r.i[o],r.v[o]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=n.applyToTriplePoints(r.o[o-1],r.i[0],r.v[0]),a.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),a.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,a=4;"rc"===t.ty?a=5:"el"===t.ty?a=6:"sr"===t.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,a,e);var s,o=i.length;for(n=0;n<o;n+=1)i[n].closed||(s={transforms:r.addTransformSequence(i[n].transforms),trNodes:[]},this.styledShapes.push(s),i[n].elements.push(s))}function CVShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,i)}function CVTextElement(e,t,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,i)}function CVImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,i)}function CVSolidElement(e,t,i){this.initElement(e,t,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,i){this.initElement(e,t,i)}function HShapeElement(e,t,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,i)}function HCameraElement(e,t,i){this.initFrame(),this.initBaseData(e,t,i),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,e.pe,0,0,this),e.ks.p.s?(this.px=r(this,e.ks.p.x,1,0,this),this.py=r(this,e.ks.p.y,1,0,this),this.pz=r(this,e.ks.p.z,1,0,this)):this.p=r(this,e.ks.p,1,0,this),e.ks.a&&(this.a=r(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var n,a=e.ks.or.k.length;for(n=0;n<a;n+=1)e.ks.or.k[n].to=null,e.ks.or.k[n].ti=null}this.or=r(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,e.ks.rx,0,degToRads,this),this.ry=r(this,e.ks.ry,0,degToRads,this),this.rz=r(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,i){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,i)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,i){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var i=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},r={};if("fl"===e.ty||"st"===e.ty?(r.c=PropertyFactory.getProp(this,e.c,1,255,this),r.c.k||(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(r.s=PropertyFactory.getProp(this,e.s,1,null,this),r.e=PropertyFactory.getProp(this,e.e,1,null,this),r.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,e.g,this)),r.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],1==e.lj&&(i.ml=e.ml),r.w=PropertyFactory.getProp(this,e.w,0,null,this),r.w.k||(i.wi=r.w.v),e.d){var n=new DashProperty(this,e.d,"canvas",this);r.d=n,r.d.k||(i.da=r.d.dashArray,i.do=r.d.dashoffset[0])}}else i.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(i),r.style=i,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,i=this.stylesList.length;for(t=0;t<i;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,i=e.length;for(t=0;t<i;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,i,r,n){var a,s,o,l,c,h,p=e.length-1,u=[],d=[],f=[].concat(n);for(a=p;a>=0;a-=1){if((l=this.searchProcessedElement(e[a]))?t[a]=i[l-1]:e[a]._shouldRender=r,"fl"===e[a].ty||"st"===e[a].ty||"gf"===e[a].ty||"gs"===e[a].ty)l?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],f),u.push(t[a].style);else if("gr"===e[a].ty){if(l)for(o=t[a].it.length,s=0;s<o;s+=1)t[a].prevViewData[s]=t[a].it[s];else t[a]=this.createGroupElement(e[a]);this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,r,f)}else"tr"===e[a].ty?(l||(h=this.createTransformElement(e[a]),t[a]=h),f.push(t[a]),this.addTransformToStyleList(t[a])):"sh"===e[a].ty||"rc"===e[a].ty||"el"===e[a].ty||"sr"===e[a].ty?l||(t[a]=this.createShapeElement(e[a])):"tm"===e[a].ty||"rd"===e[a].ty||"pb"===e[a].ty||"zz"===e[a].ty||"op"===e[a].ty?(l?(c=t[a]).closed=!1:((c=ShapeModifiers.getModifier(e[a].ty)).init(this,e[a]),t[a]=c,this.shapeModifiers.push(c)),d.push(c)):"rp"===e[a].ty&&(l?(c=t[a]).closed=!0:(c=ShapeModifiers.getModifier(e[a].ty),t[a]=c,c.init(this,e,a,t),this.shapeModifiers.push(c),r=!1),d.push(c));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),p=d.length,a=0;a<p;a+=1)d[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,i,r,n,a,s,o,l,c=this.stylesList.length,h=this.globalData.renderer,p=this.globalData.canvasContext;for(e=0;e<c;e+=1)if(("st"!==(o=(l=this.stylesList[e]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(h.save(),a=l.elements,"st"===o||"gs"===o?(h.ctxStrokeStyle("st"===o?l.co:l.grd),h.ctxLineWidth(l.wi),h.ctxLineCap(l.lc),h.ctxLineJoin(l.lj),h.ctxMiterLimit(l.ml||0)):h.ctxFillStyle("fl"===o?l.co:l.grd),h.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&p.beginPath(),h.ctxTransform(l.preTransforms.finalTransform.props),i=a.length,t=0;t<i;t+=1){for("st"!==o&&"gs"!==o||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),n=(s=a[t].trNodes).length,r=0;r<n;r+=1)"m"===s[r].t?p.moveTo(s[r].p[0],s[r].p[1]):"c"===s[r].t?p.bezierCurveTo(s[r].pts[0],s[r].pts[1],s[r].pts[2],s[r].pts[3],s[r].pts[4],s[r].pts[5]):p.closePath();"st"!==o&&"gs"!==o||(h.ctxStroke(),l.da&&p.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&this.globalData.renderer.ctxFill(l.r),h.restore()}},CVShapeElement.prototype.renderShape=function(e,t,i,r){var n,a;for(a=e,n=t.length-1;n>=0;n-=1)"tr"===t[n].ty?(a=i[n].transform,this.renderShapeTransform(e,a)):"sh"===t[n].ty||"el"===t[n].ty||"rc"===t[n].ty||"sr"===t[n].ty?this.renderPath(t[n],i[n]):"fl"===t[n].ty?this.renderFill(t[n],i[n],a):"st"===t[n].ty?this.renderStroke(t[n],i[n],a):"gf"===t[n].ty||"gs"===t[n].ty?this.renderGradientFill(t[n],i[n],a):"gr"===t[n].ty?this.renderShape(a,t[n].it,i[n].it):t[n].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var i,r,n,a=e.trNodes,s=t.paths,o=s._length;a.length=0;var l=e.transforms.finalTransform;for(n=0;n<o;n+=1){var c=s.shapes[n];if(c&&c.v){for(r=c._length,i=1;i<r;i+=1)1===i&&a.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),a.push({t:"c",pts:l.applyToTriplePoints(c.o[i-1],c.i[i],c.v[i])});1===r&&a.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&r&&(a.push({t:"c",pts:l.applyToTriplePoints(c.o[i-1],c.i[0],c.v[0])}),a.push({t:"z"}))}}e.trNodes=a}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var i,r=t.styledShapes.length;for(i=0;i<r;i+=1)this.renderStyledShape(t.styledShapes[i],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,i){var r=t.style;(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,i){var r,n=t.style;if(!n.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var a,s=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(1===e.t)r=s.createLinearGradient(o[0],o[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),h=Math.atan2(l[1]-o[1],l[0]-o[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var u=c*p,d=Math.cos(h+t.a.v)*u+o[0],f=Math.sin(h+t.a.v)*u+o[1];r=s.createRadialGradient(d,f,0,o[0],o[1],c)}var m=e.g.p,g=t.g.c,v=1;for(a=0;a<m;a+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[2*a+1]),r.addColorStop(g[4*a]/100,"rgba("+g[4*a+1]+","+g[4*a+2]+","+g[4*a+3]+","+v+")");n.grd=r}n.coOp=t.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,t,i){var r=t.style,n=t.d;n&&(n._mdf||this._isFirstFrame)&&(r.da=n.dashArray,r.do=n.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=t.o.v*i.opacity),(t.w._mdf||this._isFirstFrame)&&(r.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var r,n,a,s,o,l,c,h,p,u,d,f,m=this.globalData.fontManager.getFontByName(e.f),g=e.l,v=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,n=e.finalText.length;var y=this.data.singleShape,b=.001*e.tr*e.finalSize,x=0,_=0,S=!0,w=0;for(r=0;r<n;r+=1){s=(a=this.globalData.fontManager.getCharData(e.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&a.data||{},v.reset(),y&&g[r].n&&(x=-b,_+=e.yOffset,_+=S?1:0,S=!1),p=(c=s.shapes?s.shapes[0].it:[]).length,v.scale(e.finalSize/100,e.finalSize/100),y&&this.applyTextPropertiesToMatrix(e,v,g[r].line,x,_),d=createSizedArray(p-1);var C=0;for(h=0;h<p;h+=1)if("sh"===c[h].ty){for(l=c[h].ks.k.i.length,u=c[h].ks.k,f=[],o=1;o<l;o+=1)1===o&&f.push(v.applyToX(u.v[0][0],u.v[0][1],0),v.applyToY(u.v[0][0],u.v[0][1],0)),f.push(v.applyToX(u.o[o-1][0],u.o[o-1][1],0),v.applyToY(u.o[o-1][0],u.o[o-1][1],0),v.applyToX(u.i[o][0],u.i[o][1],0),v.applyToY(u.i[o][0],u.i[o][1],0),v.applyToX(u.v[o][0],u.v[o][1],0),v.applyToY(u.v[o][0],u.v[o][1],0));f.push(v.applyToX(u.o[o-1][0],u.o[o-1][1],0),v.applyToY(u.o[o-1][0],u.o[o-1][1],0),v.applyToX(u.i[0][0],u.i[0][1],0),v.applyToY(u.i[0][0],u.i[0][1],0),v.applyToX(u.v[0][0],u.v[0][1],0),v.applyToY(u.v[0][0],u.v[0][1],0)),d[C]=f,C+=1}y&&(x+=g[r].l,x+=b),this.textSpans[w]?this.textSpans[w].elem=d:this.textSpans[w]={elem:d},w+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,i,r,n,a;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var s,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;t=l.length;var c,h,p=null,u=null,d=null,f=this.globalData.renderer;for(e=0;e<t;e+=1)if(!l[e].n){if((s=o[e])&&(f.save(),f.ctxTransform(s.p),f.ctxOpacity(s.o)),this.fill){for(s&&s.fc?p!==s.fc&&(f.ctxFillStyle(s.fc),p=s.fc):p!==this.values.fill&&(p=this.values.fill,f.ctxFillStyle(this.values.fill)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(a=(h=c[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(h[n],h[n+1],h[n+2],h[n+3],h[n+4],h[n+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(s&&s.sw?d!==s.sw&&(d=s.sw,f.ctxLineWidth(s.sw)):d!==this.values.sWidth&&(d=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),s&&s.sc?u!==s.sc&&(u=s.sc,f.ctxStrokeStyle(s.sc)):u!==this.values.stroke&&(u=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),r=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(a=(h=c[i]).length,this.globalData.canvasContext.moveTo(h[0],h[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(h[n],h[n+1],h[n+2],h[n+3],h[n+4],h[n+5]);this.globalData.canvasContext.closePath(),f.ctxStroke()}s&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,i,r=e.getContext("2d"),n=this.img.width,a=this.img.height,s=n/a,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>o&&"xMidYMid slice"===l||s<o&&"xMidYMid slice"!==l?t=(i=a)*o:i=(t=n)/o,r.drawImage(this.img,(n-t)/2,(a-i)/2,t,i,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,i,r){this.canvasContext.fillRect(e,t,i,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var i="0px 0px 0px";t.transformOrigin=i,t.mozTransformOrigin=i,t.webkitTransformOrigin=i,t["-webkit-transform"]=i,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var i,r,n,a;if(this.reset(),e?(i=e,r=t,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var s=this.renderConfig.preserveAspectRatio.split(" "),o=s[1]||"meet",l=s[0]||"xMidYMid",c=l.substr(0,4),h=l.substr(4);n=i/r,(a=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===o||a<n&&"slice"===o?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===c&&(a<n&&"meet"===o||a>n&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===c&&(a<n&&"meet"===o||a>n&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===h&&(a>n&&"meet"===o||a<n&&"slice"===o)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===h&&(a>n&&"meet"===o||a<n&&"slice"===o)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var i;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var i=this.createItem(this.layers[e],this,this.globalData);t[e]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,i=this.stack[this.cArrPos],r=i.transform,n=this.cTr.props;for(t=0;t<16;t+=1)n[t]=r[t];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i,r=this.stack[this.cArrPos];for(i=0;i<16;i+=1)r.transform[i]=t[i];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=r.opacity,n.fillStyle=r.fillStyle,n.strokeStyle=r.strokeStyle,n.lineWidth=r.lineWidth,n.lineCap=r.lineCap,n.lineJoin=r.lineJoin,n.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var i=t.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,i,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,i,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var i,r=e.length;for(i=0;i<r;i+=1)t=e[i].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var i,r,n,a,s,o=e.sh.v,l=e.transformers,c=o._length;if(!(c<=1)){for(i=0;i<c-1;i+=1)r=this.getTransformedPoint(l,o.v[i]),n=this.getTransformedPoint(l,o.o[i]),a=this.getTransformedPoint(l,o.i[i+1]),s=this.getTransformedPoint(l,o.v[i+1]),this.checkBounds(r,n,a,s,t);o.c&&(r=this.getTransformedPoint(l,o.v[i]),n=this.getTransformedPoint(l,o.o[i]),a=this.getTransformedPoint(l,o.i[0]),s=this.getTransformedPoint(l,o.v[0]),this.checkBounds(r,n,a,s,t))}},HShapeElement.prototype.checkBounds=function(e,t,i,r,n){this.getBoundsOfCurve(e,t,i,r);var a=this.shapeBoundingBox;n.x=bmMin(a.left,n.x),n.xMax=bmMax(a.right,n.xMax),n.y=bmMin(a.top,n.y),n.yMax=bmMax(a.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,i,r){for(var n,a,s,o,l,c,h,p=[[e[0],r[0]],[e[1],r[1]]],u=0;u<2;++u)a=6*e[u]-12*t[u]+6*i[u],n=-3*e[u]+9*t[u]-9*i[u]+3*r[u],s=3*t[u]-3*e[u],a|=0,s|=0,0==(n|=0)&&0===a||(0===n?(o=-s/a)>0&&o<1&&p[u].push(this.calculateF(o,e,t,i,r,u)):(l=a*a-4*s*n)>=0&&((c=(-a+bmSqrt(l))/(2*n))>0&&c<1&&p[u].push(this.calculateF(c,e,t,i,r,u)),(h=(-a-bmSqrt(l))/(2*n))>0&&h<1&&p[u].push(this.calculateF(h,e,t,i,r,u))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(e,t,i,r,n,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*i[a]+3*(1-e)*bmPow(e,2)*r[a]+bmPow(e,3)*n[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var i,r=e.length;for(i=0;i<r;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],t):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,t):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var i=0;if(e.keyframes){for(var r=0;r<e.keyframes.length;r+=1){var n=e.keyframes[r].s;n>i&&(i=n)}i*=e.mult}else i=e.v*e.mult;t.x-=i,t.xMax+=i,t.y-=i,t.yMax+=i},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=n,r.webkitTransform=n}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=i,t.color=i,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var r,n,a=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{t.fontFamily=a.fFamily;var s=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=s}var l,c,h,p=e.l;n=p.length;var u,d=this.mHelper,f="",m=0;for(r=0;r<n;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?h=(c=this.textSpans[m]).children[0]:((c=createTag("div")).style.lineHeight=0,(h=createNS("svg")).appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(c=this.textSpans[m],l=this.textPaths[m]):(styleDiv(c=createTag("span")),styleDiv(l=createTag("span")),c.appendChild(l)),this.globalData.fontManager.chars){var g,v=this.globalData.fontManager.getCharData(e.finalText[r],a.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(g=v?v.data:null,d.reset(),g&&g.shapes&&g.shapes.length&&(u=g.shapes[0].it,d.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(d,u),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),g&&g.shapes){document.body.appendChild(h);var y=h.getBBox();h.setAttribute("width",y.width+2),h.setAttribute("height",y.height+2),h.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=h.style,x="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=x,b.webkitTransform=x,p[r].yOffset=y.y-1}else h.setAttribute("width",1),h.setAttribute("height",1);c.appendChild(h)}}else if(l.textContent=p[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(c);var _=l.style,S="translate3d(0,"+-e.finalSize/1.2+"px,0)";_.transform=S,_.webkitTransform=S}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=c,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,r,n,a,s,o=0,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;for(r=c.length,i=0;i<r;i+=1)c[i].n?o+=1:(a=this.textSpans[i],s=this.textPaths[i],n=l[o],o+=1,n._mdf.m&&(this.isMasked?a.setAttribute("transform",n.m):(a.style.webkitTransform=n.m,a.style.transform=n.m)),a.style.opacity=n.o,n.sw&&n._mdf.sw&&s.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&s.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(s.setAttribute("fill",n.fc),s.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var h=this.innerElem.getBBox();if(this.currentBBox.w!==h.width&&(this.currentBBox.w=h.width,this.svgElement.setAttribute("width",h.width)),this.currentBBox.h!==h.height&&(this.currentBBox.h=h.height,this.svgElement.setAttribute("height",h.height)),this.currentBBox.w!==h.width+2||this.currentBBox.h!==h.height+2||this.currentBBox.x!==h.x-1||this.currentBBox.y!==h.y-1){this.currentBBox.w=h.width+2,this.currentBBox.h=h.height+2,this.currentBBox.x=h.x-1,this.currentBBox.y=h.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,i,r,n=this.comp.threeDElements.length;for(e=0;e<n;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){i=t.perspectiveElem.style,r=t.container.style;var a=this.pe.v+"px",s="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=a,i.webkitPerspective=a,r.transformOrigin=s,r.mozTransformOrigin=s,r.webkitTransformOrigin=s,i.transform=o,i.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,i=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)i=this.hierarchy[e].finalTransform.mProp._mdf||i;if(i||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var n;n=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),s=[n[0]/a,n[1]/a,n[2]/a],o=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],o),c=Math.atan2(s[0],-s[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var h=!this._prevMat.equals(this.mat);if((h||this.pe._mdf)&&this.comp.threeDElements){var p,u,d;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(p=this.comp.threeDElements[e]).type){if(h){var f=this.mat.toCSS();(d=p.container.style).transform=f,d.webkitTransform=f}this.pe._mdf&&((u=p.perspectiveElem.style).perspective=this.pe.v+"px",u.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var i=e.getBaseElement();if(i){var r=this.layers[t];if(r.ddd&&this.supports3d)this.addTo3dContainer(i,t);else if(this.threeDElements)this.addTo3dContainer(i,t);else{for(var n,a,s=0;s<t;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s],n=(this.layers[s].ddd?this.getThreeDContainerByPos(s):a.getBaseElement())||n),s+=1;n?r.ddd&&this.supports3d||this.layerElement.insertBefore(i,n):r.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,i=this.threeDElements.length;t<i;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var i,r,n=createTag("div");styleDiv(n);var a=createTag("div");if(styleDiv(a),"3d"===t){(i=n.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var s="50% 50%";i.webkitTransformOrigin=s,i.mozTransformOrigin=s,i.transformOrigin=s;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=a.style).transform=o,r.webkitTransform=o}n.appendChild(a);var l={container:a,perspectiveElem:n,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,i=this.layers.length,r="";for(e=0;e<i;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==r&&(r="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==r&&(r="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(i=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var i=0,r=this.threeDElements.length;i<r;){if(t<=this.threeDElements[i].endPos){for(var n,a=this.threeDElements[i].startPos;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(n=this.elements[a].getBaseElement()),a+=1;n?this.threeDElements[i].container.insertBefore(e,n):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),i=this.animationItem.wrapper,r=t.style;r.width=e.w+"px",r.height=e.h+"px",this.resizerElem=t,styleDiv(t),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),i.appendChild(t),r.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var a=createNS("defs");n.appendChild(a),this.data=e,this.setupGlobalData(e,n),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,i,r,n=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,s=n/a;this.globalData.compSize.w/this.globalData.compSize.h>s?(e=n/this.globalData.compSize.w,t=n/this.globalData.compSize.w,i=0,r=(a-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(e=a/this.globalData.compSize.h,t=a/this.globalData.compSize.h,i=(n-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,r=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+i+","+r+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,i=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e<r;e+=1){var n=this.threeDElements[e].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(i,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,i=e.length,r=createTag("div");for(t=0;t<i;t+=1)if(e[t].xt){var n=this.createComp(e[t],r,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var i,r=0;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var i=0,r=e.layers.length;i<r;){if(e.layers[i].nm===t||e.layers[i].ind===t)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var i=this,r=256,n="random",a=t.pow(r,6),s=t.pow(2,52),o=2*s,l=255;function c(e){var t,i=e.length,n=this,a=0,s=n.i=n.j=0,o=n.S=[];for(i||(e=[i++]);a<r;)o[a]=a++;for(a=0;a<r;a++)o[a]=o[s=l&s+e[a%i]+(t=o[a])],o[s]=t;n.g=function(e){for(var t,i=0,a=n.i,s=n.j,o=n.S;e--;)t=o[a=l&a+1],i=i*r+o[l&(o[a]=o[s=l&s+t])+(o[s]=t)];return n.i=a,n.j=s,i}}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){var i,r=[],n=_typeof$2(e);if(t&&"object"==n)for(i in e)try{r.push(p(e[i],t-1))}catch(e){}return r.length?r:"string"==n?e:e+"\0"}function u(e,t){for(var i,r=e+"",n=0;n<r.length;)t[l&n]=l&(i^=19*t[l&n])+r.charCodeAt(n++);return d(t)}function d(e){return String.fromCharCode.apply(0,e)}t["seed"+n]=function(l,f,m){var g=[],v=u(p((f=!0===f?{entropy:!0}:f||{}).entropy?[l,d(e)]:null===l?function(){try{var t=new Uint8Array(r);return(i.crypto||i.msCrypto).getRandomValues(t),d(t)}catch(t){var n=i.navigator,a=n&&n.plugins;return[+new Date,i,a,i.screen,d(e)]}}():l,3),g),y=new c(g),b=function(){for(var e=y.g(6),t=a,i=0;e<s;)e=(e+i)*r,t*=r,i=y.g(1);for(;e>=o;)e/=2,t/=2,i>>>=1;return(e+i)/t};return b.int32=function(){return 0|y.g(4)},b.quick=function(){return y.g(4)/4294967296},b.double=b,u(d(y.S),e),(f.pass||m||function(e,i,r,a){return a&&(a.S&&h(a,y),e.state=function(){return h(y,{})}),r?(t[n]=e,i):e})(b,v,"global"in f?f.global:this==t,f.state)},u(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var i,r=e.length,n=[];for(i=0;i<r;i+=1)n[i]=-e[i];return n}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var i=_typeof$1(e),r=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(r,t)||"string"===i||"string"===r)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,a=e.length,s=t.length,o=[];n<a||n<s;)("number"==typeof e[n]||e[n]instanceof Number)&&("number"==typeof t[n]||t[n]instanceof Number)?o[n]=e[n]+t[n]:o[n]=void 0===t[n]?e[n]:e[n]||t[n],n+=1;return o}return 0}var add=sum;function sub(e,t){var i=_typeof$1(e),r=_typeof$1(t);if(isNumerable(i,e)&&isNumerable(r,t))return"string"===i&&(e=parseInt(e,10)),"string"===r&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var n=0,a=e.length,s=t.length,o=[];n<a||n<s;)("number"==typeof e[n]||e[n]instanceof Number)&&("number"==typeof t[n]||t[n]instanceof Number)?o[n]=e[n]-t[n]:o[n]=void 0===t[n]?e[n]:e[n]||t[n],n+=1;return o}return 0}function mul(e,t){var i,r,n,a=_typeof$1(e),s=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(s,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(n=e.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=e[r]*t;return i}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(n=t.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=e*t[r];return i}return 0}function div(e,t){var i,r,n,a=_typeof$1(e),s=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(s,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(n=e.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=e[r]/t;return i}if(isNumerable(a,e)&&$bm_isInstanceOfArray(t)){for(n=t.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=e/t[r];return i}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,i){if(t>i){var r=i;i=t,t=r}return Math.min(Math.max(e,t),i)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var i;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),n=0;for(i=0;i<r;i+=1)n+=Math.pow(t[i]-e[i],2);return Math.sqrt(n)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,i,r=e[0],n=e[1],a=e[2],s=Math.max(r,n,a),o=Math.min(r,n,a),l=(s+o)/2;if(s===o)t=0,i=0;else{var c=s-o;switch(i=l>.5?c/(2-s-o):c/(s+o),s){case r:t=(n-a)/c+(n<a?6:0);break;case n:t=(a-r)/c+2;break;case a:t=(r-n)/c+4}t/=6}return[t,i,l,e[3]]}function hue2rgb(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function hslToRgb(e){var t,i,r,n=e[0],a=e[1],s=e[2];if(0===a)t=s,r=s,i=s;else{var o=s<.5?s*(1+a):s+a-s*a,l=2*s-o;t=hue2rgb(l,o,n+1/3),i=hue2rgb(l,o,n),r=hue2rgb(l,o,n-1/3)}return[t,i,r,e[3]]}function linear(e,t,i,r,n){if(void 0!==r&&void 0!==n||(r=t,n=i,t=0,i=1),i<t){var a=i;i=t,t=a}if(e<=t)return r;if(e>=i)return n;var s,o=i===t?0:(e-t)/(i-t);if(!r.length)return r+(n-r)*o;var l=r.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=r[s]+(n[s]-r[s])*o;return c}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var i,r=t.length;e||(e=createTypedArray("float32",r));var n=createTypedArray("float32",r),a=BMMath.random();for(i=0;i<r;i+=1)n[i]=e[i]+a*(t[i]-e[i]);return n}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,i,r){var n,a=e.length,s=shapePool.newElement();s.setPathData(!!r,a);var o,l,c=[0,0];for(n=0;n<a;n+=1)o=t&&t[n]?t[n]:c,l=i&&i[n]?i[n]:c,s.setTripleAt(e[n][0],e[n][1],l[0]+e[n][0],l[1]+e[n][1],o[0]+e[n][0],o[1]+e[n][1],n,!0);return s}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var i,r,n=this.pv.length?this.pv.length:1,a=createTypedArray("float32",n),s=Math.floor(5*time);for(i=0,r=0;i<s;){for(r=0;r<n;r+=1)a[r]+=-t+2*t*BMMath.random();i+=1}var o=5*time,l=o-Math.floor(o),c=createTypedArray("float32",n);if(n>1){for(r=0;r<n;r+=1)c[r]=this.pv[r]+a[r]+(-t+2*t*BMMath.random())*l;return c}return this.pv+a[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var i=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],r=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,r,0]}function easeOut(e,t,i,r,n){return applyEase(easeOutBez,e,t,i,r,n)}function easeIn(e,t,i,r,n){return applyEase(easeInBez,e,t,i,r,n)}function ease(e,t,i,r,n){return applyEase(easeInOutBez,e,t,i,r,n)}function applyEase(e,t,i,r,n,a){void 0===n?(n=i,a=r):t=(t-i)/(r-i),t>1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(n)){var o,l=n.length,c=createTypedArray("float32",l);for(o=0;o<l;o+=1)c[o]=(a[o]-n[o])*s+n[o];return c}return(a-n)*s+n}function nearestKey(e){var t,i,r,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,r=data.k[0].t;else{for(t=0;t<n-1;t+=1){if(e===data.k[t].t){i=t+1,r=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,r=data.k[t+1].t):(i=t+1,r=data.k[t].t);break}}-1===i&&(i=t+1,r=data.k[t].t)}else i=0,r=0;var a={};return a.index=i,a.time=r/elem.comp.globalData.frameRate,a}function key(e){var t,i,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=n.length,i=0;i<r;i+=1)t[i]=n[i],t.value[i]=n[i];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,i=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=i.length;for(e=0;e<t;e+=1)i[e].release();i.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===i.indexOf(e)&&i.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var i,r=createSizedArray(t.viewData.length),n=t.viewData.length;for(i=0;i<n;i+=1)r[i]=new e(t.viewData[i],t.masksProperties[i]);return function(e){for(i=0;i<n;){if(t.masksProperties[i].nm===e)return r[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function i(e,t,i){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(r){if(!e.numKeys)return 0;var n="";n="s"in t.keyframes[r-1]?t.keyframes[r-1].s:"e"in t.keyframes[r-2]?t.keyframes[r-2].e:t.keyframes[r-2].s;var a="unidimensional"===i?new Number(n):Object.assign({},n);return a.time=t.keyframes[r-1].t/t.elem.comp.globalData.frameRate,a.value="unidimensional"===i?n[0]:n,a},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function r(){return e}return function(n){return n?"unidimensional"===n.propType?function(t){t&&"pv"in t||(t=e);var r=1/t.mult,n=t.pv*r,a=new Number(n);return a.value=n,i(a,t,"unidimensional"),function(){return t.k&&t.getValue(),n=t.v*r,a.value!==n&&((a=new Number(n)).value=n,a[0]=n,i(a,t,"unidimensional")),a}}(n):function(e){e&&"pv"in e||(e=t);var r=1/e.mult,n=e.data&&e.data.l||e.pv.length,a=createTypedArray("float32",n),s=createTypedArray("float32",n);return a.value=s,i(a,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<n;t+=1)s[t]=e.v[t]*r,a[t]=s[t];return a}}(n):r}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var i,r,n,a;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?a=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),r=ExpressionPropertyInterface(e.py),e.pz&&(n=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[i(),r(),n?n():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var i=this.getMatrix(t);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,e)}function i(e,t){var i=this.getMatrix(t);return this.applyPoint(i,e)}function r(e,t){var i=this.getMatrix(t);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,e)}function n(e,t){var i=this.getMatrix(t);return this.invertPoint(i,e)}function a(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function s(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function o(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(c){var h;function p(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return h;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=e,p.invertPoint=s,p.applyPoint=a,p.toWorld=i,p.toWorldVec=t,p.fromWorld=n,p.fromWorldVec=r,p.toComp=i,p.fromComp=o,p.sampleImage=l,p.sourceRectAtTime=c.sourceRectAtTime.bind(c),p._elem=c;var u=getDescriptor(h=TransformExpressionInterface(c.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(h,"rotation"),scale:getDescriptor(h,"scale"),position:getDescriptor(h,"position"),opacity:getDescriptor(h,"opacity"),anchorPoint:u,anchor_point:u,transform:{get:function(){return h}},active:{get:function(){return c.isInRange}}}),p.startTime=c.data.st,p.index=c.data.ind,p.source=c.data.refId,p.height=0===c.data.ty?c.data.h:100,p.width=0===c.data.ty?c.data.w:100,p.inPoint=c.data.ip/c.comp.globalData.frameRate,p.outPoint=c.data.op/c.comp.globalData.frameRate,p._name=c.data.nm,p.registerMaskInterface=function(e){p.mask=new MaskManagerInterface(e,c)},p.registerEffectsInterface=function(e){p.effect=e},p}}(),propertyGroupFactory=function(e,t){return function(i){return(i=void 0===i?1:i)<=0?e:t(i-1)}},PropertyInterface=function(e,t){var i={_name:e};return function(e){return(e=void 0===e?1:e)<=0?i:t(e-1)}},EffectsExpressionInterface=function(){var e={createEffectsInterface:function(e,i){if(e.effectsManager){var r,n=[],a=e.data.ef,s=e.effectsManager.effectElements.length;for(r=0;r<s;r+=1)n.push(t(a[r],e.effectsManager.effectElements[r],i,e));var o=e.data.ef||[],l=function(e){for(r=0,s=o.length;r<s;){if(e===o[r].nm||e===o[r].mn||e===o[r].ix)return n[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}};function t(e,r,n,a){function s(t){for(var i=e.ef,r=0,n=i.length;r<n;){if(t===i[r].nm||t===i[r].mn||t===i[r].ix)return 5===i[r].ty?c[r]:c[r]();r+=1}throw new Error}var o,l=propertyGroupFactory(s,n),c=[],h=e.ef.length;for(o=0;o<h;o+=1)5===e.ef[o].ty?c.push(t(e.ef[o],r.effectElements[o],r.effectElements[o].propertyGroup,a)):c.push(i(r.effectElements[o],e.ef[o].ty,a,l));return"ADBE Color Control"===e.mn&&Object.defineProperty(s,"color",{get:function(){return c[0]()}}),Object.defineProperties(s,{numProperties:{get:function(){return e.np}},_name:{value:e.nm},propertyGroup:{value:l}}),s.enabled=0!==e.en,s.active=s.enabled,s}function i(e,t,i,r){var n=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===t?i.comp.compInterface(e.p.v):n()}}return e}(),ShapePathInterface=function(e,t,i){var r=t.sh;function n(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?n.path:null}var a=propertyGroupFactory(n,i);return r.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(n,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:i}}),n},ShapeExpressionInterface=function(){function e(e,o,d){var f,m=[],g=e?e.length:0;for(f=0;f<g;f+=1)"gr"===e[f].ty?m.push(t(e[f],o[f],d)):"fl"===e[f].ty?m.push(i(e[f],o[f],d)):"st"===e[f].ty?m.push(a(e[f],o[f],d)):"tm"===e[f].ty?m.push(s(e[f],o[f],d)):"tr"===e[f].ty||("el"===e[f].ty?m.push(l(e[f],o[f],d)):"sr"===e[f].ty?m.push(c(e[f],o[f],d)):"sh"===e[f].ty?m.push(ShapePathInterface(e[f],o[f],d)):"rc"===e[f].ty?m.push(h(e[f],o[f],d)):"rd"===e[f].ty?m.push(p(e[f],o[f],d)):"rp"===e[f].ty?m.push(u(e[f],o[f],d)):"gf"===e[f].ty?m.push(r(e[f],o[f],d)):m.push(n(e[f],o[f])));return m}function t(t,i,r){var n=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,r);var a=function(t,i,r){var n,a=function(e){for(var t=0,i=n.length;t<i;){if(n[t]._name===e||n[t].mn===e||n[t].propertyIndex===e||n[t].ix===e||n[t].ind===e)return n[t];t+=1}return"number"==typeof e?n[e-1]:null};a.propertyGroup=propertyGroupFactory(a,r),n=e(t.it,i.it,a.propertyGroup),a.numProperties=n.length;var s=o(t.it[t.it.length-1],i.it[i.it.length-1],a.propertyGroup);return a.transform=s,a.propertyIndex=t.cix,a._name=t.nm,a}(t,i,n.propertyGroup),s=o(t.it[t.it.length-1],i.it[i.it.length-1],n.propertyGroup);return n.content=a,n.transform=s,Object.defineProperty(n,"_name",{get:function(){return t.nm}}),n.numProperties=t.np,n.propertyIndex=t.ix,n.nm=t.nm,n.mn=t.mn,n}function i(e,t,i){function r(e){return"Color"===e||"color"===e?r.color:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),r}function r(e,t,i){function r(e){return"Start Point"===e||"start point"===e?r.startPoint:"End Point"===e||"end point"===e?r.endPoint:"Opacity"===e||"opacity"===e?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",i)),t.e.setGroupProperty(PropertyInterface("End Point",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),r}function n(){return function(){return null}}function a(e,t,i){var r,n=propertyGroupFactory(c,i),a=propertyGroupFactory(l,n);function s(i){Object.defineProperty(l,e.d[i].nm,{get:ExpressionPropertyInterface(t.d.dataProps[i].p)})}var o=e.d?e.d.length:0,l={};for(r=0;r<o;r+=1)s(r),t.d.dataProps[r].p.setGroupProperty(a);function c(e){return"Color"===e||"color"===e?c.color:"Opacity"===e||"opacity"===e?c.opacity:"Stroke Width"===e||"stroke width"===e?c.strokeWidth:null}return Object.defineProperties(c,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",n)),t.o.setGroupProperty(PropertyInterface("Opacity",n)),t.w.setGroupProperty(PropertyInterface("Stroke Width",n)),c}function s(e,t,i){function r(t){return t===e.e.ix||"End"===t||"end"===t?r.end:t===e.s.ix?r.start:t===e.o.ix?r.offset:null}var n=propertyGroupFactory(r,i);return r.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",n)),t.e.setGroupProperty(PropertyInterface("End",n)),t.o.setGroupProperty(PropertyInterface("Offset",n)),r.propertyIndex=e.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),r.mn=e.mn,r}function o(e,t,i){function r(t){return e.a.ix===t||"Anchor Point"===t?r.anchorPoint:e.o.ix===t||"Opacity"===t?r.opacity:e.p.ix===t||"Position"===t?r.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?r.rotation:e.s.ix===t||"Scale"===t?r.scale:e.sk&&e.sk.ix===t||"Skew"===t?r.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?r.skewAxis:null}var n=propertyGroupFactory(r,i);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),r.ty="tr",r.mn=e.mn,r.propertyGroup=i,r}function l(e,t,i){function r(t){return e.p.ix===t?r.position:e.s.ix===t?r.size:null}var n=propertyGroupFactory(r,i);r.propertyIndex=e.ix;var a="tm"===t.sh.ty?t.sh.prop:t.sh;return a.s.setGroupProperty(PropertyInterface("Size",n)),a.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:e.nm}}),r.mn=e.mn,r}function c(e,t,i){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.rotation:e.pt.ix===t?r.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?r.outerRadius:e.os.ix===t?r.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?r.innerRoundness:null:r.innerRadius}var n=propertyGroupFactory(r,i),a="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",n)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),a.pt.setGroupProperty(PropertyInterface("Points",n)),a.p.setGroupProperty(PropertyInterface("Position",n)),a.r.setGroupProperty(PropertyInterface("Rotation",n)),e.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:e.nm}}),r.mn=e.mn,r}function h(e,t,i){function r(t){return e.p.ix===t?r.position:e.r.ix===t?r.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?r.size:null}var n=propertyGroupFactory(r,i),a="tm"===t.sh.ty?t.sh.prop:t.sh;return r.propertyIndex=e.ix,a.p.setGroupProperty(PropertyInterface("Position",n)),a.s.setGroupProperty(PropertyInterface("Size",n)),a.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:e.nm}}),r.mn=e.mn,r}function p(e,t,i){function r(t){return e.r.ix===t||"Round Corners 1"===t?r.radius:null}var n=propertyGroupFactory(r,i),a=t;return r.propertyIndex=e.ix,a.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:e.nm}}),r.mn=e.mn,r}function u(e,t,i){function r(t){return e.c.ix===t||"Copies"===t?r.copies:e.o.ix===t||"Offset"===t?r.offset:null}var n=propertyGroupFactory(r,i),a=t;return r.propertyIndex=e.ix,a.c.setGroupProperty(PropertyInterface("Copies",n)),a.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:e.nm}}),r.mn=e.mn,r}return function(t,i,r){var n;function a(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?r:n[e-1];for(var t=0,i=n.length;t<i;){if(n[t]._name===e)return n[t];t+=1}return null}return a.propertyGroup=propertyGroupFactory(a,function(){return r}),n=e(t,i,a.propertyGroup),a.numProperties=n.length,a._name="Contents",a}}(),TextExpressionInterface=function(e){var t;function i(e){return"ADBE Text Document"===e?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var i=e.textProperty.currentData.t;return t&&i===t.value||((t=new String(i)).value=i||new String(i),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),i};function _typeof(e){return _typeof="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},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",i=e.getFootageData();function r(e){if(i[e])return t=e,"object"===_typeof(i=i[e])?r:i;var n=e.indexOf(t);if(-1!==n){var a=parseInt(e.substr(n+t.length),10);return"object"===_typeof(i=i[a])?r:i}return""}return function(){return t="",i=e.getFootageData(),r}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,i){t.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(e,t,i).bind(i)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),i=this.getValueAtTime(e+-.01),r=0;if(t.length){var n;for(n=0;n<t.length;n+=1)r+=Math.pow(i[n]-t[n],2);r=100*Math.sqrt(r)}else r=0;return r},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,i,r=-.001,n=this.getValueAtTime(e),a=this.getValueAtTime(e+r);if(n.length)for(t=createTypedArray("float32",n.length),i=0;i<n.length;i+=1)t[i]=(a[i]-n[i])/r;else t=(a-n)/r;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,i){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var r,n,a,s,o,l=this.comp.renderedFrame,c=this.keyframes,h=c[c.length-1].t;if(l<=h)return this.pv;if(i?n=h-(r=t?Math.abs(h-this.elem.comp.globalData.frameRate*t):Math.max(0,h-this.elem.data.ip)):((!t||t>c.length-1)&&(t=c.length-1),r=h-(n=c[c.length-1-t].t)),"pingpong"===e){if(Math.floor((l-n)/r)%2!=0)return this.getValueAtTime((r-(l-n)%r+n)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime(h/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0),f=Math.floor((l-n)/r);if(this.pv.length){for(s=(o=new Array(p.length)).length,a=0;a<s;a+=1)o[a]=(u[a]-p[a])*f+d[a];return o}return(u-p)*f+d}if("continue"===e){var m=this.getValueAtTime(h/this.comp.globalData.frameRate,0),g=this.getValueAtTime((h-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(m.length)).length,a=0;a<s;a+=1)o[a]=m[a]+(m[a]-g[a])*((l-h)/this.comp.globalData.frameRate)/5e-4;return o}return m+(l-h)/.001*(m-g)}}return this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0)}function t(e,t,i){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var r,n,a,s,o,l=this.comp.renderedFrame,c=this.keyframes,h=c[0].t;if(l>=h)return this.pv;if(i?n=h+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-h)):((!t||t>c.length-1)&&(t=c.length-1),r=(n=c[t].t)-h),"pingpong"===e){if(Math.floor((h-l)/r)%2==0)return this.getValueAtTime(((h-l)%r+h)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(h/this.comp.globalData.frameRate,0),u=this.getValueAtTime(n/this.comp.globalData.frameRate,0),d=this.getValueAtTime((r-(h-l)%r+h)/this.comp.globalData.frameRate,0),f=Math.floor((h-l)/r)+1;if(this.pv.length){for(s=(o=new Array(p.length)).length,a=0;a<s;a+=1)o[a]=d[a]-(u[a]-p[a])*f;return o}return d-(u-p)*f}if("continue"===e){var m=this.getValueAtTime(h/this.comp.globalData.frameRate,0),g=this.getValueAtTime((h+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(m.length)).length,a=0;a<s;a+=1)o[a]=m[a]+(m[a]-g[a])*(h-l)/.001;return o}return m+(m-g)*(h-l)/.001}}return this.getValueAtTime((r-((h-l)%r+h))/this.comp.globalData.frameRate,0)}function i(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var i,r,n=this.comp.renderedFrame/this.comp.globalData.frameRate,a=n-e,s=t>1?(n+e-a)/(t-1):1,o=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;o<t;){if(r=this.getValueAtTime(a+o*s),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=r[l];else i+=r;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=t;else i/=t;return i}function r(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(e);t.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(e);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(e),a=this.sa.getValueAtTime(e);t.skewFromAxis(-n*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var s=this.r.getValueAtTime(e);t.rotate(-s*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),c=this.rx.getValueAtTime(e),h=this.or.getValueAtTime(e);t.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(c*this.rx.mult).rotateZ(-h[2]*this.or.mult).rotateY(h[1]*this.or.mult).rotateX(h[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(e),u=this.py.getValueAtTime(e);if(this.data.p.z){var d=this.pz.getValueAtTime(e);t.translate(p*this.px.mult,u*this.py.mult,-d*this.pz.mult)}else t.translate(p*this.px.mult,u*this.py.mult,0)}else{var f=this.p.getValueAtTime(e);t.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[2]*this.p.mult)}return t}function n(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,i){var s=a(e,t,i);return s.dynamicProperties.length?s.getValueAtTime=r.bind(s):s.getValueAtTime=n.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(r,n,a,o,l){var c=s(r,n,a,o,l);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=e,c.loopIn=t,c.smooth=i,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===n.a?n.k.length:0,c.propertyIndex=n.ix;var h=0;return 0!==a&&(h=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:h},expressionHelpers.searchExpressions(r,n,c),c.k&&l.addDynamicProperty(c),c};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function c(){}c.prototype={vertices:function(e,t){this.k&&this.getValue();var i,r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0));var n=r._length,a=r[e],s=r.v,o=createSizedArray(n);for(i=0;i<n;i+=1)o[i]="i"===e||"o"===e?[a[i][0]-s[i][0],a[i][1]-s[i][1]]:[a[i][0],a[i][1]];return o},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var i=this.v;void 0!==t&&(i=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var r,n=this._segmentsLength,a=n.lengths,s=n.totalLength*e,o=0,l=a.length,c=0;o<l;){if(c+a[o].addedLength>s){var h=o,p=i.c&&o===l-1?0:o+1,u=(s-c)/a[o].addedLength;r=bez.getPointInSegment(i.v[h],i.v[p],i.o[h],i.i[p],u,a[o]);break}c+=a[o].addedLength,o+=1}return r||(r=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),r},vectorOnPath:function(e,t,i){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),n=this.pointOnPath(e+.001,t),a=n[0]-r[0],s=n[1]-r[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));return 0===o?[0,0]:"tangent"===i?[a/o,s/o]:[-s/o,a/o]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([c],o),extendPrototype([c],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var h=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,i,r,n){var a=h(e,t,i,r,n);return a.propertyIndex=t.ix,a.lock=!1,3===i?expressionHelpers.searchExpressions(e,t.pt,a):4===i&&expressionHelpers.searchExpressions(e,t.ks,a),a.k&&e.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var i=this.calculateExpression(t);if(e.t!==i){var r={};return this.copyData(r,e),r.t=i.toString(),r.__complete=!1,r}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var i,r,n=createNS("feMerge");for(n.setAttribute("result",e),r=0;r<t.length;r+=1)(i=createNS("feMergeNode")).setAttribute("in",t[r]),n.appendChild(i),n.appendChild(i);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,i,r,n){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",r+"_tint_1"),e.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",r+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var s=this.createMergeNode(r,[n,r+"_tint_1",r+"_tint_2"]);e.appendChild(s)}function SVGFillFilter(e,t,i,r){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",r),e.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(e,t,i){this.initialized=!1,this.filterManager=t,this.elem=i,this.paths=[]}function SVGTritoneFilter(e,t,i,r){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(n);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),this.matrixFilter=a;var s=createNS("feFuncR");s.setAttribute("type","table"),a.appendChild(s),this.feFuncR=s;var o=createNS("feFuncG");o.setAttribute("type","table"),a.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),a.appendChild(l),this.feFuncB=l,e.appendChild(a)}function SVGProLevelsFilter(e,t,i,r){this.filterManager=t;var n=this.filterManager.effectElements,a=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",r),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(e,t,i,r,n){var a=t.container.globalData.renderConfig.filterSize,s=t.data.fs||a;e.setAttribute("x",s.x||a.x),e.setAttribute("y",s.y||a.y),e.setAttribute("width",s.width||a.width),e.setAttribute("height",s.height||a.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",r+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=c,e.appendChild(c);var h=createNS("feComposite");h.setAttribute("in",r+"_drop_shadow_3"),h.setAttribute("in2",r+"_drop_shadow_2"),h.setAttribute("operator","in"),h.setAttribute("result",r+"_drop_shadow_4"),e.appendChild(h);var p=this.createMergeNode(r,[r+"_drop_shadow_4",n]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",i[0]-t[0]+" 0 0 0 "+t[0]+" "+(i[1]-t[1])+" 0 0 0 "+t[1]+" "+(i[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,i,r,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=1+(i=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);i<r;i+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:i});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),s=createElementID();a.setAttribute("id",s),a.setAttribute("mask-type","alpha"),a.appendChild(t),this.elem.globalData.defs.appendChild(a);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+s+")");n[0];)o.appendChild(n[0]);this.elem.layerElement.appendChild(o),this.masker=a,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var i,r,n=this.paths.length;for(t=0;t<n;t+=1)if(-1!==this.paths[t].m&&(i=this.elem.maskManager.viewData[this.paths[t].m],r=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&r.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var s=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();a="0 0 0 "+l*s+" ";var c,h=l*(o-s),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,u=Math.floor(h/p);for(c=0;c<u;c+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*l+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var d=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*d[0])+","+bmFloor(255*d[1])+","+bmFloor(255*d[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,n=r[0]+" "+i[0]+" "+t[0],a=r[1]+" "+i[1]+" "+t[1],s=r[2]+" "+i[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",s)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var i=createNS(e);return i.setAttribute("type","table"),t.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,t,i,r,n){for(var a,s,o=0,l=Math.min(e,t),c=Math.max(e,t),h=Array.call(null,{length:256}),p=0,u=n-r,d=t-e;o<=256;)s=(a=o/256)<=l?d<0?n:r:a>=c?d<0?r:n:r+u*Math.pow((a-e)/d,1/i),h[p]=s,p+=1,o+=256/255;return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(t=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(t=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(t=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(t=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(t=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=i*Math.cos(r),a=i*Math.sin(r);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,i){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(e,t,i,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var n=createNS("feGaussianBlur");n.setAttribute("result",r),e.appendChild(n),this.feGaussianBlur=n}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,i=_svgMatteSymbols.length;t<i;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var i=e.layerElement.parentNode;if(i){for(var r,n=i.children,a=0,s=n.length;a<s&&n[a]!==e.layerElement;)a+=1;a<=s-2&&(r=n[a+1]);var o=createNS("use");o.setAttribute("href","#"+t),r?i.insertBefore(o,r):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var i=createElementID(),r=createNS("mask");r.setAttribute("id",t.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var n=e.globalData.defs;n.appendChild(r);var a=createNS("symbol");a.setAttribute("id",i),this.replaceInParent(t,i),a.appendChild(t.layerElement),n.appendChild(a);var s=createNS("use");s.setAttribute("href","#"+i),r.appendChild(s),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,i=0,r=t.length;i<r;)t[i]&&t[i].data.ind===e&&this.setElementAsMask(this.elem,t[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=3==i?0:t,n=2==i?0:t;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+n);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,i=t[0].p.v,r=t[1].p.v,n=1===t[2].p.v,a=t[3].p.v,s=n?a:t[4].p.v,o=t[5].p.v,l=t[6].p.v,c=t[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*s,.01*a,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())}(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie(),lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,i){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function _iterableToArrayLimit(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var r,n,a,s,o=[],l=!0,c=!1;try{if(a=(i=i.call(e)).next,0===t);else for(;!(l=(r=a.call(i)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,n=e}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(c)throw n}}return o}}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach(function(t){_defineProperty(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function _objectWithoutProperties(e,t){if(null==e)return{};var i,r,n=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)i=a[r],t.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;i[r]=e[r]}return i}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,t):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function(e,t){var i=e.animationData,r=e.loop,n=e.autoplay,a=e.initialSegment,s=e.onComplete,o=e.onLoopComplete,l=e.onEnterFrame,c=e.onSegmentStart,h=e.onConfigReady,p=e.onDataReady,u=e.onDataFailed,d=e.onLoadedImages,f=e.onDOMLoaded,m=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var g=_objectWithoutProperties(e,_excluded$1),v=_slicedToArray(React.useState(!1),2),y=v[0],b=v[1],x=React.useRef(),_=React.useRef(null);return React.useEffect(function(){var t=function(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_.current){null===(t=x.current)||void 0===t||t.destroy();var r=_objectSpread2(_objectSpread2(_objectSpread2({},e),i),{},{container:_.current});return x.current=lottie.loadAnimation(r),b(!!x.current),function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0}}}();return function(){return null==t?void 0:t()}},[i,r]),React.useEffect(function(){x.current&&(x.current.autoplay=!!n)},[n]),React.useEffect(function(){x.current&&(a?Array.isArray(a)&&a.length&&((x.current.currentRawFrame<a[0]||x.current.currentRawFrame>a[1])&&(x.current.currentRawFrame=a[0]),x.current.setSegment(a[0],a[1])):x.current.resetSegments(!0))},[a]),React.useEffect(function(){var e=[{name:"complete",handler:s},{name:"loopComplete",handler:o},{name:"enterFrame",handler:l},{name:"segmentStart",handler:c},{name:"config_ready",handler:h},{name:"data_ready",handler:p},{name:"data_failed",handler:u},{name:"loaded_images",handler:d},{name:"DOMLoaded",handler:f},{name:"destroy",handler:m}].filter(function(e){return null!=e.handler});if(e.length){var t=e.map(function(e){var t;return null===(t=x.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=x.current)||void 0===t||t.removeEventListener(e.name,e.handler)}});return function(){t.forEach(function(e){return e()})}}},[s,o,l,c,h,p,u,d,f,m]),{View:React.createElement("div",_objectSpread2({style:t,ref:_},g)),play:function(){var e;null===(e=x.current)||void 0===e||e.play()},stop:function(){var e;null===(e=x.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=x.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=x.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var i;null===(i=x.current)||void 0===i||i.goToAndStop(e,t)},goToAndPlay:function(e,t){var i;null===(i=x.current)||void 0===i||i.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=x.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var i;null===(i=x.current)||void 0===i||i.playSegments(e,t)},setSubframe:function(e){var t;null===(t=x.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=x.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0},animationContainerRef:_,animationLoaded:y,animationItem:x.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),i=t.top,r=t.height;return(window.innerHeight-i)/(window.innerHeight+r)}function getContainerCursorPosition(e,t,i){var r=e.getBoundingClientRect(),n=r.top;return{x:(t-r.left)/r.width,y:(i-n)/r.height}}var useInitInteractivity=function(e){var t=e.wrapperRef,i=e.animationItem,r=e.mode,n=e.actions;React.useEffect(function(){var e=t.current;if(e&&i&&n.length){i.stop();var a,s,o,l,c;switch(r){case"scroll":return l=null,c=function(){var t=getContainerVisibility(e),r=n.find(function(e){var i=e.visibility;return i&&t>=i[0]&&t<=i[1]});if(r){if("seek"===r.type&&r.visibility&&2===r.frames.length){var a=r.frames[0]+Math.ceil((t-r.visibility[0])/(r.visibility[1]-r.visibility[0])*r.frames[1]);
|
|
55
|
+
//! goToAndStop must be relative to the start of the current segment
|
|
56
|
+
i.goToAndStop(a-i.firstFrame-1,!0)}"loop"===r.type&&(null===l||l!==r.frames||i.isPaused)&&(i.playSegments(r.frames,!0),l=r.frames),"play"===r.type&&i.isPaused&&(i.resetSegments(!0),i.play()),"stop"===r.type&&i.goToAndStop(r.frames[0]-i.firstFrame-1,!0)}},document.addEventListener("scroll",c),function(){document.removeEventListener("scroll",c)};case"cursor":return a=function(t,r){var a=t,s=r;if(-1!==a&&-1!==s){var o=getContainerCursorPosition(e,a,s);a=o.x,s=o.y}var l=n.find(function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?a>=t.x[0]&&a<=t.x[1]&&s>=t.y[0]&&s<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&a===t.x&&s===t.y});if(l){if("seek"===l.type&&l.position&&Array.isArray(l.position.x)&&Array.isArray(l.position.y)&&2===l.frames.length){var c=(a-l.position.x[0])/(l.position.x[1]-l.position.x[0]),h=(s-l.position.y[0])/(l.position.y[1]-l.position.y[0]);i.playSegments(l.frames,!0),i.goToAndStop(Math.ceil((c+h)/2*(l.frames[1]-l.frames[0])),!0)}"loop"===l.type&&i.playSegments(l.frames,!0),"play"===l.type&&(i.isPaused&&i.resetSegments(!1),i.playSegments(l.frames)),"stop"===l.type&&i.goToAndStop(l.frames[0],!0)}},s=function(e){a(e.clientX,e.clientY)},o=function(){a(-1,-1)},e.addEventListener("mousemove",s),e.addEventListener("mouseout",o),function(){e.removeEventListener("mousemove",s),e.removeEventListener("mouseout",o)}}}},[r,i])},useLottieInteractivity=function(e){var t=e.actions,i=e.mode,r=e.lottieObj,n=r.animationItem,a=r.View,s=r.animationContainerRef;return useInitInteractivity({actions:t,animationItem:n,mode:i,wrapperRef:s}),a},_excluded=["style","interactivity"],Lottie=function(e){var t,i,r,n=e.style,a=e.interactivity,s=_objectWithoutProperties(e,_excluded),o=useLottie(s,n),l=o.View,c=o.play,h=o.stop,p=o.pause,u=o.setSpeed,d=o.goToAndStop,f=o.goToAndPlay,m=o.setDirection,g=o.playSegments,v=o.setSubframe,y=o.getDuration,b=o.destroy,x=o.animationContainerRef,_=o.animationLoaded,S=o.animationItem;return React.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:c,stop:h,pause:p,setSpeed:u,goToAndPlay:f,goToAndStop:d,setDirection:m,playSegments:g,setSubframe:v,getDuration:y,destroy:b,animationContainerRef:x,animationLoaded:_,animationItem:S})},[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),useLottieInteractivity({lottieObj:{View:l,play:c,stop:h,pause:p,setSpeed:u,goToAndStop:d,goToAndPlay:f,setDirection:m,playSegments:g,setSubframe:v,getDuration:y,destroy:b,animationContainerRef:x,animationLoaded:_,animationItem:S},actions:null!==(i=null==a?void 0:a.actions)&&void 0!==i?i:[],mode:null!==(r=null==a?void 0:a.mode)&&void 0!==r?r:"scroll"})};function BeeErrorComponent({headline:e,content:t,btnText:i,animationData:r,onClick:n}){return require$$0.jsxs("div",{className:"bee-error-component flex justify-content-center",children:[require$$0.jsx("div",{className:"bee-error-component__media",children:r?require$$0.jsx(Lottie,{animationData:r,loop:!0,autoplay:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}}):require$$0.jsx("div",{className:"bee-error-component__media-placeholder","aria-hidden":!0,children:require$$0.jsx("i",{className:"pi pi-exclamation-triangle"})})}),require$$0.jsxs("div",{className:"bee-error-component__container",children:[require$$0.jsx("div",{children:e}),require$$0.jsx("div",{children:t}),require$$0.jsx("div",{className:"flex justify-content-end mt-4",children:require$$0.jsx(BeeMixButton,{label:i,iconClass:"pi pi-arrow-left",iconPos:"left",type:"secondary",onClick:function(e){null==n||n()}})})]})]})}function BeeImageCard({id:e,className:t,preheadline:i,headline:r,subheadline:n,showIcon:a,iconClassName:s,image:o,content:l,activateHover:c=!1,disabled:h,readOnly:p,banner:u,onClick:d,onClickIcon:f}){const m=null!=e?e:libExports.useId(1,"bee-image-card-")[0],g=h?" bee-image-card-disabled ":"",v="bee-image-prev bee-image-card "+(c?"bee-image-prev-hover":"bee-image-prev-noHover")+(p?" bee-image-card-readOnly ":"")+(t?" "+t:"");return require$$0.jsxs(card.Card,{id:m,className:v,children:[u&&require$$0.jsx("div",{className:"bee-image-card__banner",children:u}),a?require$$0.jsx("div",{className:"bee-image-card__info "+(h?"bee-image-card__info--disabled":""),children:require$$0.jsx(BeeIconButton,{iconClass:s||"",rounded:!0,disabled:!1,isLoading:!1,type:"secondary",onClick:e=>function(e){f&&f(e)}(e)})}):null,require$$0.jsxs("div",{className:g,onClick:e=>function(e){d&&!p&&d(e)}(e),children:[require$$0.jsx("div",{className:"bee-image-card__headline",children:require$$0.jsxs(require$$0.Fragment,{children:[i?require$$0.jsx("div",{children:i}):require$$0.jsx("div",{}),require$$0.jsx("h2",{children:r}),n?require$$0.jsx("div",{children:n}):require$$0.jsx("div",{})]})}),require$$0.jsxs("div",{className:"bee-image-card__content",children:[require$$0.jsx("div",{className:"bee-image-card__img",children:o&&o.url?require$$0.jsx(BeeImage,{url:o.url,alt:o.alt,title:o.title,copyright:o.copyright,secured:!!o.secured&&o.secured,showPlaceholder:!!o.showPlaceholder&&o.showPlaceholder},o.key):(null==o?void 0:o.id)?require$$0.jsx(BeeImage,{url:"",alt:"",title:"",copyright:"",secured:!1,showPlaceholder:!0},""):require$$0.jsx(BeeImage,{url:"",alt:"",title:"",copyright:"",secured:!1,showPlaceholder:!1},"")}),l?require$$0.jsx("div",{className:"bee-image-card__content-text",children:l}):null]})]})]})}function BeeDocumentTable({id:e,className:t,data:i,type:r="light",uploadLabel:n,readOnly:a,disabled:s,showDescription:o,showDownload:l,showDelete:c,enableBulkDownload:h,isBulkDownloadLoading:p,onDownloadAll:u,onDownload:d,onDelete:f,onUpload:m}){const[g,v]=React.useState(window.innerWidth),[y,b]=React.useState([]),x=null!=e?e:libExports.useId(1,"bee-doc-table-")[0];React.useEffect(()=>{const e=()=>v(window.innerWidth);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),React.useEffect(()=>{if(!(null==i?void 0:i.length))return void b([]);const e=new Set(i.map(e=>e.id));b(t=>{const i=t.filter(t=>e.has(t));return i.length===t.length&&t.every((e,t)=>e===i[t])?t:i})},[i]);const _="bee-doc-table "+("dark"===r?"bee-doc-table-dark":"bee-doc-table-light")+(t?" "+t:""),S="bee-doc-table-col-action"+function(){const e=a?1:(l?1:0)+(c?1:0);return 1===e?" bee-doc-table-col-action-oneBtn":2===e?" bee-doc-table-col-action-twoBtn":""}(),w="bee-doc-table-col-title",C="bee-doc-table-col-name",P="bee-doc-table-col-date",E="bee-doc-table-col-size",k="bee-doc-table-col-type",$="Dateiname",A="Stand",T="Größe",D="Beschreibung",M="Dateityp",I="pi pi-download",F=Boolean(h&&l);React.useEffect(()=>{F||b([])},[F]);const j=Boolean((null==i?void 0:i.length)&&y.length===i.length),R=F?require$$0.jsx("div",{onClick:e=>e.stopPropagation(),role:"presentation",children:require$$0.jsx(BeeCheckbox,{label:"",value:j,disabled:Boolean(s),type:"primary",formstate:"none",stateTrue:"",stateFalse:"",required:!1,readOnly:!1,onChange:e=>{const t=(e=>{var t,i;return null!==(i=null!==(t=null==e?void 0:e.checked)&&void 0!==t?t:null==e?void 0:e.value)&&void 0!==i&&i})(e);t&&(null==i?void 0:i.length)?b(i.map(e=>e.id)):b([])}})}):require$$0.jsx("span",{className:"bee-doc-table-selectAll-empty","aria-hidden":"true"});const B=(null!=i?i:[]).map(e=>Object.assign(Object.assign({},e),{_selected:y.includes(e.id)}));return require$$0.jsxs("div",{id:x,className:_,children:[require$$0.jsxs(datatable.DataTable,{value:B,dataKey:"id",className:"p-datatable-sm",emptyMessage:"Keine Dokumente vorhanden.",breakpoint:"450px",children:[F?require$$0.jsx(column.Column,{className:"bee-doc-table-selectAll-col",headerClassName:"bee-doc-table-selectAll-col",body:function(e){var t;if(!e)return null;if(!F)return require$$0.jsx("span",{className:"bee-doc-table-selectAll-empty","aria-hidden":"true"});const i=null!==(t=e._selected)&&void 0!==t?t:y.includes(e.id);return require$$0.jsx(BeeCheckbox,{label:"",value:i,type:"primary",disabled:Boolean(s),formstate:"none",stateTrue:"",stateFalse:"",required:!1,readOnly:!1,onChange:t=>{t.checked?b(t=>[...t,e.id]):b(t=>t.filter(t=>t!==e.id))}})},header:R},"bee-doc-table-col-selection"):null,o?require$$0.jsx(column.Column,{className:w,headerClassName:w,body:function(e){return e?require$$0.jsx("p",{"data-headername":D,children:e.descr}):null},header:D},"bee-doc-table-col-description"):null,require$$0.jsx(column.Column,{className:C,headerClassName:C,body:function(e){return e?require$$0.jsx("p",{"data-headername":$,children:e.filename}):null},header:$},"bee-doc-table-col-filename"),require$$0.jsx(column.Column,{className:P,headerClassName:P,body:function(e){if(!e)return null;const t=e.timestamp;return require$$0.jsx("p",{"data-headername":A,children:t?t.toLocaleDateString("de-DE"):" "})},header:A},"bee-doc-table-col-date"),g>768?require$$0.jsx(column.Column,{className:E,headerClassName:E,body:function(e){if(!e)return null;const t=e.size?fileSizeSI(e.size):"";return require$$0.jsx("p",{"data-headername":T,children:t})},header:T},"bee-doc-table-col-size"):null,g>576?require$$0.jsx(column.Column,{className:k,headerClassName:k,body:function(e){return e?require$$0.jsx("p",{"data-headername":M,children:e.type}):null},header:M},"bee-doc-table-col-type"):null,c||l?require$$0.jsx(column.Column,{className:S,headerClassName:S,body:function(e){if(!e)return null;const t=e.id;return require$$0.jsxs("div",{"data-headername":"",children:[l?require$$0.jsx(BeeIconButton,{iconClass:I,isLoading:!1,rounded:!1,disabled:!1,type:"secondary",onClick:()=>{return e=t,void(d&&d(e));var e}}):null,!a&&c?require$$0.jsx(BeeIconButton,{iconClass:"pi pi-trash",isLoading:!1,rounded:!1,disabled:Boolean(a),type:"danger",onClick:()=>{return e=t,void(f&&f(e));var e}}):null]})},header:""},"bee-doc-table-col-action"):null]},`bee-doc-table-dt-${String(l)}-${String(F)}`),require$$0.jsxs("div",{className:"button-container",children:[F?require$$0.jsx("div",{className:"bee-doc-table-downloadAll",children:require$$0.jsx(BeeMixButton,{label:"Auswahl herunterladen",iconClass:I,iconPos:"right",disabled:!(y&&y.length>0),type:"secondary",isLoading:p,onClick:()=>{u&&l&&u(y)}})}):null,require$$0.jsx("div",{className:"upload-button",children:a?null:require$$0.jsx(BeeMixButton,{iconPos:"left",iconClass:"pi pi-upload",label:null!=n?n:"Dokument hinzufügen",disabled:a,type:"secondary",isLoading:!1,onClick:()=>{m&&m()}})})]})]})}exports.BasicPriceChart=BasicPriceChart,exports.BeeAddEntryCard=BeeAddEntryCard,exports.BeeAddressForm=BeeAddressForm,exports.BeeArrowDiff=BeeArrowDiff,exports.BeeAutocompleteDropdown=BeeAutocompleteDropdown,exports.BeeAutocompleteTag=BeeAutocompleteTag,exports.BeeAvatar=BeeAvatar,exports.BeeBadge=BeeBadge,exports.BeeBreadcrumb=BeeBreadcrumb,exports.BeeButton=BeeButton,exports.BeeChangesChip=BeeChangesChip,exports.BeeChatMessage=BeeChatMessage,exports.BeeChatRoom=BeeChatRoom,exports.BeeChatWindow=BeeChatWindow,exports.BeeCheckbox=BeeCheckbox,exports.BeeCheckboxTriState=BeeCheckboxTriState,exports.BeeChip=BeeChip,exports.BeeChipArea=BeeChipArea,exports.BeeChipDropdown=BeeChipDropdown,exports.BeeChipInput=BeeChipInput,exports.BeeColorSelect=BeeColorSelect,exports.BeeConfirmDialog=BeeConfirmDialog,exports.BeeContentHeadline=BeeContentHeadline,exports.BeeContentParagraph=BeeContentParagraph,exports.BeeCopyInput=BeeCopyInput,exports.BeeCurrencyInput=BeeCurrencyInput,exports.BeeCurrencySelect=BeeCurrencySelect,exports.BeeDateInput=BeeDateInput,exports.BeeDateTimeInput=BeeDateTimeInput,exports.BeeDeletionDialog=BeeDeletionDialog,exports.BeeDivider=BeeDivider,exports.BeeDocumentTable=BeeDocumentTable,exports.BeeDropDown=BeeDropDown,exports.BeeErrorComponent=BeeErrorComponent,exports.BeeErrorDialog=BeeErrorDialog,exports.BeeFilterDropDown=BeeFilterDropDown,exports.BeeFilterSortSearch=BeeFilterSortSearch,exports.BeeFilterTreeSelect=BeeFilterTreeSelect,exports.BeeFlatImageGallery=BeeFlatImageGallery,exports.BeeGalleryImage=BeeGalleryImage,exports.BeeIconBadgeButton=BeeIconBadgeButton,exports.BeeIconButton=BeeIconButton,exports.BeeImage=BeeImage,exports.BeeImageCard=BeeImageCard,exports.BeeImageCropper=BeeImageCropper,exports.BeeImageGallery=BeeFlatImageGallery,exports.BeeImageSlider=BeeImageSlider,exports.BeeImageUploadDialog=BeeImageUploadDialog,exports.BeeInfoDialog=BeeInfoDialog,exports.BeeKnob=BeeKnob,exports.BeeLabel=BeeLabel,exports.BeeLink=BeeLink,exports.BeeLinkButton=BeeLinkButton,exports.BeeLoadingBar=BeeLoadingBar,exports.BeeLoadingSpinner=BeeLoadingSpinner,exports.BeeMixButton=BeeMixButton,exports.BeeNumberInput=BeeNumberInput,exports.BeeNumberSelect=BeeNumberSelect,exports.BeeNutzungsartMix=BeeNutzungsartMix,exports.BeeOutlinedButton=BeeOutlinedButton,exports.BeeOutlinedIconButton=BeeOutlinedIconButton,exports.BeePanel=BeePanel,exports.BeePasswordInput=BeePasswordInput,exports.BeePercentageInput=BeePercentageInput,exports.BeePlaceholder=BeePlaceholder,exports.BeeSearchBar=BeeSearchBar,exports.BeeSelectButton=BeeSelectButton,exports.BeeSequencePosition=BeeSequencePosition,exports.BeeServerStatusInput=BeeServerStatusInput,exports.BeeShareBar=BeeShareBar,exports.BeeSkeleton=BeeSkeleton,exports.BeeSkeletonList=BeeSkeletonList,exports.BeeSlider=BeeSlider,exports.BeeSplitButton=BeeSplitButton,exports.BeeStarBar=BeeStarBar,exports.BeeSwitch=BeeSwitch,exports.BeeTabview=BeeTabview,exports.BeeTextArea=BeeTextArea,exports.BeeTextInput=BeeTextInput,exports.BeeTimeInput=BeeTimeInput,exports.BeeToolBarButton=BeeToolBarButton,exports.BeeTreeSelect=BeeTreeSelect,exports.BeeUploadDialog=BeeUploadDialog,exports.BeeVisibleItemCount=BeeVisibleItemCount,exports.ContractPotentialsChart=ContractPotentialsChart,exports.LvEditingStatusChart=LvEditingStatusChart,exports.LvInsightsChart=LvInsightsChart;
|
|
56
57
|
//# sourceMappingURL=index.js.map
|