oziko-ui-kit 0.0.2 → 0.0.3
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/README.md +3 -0
- package/package.json +3 -2
- package/dist/App.d.ts +0 -2
- package/dist/assets/Inter-VariableFont_opsz,wght.ttf +0 -0
- package/dist/assets/fonts/inter/Inter-VariableFont_opsz,wght.ttf +0 -0
- package/dist/assets/images/location.png +0 -0
- package/dist/assets/images/logo.png +0 -0
- package/dist/assets/inter/Inter-VariableFont_opsz,wght.ttf +0 -0
- package/dist/assets/location.png +0 -0
- package/dist/assets/logo.png +0 -0
- package/dist/components/atoms/autocomplete/Autocomplete.d.ts +0 -13
- package/dist/components/atoms/backdrop/Backdrop.d.ts +0 -8
- package/dist/components/atoms/base-input/BaseInput.d.ts +0 -28
- package/dist/components/atoms/base-input/InputGroup.d.ts +0 -13
- package/dist/components/atoms/base-input/InputLabel.d.ts +0 -9
- package/dist/components/atoms/bucket-field-popup/BucketFieldPopup.d.ts +0 -4
- package/dist/components/atoms/button/Button.d.ts +0 -16
- package/dist/components/atoms/chart/Chart.d.ts +0 -11
- package/dist/components/atoms/checkbox/Checkbox.d.ts +0 -19
- package/dist/components/atoms/chip/Chip.d.ts +0 -13
- package/dist/components/atoms/color/Color.d.ts +0 -16
- package/dist/components/atoms/dashboard-item/DashboardItem.d.ts +0 -12
- package/dist/components/atoms/date-picker/DatePicker.d.ts +0 -7
- package/dist/components/atoms/directory/Directory.d.ts +0 -6
- package/dist/components/atoms/draggable-bar/DraggableBar.d.ts +0 -19
- package/dist/components/atoms/drawer/Drawer.d.ts +0 -18
- package/dist/components/atoms/drop-list/DropList.d.ts +0 -9
- package/dist/components/atoms/flex-element/FlexElement.d.ts +0 -7
- package/dist/components/atoms/fluid-container/FluidContainer.d.ts +0 -9
- package/dist/components/atoms/icon/Icon.d.ts +0 -9
- package/dist/components/atoms/input/Input.d.ts +0 -8
- package/dist/components/atoms/input-header/InputHeader.d.ts +0 -7
- package/dist/components/atoms/input-with-icon/InputWithIcon.d.ts +0 -7
- package/dist/components/atoms/inputs/minimized/array/Array.d.ts +0 -12
- package/dist/components/atoms/inputs/minimized/boolean/Boolean.d.ts +0 -9
- package/dist/components/atoms/inputs/minimized/color/ColorMinimized.d.ts +0 -9
- package/dist/components/atoms/inputs/minimized/date/Date.d.ts +0 -10
- package/dist/components/atoms/inputs/minimized/location/Location.d.ts +0 -10
- package/dist/components/atoms/inputs/minimized/multi-selection/MultiSelection.d.ts +0 -11
- package/dist/components/atoms/inputs/minimized/number/NumberMinimized.d.ts +0 -11
- package/dist/components/atoms/inputs/minimized/object/Object.d.ts +0 -12
- package/dist/components/atoms/inputs/minimized/rich-text/RichText.d.ts +0 -8
- package/dist/components/atoms/inputs/minimized/storage/StorageMinimized.d.ts +0 -12
- package/dist/components/atoms/inputs/minimized/string/StringMinimized.d.ts +0 -14
- package/dist/components/atoms/inputs/minimized/text-area/TextArea.d.ts +0 -13
- package/dist/components/atoms/inputs/normal/array/ArrayInput.d.ts +0 -18
- package/dist/components/atoms/inputs/normal/boolean/Boolean.d.ts +0 -17
- package/dist/components/atoms/inputs/normal/chip/ChipInput.d.ts +0 -8
- package/dist/components/atoms/inputs/normal/color/Color.d.ts +0 -14
- package/dist/components/atoms/inputs/normal/date/Date.d.ts +0 -11
- package/dist/components/atoms/inputs/normal/enum/Enum.d.ts +0 -15
- package/dist/components/atoms/inputs/normal/location/Location.d.ts +0 -13
- package/dist/components/atoms/inputs/normal/multiple-selection/MultipleSelection.d.ts +0 -14
- package/dist/components/atoms/inputs/normal/number/Number.d.ts +0 -16
- package/dist/components/atoms/inputs/normal/object/ObjectInput.d.ts +0 -15
- package/dist/components/atoms/inputs/normal/rich-text/LexicalContent.d.ts +0 -8
- package/dist/components/atoms/inputs/normal/rich-text/RichText.d.ts +0 -19
- package/dist/components/atoms/inputs/normal/rich-text/plugins/ExtendedTextNode.d.ts +0 -12
- package/dist/components/atoms/inputs/normal/rich-text/plugins/OnChangePlugin.d.ts +0 -6
- package/dist/components/atoms/inputs/normal/rich-text/plugins/ToolbarPlugin.d.ts +0 -8
- package/dist/components/atoms/inputs/normal/rich-text/ui/ColorPicker.d.ts +0 -13
- package/dist/components/atoms/inputs/normal/rich-text/ui/Dialog.d.ts +0 -16
- package/dist/components/atoms/inputs/normal/rich-text/ui/Dropdown.d.ts +0 -24
- package/dist/components/atoms/inputs/normal/rich-text/ui/DropdownColorPicker.d.ts +0 -13
- package/dist/components/atoms/inputs/normal/rich-text/ui/FontSize.d.ts +0 -6
- package/dist/components/atoms/inputs/normal/rich-text/ui/TextInput.d.ts +0 -12
- package/dist/components/atoms/inputs/normal/rich-text/utils/getSelectedNode.d.ts +0 -2
- package/dist/components/atoms/inputs/normal/storage/Storage.d.ts +0 -39
- package/dist/components/atoms/inputs/normal/string/String.d.ts +0 -17
- package/dist/components/atoms/inputs/normal/text-area/TextArea.d.ts +0 -24
- package/dist/components/atoms/json/Json.d.ts +0 -6
- package/dist/components/atoms/list-item/ListItem.d.ts +0 -8
- package/dist/components/atoms/list-row/ListRow.d.ts +0 -10
- package/dist/components/atoms/map/Map.d.ts +0 -22
- package/dist/components/atoms/modal/Modal.d.ts +0 -25
- package/dist/components/atoms/modal/body/ModalBody.d.ts +0 -7
- package/dist/components/atoms/modal/footer/ModalFooter.d.ts +0 -7
- package/dist/components/atoms/modal/header/ModalHeader.d.ts +0 -7
- package/dist/components/atoms/popover/Popover.d.ts +0 -16
- package/dist/components/atoms/portal/Portal.d.ts +0 -6
- package/dist/components/atoms/select-option/SelectOption.d.ts +0 -19
- package/dist/components/atoms/spinner/Spinner.d.ts +0 -15
- package/dist/components/atoms/storage-file-card/StorageFileCard.d.ts +0 -12
- package/dist/components/atoms/switch/Switch.d.ts +0 -9
- package/dist/components/atoms/tab/Tab.d.ts +0 -9
- package/dist/components/atoms/text/Text.d.ts +0 -9
- package/dist/components/atoms/title/Title.d.ts +0 -9
- package/dist/components/molecules/accordion/Accordion.d.ts +0 -24
- package/dist/components/molecules/accordion/AccordionElement.d.ts +0 -17
- package/dist/components/molecules/navigator-item/NavigatorItem.d.ts +0 -14
- package/dist/components/molecules/select/Select.d.ts +0 -31
- package/dist/components/molecules/sso-button/SSOButton.d.ts +0 -10
- package/dist/components/molecules/storage-filter/StorageFilter.d.ts +0 -24
- package/dist/components/molecules/timeline/Timeline.d.ts +0 -24
- package/dist/components/organisms/dashboard/layout/DashboardLayout.d.ts +0 -15
- package/dist/components/organisms/menu-group/MenuGroup.d.ts +0 -12
- package/dist/components/organisms/section/Section.d.ts +0 -12
- package/dist/components/organisms/sidebar/SideBar.d.ts +0 -25
- package/dist/components/organisms/sidebar/navigator/Navigator.d.ts +0 -19
- package/dist/components/organisms/storage-file-select/StorageFileSelect.d.ts +0 -12
- package/dist/components/organisms/storage-file-select/sort-popover-content/SortPopoverContent.d.ts +0 -6
- package/dist/components/organisms/storage-file-select/storage-modal-heading/StorageModalHeading.d.ts +0 -11
- package/dist/components/organisms/table/Table.d.ts +0 -13
- package/dist/custom-hooks/useAdaptivePosition.d.ts +0 -18
- package/dist/custom-hooks/useDebounce.d.ts +0 -6
- package/dist/custom-hooks/useFileView.d.ts +0 -12
- package/dist/custom-hooks/useFlexStyles.d.ts +0 -9
- package/dist/custom-hooks/useInputRepresenter.d.ts +0 -83
- package/dist/custom-hooks/useKeyDown.d.ts +0 -12
- package/dist/custom-hooks/useOnClickOutside.d.ts +0 -7
- package/dist/images/layers-2x.png +0 -0
- package/dist/images/layers.png +0 -0
- package/dist/images/marker-icon-2x.png +0 -0
- package/dist/images/marker-icon.png +0 -0
- package/dist/images/marker-shadow.png +0 -0
- package/dist/index.css +0 -3140
- package/dist/index.export.d.ts +0 -68
- package/dist/index.mjs +0 -100
- package/dist/index.mjs.map +0 -1
- package/dist/theme/ThemeContext.d.ts +0 -7
- package/dist/theme/createTheme.d.ts +0 -3
- package/dist/theme/defaultPalette.d.ts +0 -5
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/loadTheme.d.ts +0 -1
- package/dist/theme/saveTheme.d.ts +0 -1
- package/dist/theme/types.d.ts +0 -51
- package/dist/utils/api.d.ts +0 -7
- package/dist/utils/color.d.ts +0 -8
- package/dist/utils/helperUtils.d.ts +0 -5
- package/dist/utils/iconList.d.ts +0 -9
- package/dist/utils/index.d.ts +0 -25
- package/dist/utils/interface.d.ts +0 -23
- package/dist/utils/time.d.ts +0 -8
package/dist/index.mjs
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import*as r from"react";import i,{useMemo as o,memo as a,useRef as s,useEffect as l,useCallback as c,useState as u,useLayoutEffect as d,forwardRef as h,useContext as p,version as f,isValidElement as m,createContext as g,Children as v,useImperativeHandle as y,Fragment as b,use as x,createElement as _,Component as w,useReducer as S,Suspense as k}from"react";import*as C from"react-dom";import E,{createPortal as M,unstable_batchedUpdates as P,flushSync as O}from"react-dom";import T from"react-dom/server";var N="Autocomplete-module_input__ZClTo",A="Autocomplete-module_menuItems__PRxS4",D="ListItem-module_item__IJwTZ",I="ListItem-module_disabled__nySSv",z="ListItem-module_active__L8V-w",R="ListItem-module_displayer__Ce1rm",F="FlexElement-module_flexElement__eg1MJ";function $(t={alignment:"center",direction:"horizontal",dimensionX:"hug",dimensionY:"hug",gap:5}){return o((()=>{const{alignment:e,direction:n,dimensionX:r,dimensionY:i,gap:o}=t;return{classes:["flexElement",e||"",n&&"vertical"===n?"vertical":"horizontal",n&&"wrap"===n?"wrap":"noWrap","number"==typeof r?"":r&&`dimensionX${r}`,"number"==typeof i?"":i&&`dimensionY${i}`].filter(Boolean).join(" ").trim(),inlineStyles:{gap:`${o}px`,width:"number"==typeof r?`${r}px`:void 0,height:"number"==typeof i?`${i}px`:void 0}}}),[t])}var j=a((({children:e,alignment:n="center",direction:r="horizontal",dimensionX:i="hug",dimensionY:o="hug",gap:a=5,style:s,ref:l,onClick:c,...u})=>{const{classes:d,inlineStyles:h}=$({alignment:n,direction:r,dimensionX:i,dimensionY:o,gap:a});return e?t("div",{ref:l,onClick:c,...u,style:{...s,...h},className:`${u.className} ${F} ${d}`,children:e}):null}));var B=a((({prefix:n,root:r,suffix:i,mode:o="hug",alignment:a,...s})=>{const l=(t,e)=>t?.dimensionX||e,c=l(n,"hug"),u=l(r,"fill"===o?"fill":"hug"),d=l(i,"hug"),h=a||("middle"===o?"center":"leftCenter"),p=(e,n)=>e?.children?t(j,{...e,dimensionX:n}):null;return e(j,{...s,ref:s.ref,alignment:h,children:[p(n,c),p(r,u),p(i,d)]})})),H={text:"Text-module_text__pXeDB",primary:"Text-module_primary__Jl3pf",secondary:"Text-module_secondary__lupNJ",danger:"Text-module_danger__wUGWY",xsmall:"Text-module_xsmall__9MbA8",small:"Text-module_small__6RMw5",medium:"Text-module_medium__1wQOp",large:"Text-module_large__xU7Z7",xlarge:"Text-module_xlarge__e2FFa"};var W=a((({variant:e="primary",size:n="medium",children:r,dimensionX:i,dimensionY:o,ref:a,...s})=>{const l=H[e],c=H[n],{classes:u,inlineStyles:d}=$({dimensionX:i,dimensionY:o});return t("span",{ref:a,...s,className:`${s.className} ${H.text} ${l} ${c} ${u}`,style:{...d,...s.style},children:r})}));var V=a((({label:e,active:n,disabled:r,onClick:i,...o})=>t(B,{dimensionX:"fill",dimensionY:36,alignment:"leftCenter",onClick:i,className:`${D} ${n&&z} ${r&&I}`,root:{children:t(W,{dimensionX:"fill",className:`${o.root?.className} ${R}`,children:e}),dimensionX:"fill"},...o},e))),Y="InputWithIcon-module_container__XS6go",q="InputWithIcon-module_disabled__Ipdhp",X="InputWithIcon-module_input__QmSjk",U="Input-module_input__drEt1";var Z=a((({debounceDelay:e,dimensionX:n,dimensionY:r,ref:i,value:o,onChange:a,...d})=>{const[h,p]=u(o);l((()=>{p(o)}),[o]);const f=((t,{delay:e=0,dependencies:n=[]}={})=>{const r=s(t),i=s(void 0);return l((()=>{r.current=t}),[t]),c(((...t)=>{i.current&&clearTimeout(i.current),i.current=setTimeout((()=>{r.current(...t)}),e)}),[e,...n])})((t=>a?.({...t,target:{...t.target,value:t.target.value}})),{delay:e}),{classes:m,inlineStyles:g}=$({dimensionX:n,dimensionY:r});return t("input",{ref:i,value:h,onChange:t=>{const e=t.target.value;p(e),f(t)},...d,className:`${d.className} ${U} ${m}`,style:{...g,...d.style}})}));var G=a((({className:e,inputProps:n,...r})=>t(B,{ref:r.ref,className:`${Y} ${e} ${n?.disabled&&q}`,dimensionY:36,root:{children:t(Z,{...n,className:`${n?.className} ${X}`}),dimensionX:"fill",alignment:"leftCenter"},...r})));const K=({refs:t,onClickOutside:e})=>{l((()=>{const n=n=>{t.every((t=>t.current&&!t.current.contains(n.target)))&&e()};return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)}),[t,e])},J=({containerRef:t,targetRef:e,initialPlacement:n="bottom"})=>{const[r,i]=u(null),o=c((()=>{if(!t.current||!e.current)return;const r=t.current.getBoundingClientRect(),o=e.current.offsetHeight,a=e.current.offsetWidth,s=window.innerHeight,l=window.innerWidth,c=r.top-o+window.scrollY-4,u=r.bottom+window.scrollY+4,d=r.left-a+window.scrollX-4,h=r.right+window.scrollX+4,p={topStart:{top:c,left:r.left+window.scrollX,bottom:r.top+window.scrollY,right:r.left+a+window.scrollX},top:{top:c,left:r.left+r.width/2-a/2+window.scrollX,bottom:r.top+window.scrollY,right:r.left+r.width/2+a/2+window.scrollX},topEnd:{top:c,left:r.right-a+window.scrollX,bottom:r.top+window.scrollY,right:r.right+window.scrollX},rightStart:{top:r.top+window.scrollY,left:h,bottom:r.top+o+window.scrollY,right:r.right+a+window.scrollX},right:{top:r.top+r.height/2-o/2+window.scrollY,left:h,bottom:r.top+r.height/2+o/2+window.scrollY,right:r.right+a+window.scrollX},rightEnd:{top:r.bottom-o+window.scrollY,left:h,bottom:r.bottom+window.scrollY,right:r.right+a+window.scrollX},bottomStart:{top:u,left:r.left+window.scrollX,bottom:r.bottom+o+window.scrollY,right:r.left+a+window.scrollX},bottom:{top:u,left:r.left+r.width/2-a/2+window.scrollX,bottom:r.bottom+o+window.scrollY,right:r.left+r.width/2+a/2+window.scrollX},bottomEnd:{top:u,left:r.right-a+window.scrollX,bottom:r.bottom+o+window.scrollY,right:r.right+window.scrollX},leftStart:{top:r.top+window.scrollY,left:d,bottom:r.top+o+window.scrollY,right:r.left+window.scrollX},left:{top:r.top+r.height/2-o/2+window.scrollY,left:d,bottom:r.top+r.height/2+o/2+window.scrollY,right:r.left+window.scrollX},leftEnd:{top:r.bottom-o+window.scrollY,left:d,bottom:r.bottom+window.scrollY,right:r.left+window.scrollX}},f=t=>{const{top:e,left:n,bottom:r,right:i}=t;return(void 0===e||e>=0)&&(void 0===r||r<=s)&&((void 0===n||n>=0)&&(void 0===i||i<=l))},m=(()=>{if(f(p[n]))return n;if("bottom"===n&&!f(p.bottom)&&f(p.top))return"top";const t={top:["topStart","topEnd","bottom","bottomStart","bottomEnd"],bottom:["bottomStart","bottomEnd","top","topStart","topEnd"],left:["leftStart","leftEnd","right","rightStart","rightEnd"],right:["rightStart","rightEnd","left","leftStart","leftEnd"],topStart:["top","topEnd","bottom","bottomStart","bottomEnd"],topEnd:["bottom","bottomEnd","top","topStart","topEnd"],rightStart:["right","rightEnd","left","leftStart","leftEnd"],rightEnd:["right","rightStart","left","leftStart","leftEnd"],bottomStart:["bottom","bottomEnd","top","topStart","topEnd"],bottomEnd:["bottom","bottomStart","top","topStart","topEnd"],leftStart:["left","leftEnd","right","rightStart","rightEnd"],leftEnd:["left","leftStart","right","rightStart","rightEnd"]}[n];for(let e of t)if(f(p[e]))return e;return n})();i(p[m])}),[t,e,n]);return{targetPosition:r,calculatePosition:o}};var Q=a((({className:r,placement:i="bottom",popupClassName:o="",options:a,inputProps:c,...h})=>{const p=s(null),f=s(null);K({refs:[f,p],onClickOutside:()=>y(!1)});const{targetPosition:m,calculatePosition:g}=J({containerRef:p,targetRef:f,initialPlacement:i}),[v,y]=u(!1),[b,x]=u(c?.value||""),[_,w]=u(a);l((()=>{x(c?.value||"")}),[c?.value]),l((()=>{S(b)}),[b,a]),d((()=>{v&&p.current&&f.current&&g()}),[v,_,g]);const S=t=>{w(t?a.filter((e=>e.toLowerCase().includes(t.toLowerCase()))):a)};return e(n,{children:[t(G,{ref:p,inputProps:{value:b,onChange:t=>{x(t.target.value)},...c,className:`${c?.className} ${N}`},dimensionX:"fill",onClick:()=>{c?.disabled||y((t=>!t))},...h}),v&&t(j,{ref:f,style:{...m},className:`${o} ${A}`,direction:"vertical",alignment:"leftTop",gap:0,children:_.map((e=>t(V,{dimensionX:p.current?.offsetWidth,label:e,onClick:()=>{return t=e,c?.onChange?.(t),x(t),void y(!1);var t},active:e.toLowerCase()===b.toLowerCase()},e)))})]})})),tt="InputLabel-module_reverse__OWiKh",et="InputLabel-module_title__-qafK",nt="InputLabel-module_divider__dUzoL",rt="InputLabel-module_focused__bVb3x",it="InputLabel-module_container__ahfSz";const ot=a((({ref:e,children:n,...r})=>t(j,{...r,ref:e,children:n})));ot.Label=({dividerClassName:e,reverse:n=!1,divider:r=!0,isFocused:i,...o})=>t(B,{mode:"fill",prefix:{children:o.prefix?.children,...o.prefix,className:`${o.prefix?.className}`},root:{children:o.root?.children,...o.root,className:`${et} ${o.root?.className} `},suffix:{dimensionY:"fill",children:r&&t("div",{className:`${nt} ${e}`}),...o.suffix,className:`${o.suffix?.className}`},className:`${it} ${n?tt:""} ${o.className} ${i?rt:""}`}),ot.HelperText=j;var at="BaseInput-module_baseInputContainer__sY1kq",st="BaseInput-module_focused__K38D8",lt="BaseInput-module_containerFocused__w9-Ht",ct="BaseInput-module_disabled__kn4wv",ut="BaseInput-module_helperText__5CsM3";const dt=({errorMessage:n,description:r,labelProps:i,onFocusChange:o,disabled:a=!1,readonly:c=!1,inputContainerProps:d,helperTextProps:h,helperTextContainerProps:p,children:f,forceFocus:m=!1,...g})=>{const[v,y]=u(m),b=s(null);l((()=>{y(m)}),[m]),K({refs:[b],onClickOutside:()=>{y(!1)}});return l((()=>{o?.(v)}),[v]),e(ot,{onClick:()=>{a||c||y(!0)},ref:b,direction:"vertical",gap:2,...g,className:`${a?ct:""} ${g.className}`,children:[e(j,{dimensionX:"fill",gap:15,...d,className:`${at} ${d?.className} ${v?lt:""}`,children:[t(ot.Label,{prefix:{children:i?.prefix?.children,...i?.prefix},root:{children:i?.root?.children,...i?.root},...i,isFocused:v||!!f.props.value,className:v||f.props.value?i?.focusedClassName||st:"",dividerClassName:i?.dividerClassName}),f]}),t(ot.HelperText,{alignment:"leftCenter",dimensionX:"fill",...p,className:`${ut} ${p?.className}`,children:t(W,{...h,size:"xsmall",variant:n?"danger":"secondary",className:`${h?.className}`,children:n||r})})]})};var ht={icon:"Icon-module_icon__RB1IY",xs:"Icon-module_xs__908MS",sm:"Icon-module_sm__6W-Lb",md:"Icon-module_md__NwfvQ",lg:"Icon-module_lg__KKTLI"};function pt(t){if("object"!=typeof t||null===t)return!1;const e=Object.getPrototypeOf(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)}function ft(t){if(r.isValidElement(t)||!pt(t))return t;const e={};return Object.keys(t).forEach((n=>{e[n]=ft(t[n])})),e}function mt(t,e,n={clone:!0}){const i=n.clone?{...t}:t;return pt(t)&&pt(e)&&Object.keys(e).forEach((o=>{r.isValidElement(e[o])?i[o]=e[o]:pt(e[o])&&Object.prototype.hasOwnProperty.call(t,o)&&pt(t[o])?i[o]=mt(t[o],e[o],n):n.clone?i[o]=pt(e[o])?ft(e[o]):e[o]:i[o]=e[o]})),i}var gt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function vt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yt(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}var bt,xt={exports:{}},_t={exports:{}},wt={};var St,kt,Ct,Et,Mt,Pt,Ot,Tt,Nt,At,Dt,Lt,It,zt,Rt,Ft={};
|
|
2
|
-
/** @license React v16.13.1
|
|
3
|
-
* react-is.development.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/function $t(){return kt||(kt=1,"production"===process.env.NODE_ENV?_t.exports=function(){if(bt)return wt;bt=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case l:case c:case r:case o:case i:case d:return t;default:switch(t=t&&t.$$typeof){case s:case u:case f:case p:case a:return t;default:return h}}case n:return h}}}function x(t){return b(t)===c}return wt.AsyncMode=l,wt.ConcurrentMode=c,wt.ContextConsumer=s,wt.ContextProvider=a,wt.Element=e,wt.ForwardRef=u,wt.Fragment=r,wt.Lazy=f,wt.Memo=p,wt.Portal=n,wt.Profiler=o,wt.StrictMode=i,wt.Suspense=d,wt.isAsyncMode=function(t){return x(t)||b(t)===l},wt.isConcurrentMode=x,wt.isContextConsumer=function(t){return b(t)===s},wt.isContextProvider=function(t){return b(t)===a},wt.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},wt.isForwardRef=function(t){return b(t)===u},wt.isFragment=function(t){return b(t)===r},wt.isLazy=function(t){return b(t)===f},wt.isMemo=function(t){return b(t)===p},wt.isPortal=function(t){return b(t)===n},wt.isProfiler=function(t){return b(t)===o},wt.isStrictMode=function(t){return b(t)===i},wt.isSuspense=function(t){return b(t)===d},wt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===c||t===o||t===i||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===g||t.$$typeof===v||t.$$typeof===y||t.$$typeof===m)},wt.typeOf=b,wt}():_t.exports=(St||(St=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,l=t?Symbol.for("react.async_mode"):60111,c=t?Symbol.for("react.concurrent_mode"):60111,u=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,f=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,g=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var m=t.type;switch(m){case l:case c:case r:case o:case i:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case f:case p:case a:return g;default:return h}}case n:return h}}}var x=l,_=c,w=s,S=a,k=e,C=u,E=r,M=f,P=p,O=n,T=o,N=i,A=d,D=!1;function L(t){return b(t)===c}Ft.AsyncMode=x,Ft.ConcurrentMode=_,Ft.ContextConsumer=w,Ft.ContextProvider=S,Ft.Element=k,Ft.ForwardRef=C,Ft.Fragment=E,Ft.Lazy=M,Ft.Memo=P,Ft.Portal=O,Ft.Profiler=T,Ft.StrictMode=N,Ft.Suspense=A,Ft.isAsyncMode=function(t){return D||(D=!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.")),L(t)||b(t)===l},Ft.isConcurrentMode=L,Ft.isContextConsumer=function(t){return b(t)===s},Ft.isContextProvider=function(t){return b(t)===a},Ft.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ft.isForwardRef=function(t){return b(t)===u},Ft.isFragment=function(t){return b(t)===r},Ft.isLazy=function(t){return b(t)===f},Ft.isMemo=function(t){return b(t)===p},Ft.isPortal=function(t){return b(t)===n},Ft.isProfiler=function(t){return b(t)===o},Ft.isStrictMode=function(t){return b(t)===i},Ft.isSuspense=function(t){return b(t)===d},Ft.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===c||t===o||t===i||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===g||t.$$typeof===v||t.$$typeof===y||t.$$typeof===m)},Ft.typeOf=b}()),Ft)),_t.exports}
|
|
10
|
-
/*
|
|
11
|
-
object-assign
|
|
12
|
-
(c) Sindre Sorhus
|
|
13
|
-
@license MIT
|
|
14
|
-
*/function jt(){if(Et)return Ct;Et=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Ct=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(r,i){for(var o,a,s=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(r),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))e.call(o,c)&&(s[c]=o[c]);if(t){a=t(o);for(var u=0;u<a.length;u++)n.call(o,a[u])&&(s[a[u]]=o[a[u]])}}return s},Ct}function Bt(){if(Pt)return Mt;Pt=1;return Mt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Ht(){return Tt?Ot:(Tt=1,Ot=Function.call.bind(Object.prototype.hasOwnProperty))}function Wt(){if(At)return Nt;At=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Bt(),n={},r=Ht();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,s,l){if("production"!==process.env.NODE_ENV)for(var c in i)if(r(i,c)){var u;try{if("function"!=typeof i[c]){var d=Error((s||"React class")+": "+a+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=i[c](o,c,s,a,null,e)}catch(t){u=t}if(!u||u instanceof Error||t((s||"React class")+": type specification of "+a+" `"+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 h=l?l():"";t("Failed "+a+" type: "+u.message+(null!=h?h:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Nt=i}function Vt(){if(Lt)return Dt;Lt=1;var t=$t(),e=jt(),n=Bt(),r=Ht(),i=Wt(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Dt=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(a),arrayOf:function(t){return f((function(e,r,i,o,a){if("function"!=typeof t)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var s=e[r];if(!Array.isArray(s))return new p("Invalid "+o+" `"+a+"` of type `"+y(s)+"` supplied to `"+i+"`, expected an array.");for(var l=0;l<s.length;l++){var c=t(s,l,i,o,a+"["+l+"]",n);if(c instanceof Error)return c}return null}))},element:f((function(t,e,n,r,i){var o=t[e];return s(o)?null:new p("Invalid "+r+" `"+i+"` of type `"+y(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:f((function(e,n,r,i,o){var a=e[n];return t.isValidElementType(a)?null:new p("Invalid "+i+" `"+o+"` of type `"+y(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return f((function(e,n,r,i,o){if(!(e[n]instanceof t)){var a=t.name||u;return new p("Invalid "+i+" `"+o+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `")+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:f((function(t,e,n,r,i){return v(t[e])?null:new p("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return f((function(e,i,o,a,s){if("function"!=typeof t)return new p("Property `"+s+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=e[i],c=y(l);if("object"!==c)return new p("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var u in l)if(r(l,u)){var d=t(l,u,o,a,s+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o(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."),a;return f((function(e,n,r,i,o){for(var a=e[n],s=0;s<t.length;s++)if(h(a,t[s]))return null;var l=JSON.stringify(t,(function(t,e){return"symbol"===b(e)?String(e):e}));return new p("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+l+".")}))},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return f((function(e,i,o,a,s){for(var l=[],c=0;c<t.length;c++){var u=(0,t[c])(e,i,o,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new p("Invalid "+a+" `"+s+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(t){return f((function(e,r,i,o,a){var s=e[r],l=y(s);if("object"!==l)return new p("Invalid "+o+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");for(var c in t){var u=t[c];if("function"!=typeof u)return g(i,o,a,c,b(u));var d=u(s,c,i,o,a+"."+c,n);if(d)return d}return null}))},exact:function(t){return f((function(i,o,a,s,l){var c=i[o],u=y(c);if("object"!==u)return new p("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=e({},i[o],t);for(var h in d){var f=t[h];if(r(t,h)&&"function"!=typeof f)return g(a,s,l,h,b(f));if(!f)return new p("Invalid "+s+" `"+l+"` key `"+h+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var m=f(c,h,a,s,l+"."+h,n);if(m)return m}return null}))}};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function p(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function f(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function i(i,a,s,c,d,h,f){if(c=c||u,h=h||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;!e[g]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+h+"` 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."),e[g]=!0,r++)}}return null==a[s]?i?null===a[s]?new p("The "+d+" `"+h+"` is marked as required in `"+c+"`, but its value is `null`."):new p("The "+d+" `"+h+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:t(a,s,c,d,h)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function m(t){return f((function(e,n,r,i,o,a){var s=e[n];return y(s)!==t?new p("Invalid "+i+" `"+o+"` of type `"+b(s)+"` supplied to `"+r+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,n,r,i){return new p((t||"React class")+": "+e+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||s(t))return!0;var e=function(t){var e=t&&(c&&t[c]||t["@@iterator"]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function y(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function b(t){if(null==t)return""+t;var e=y(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=b(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return p.prototype=Error.prototype,d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},Dt}function Yt(){if(zt)return It;zt=1;var t=Bt();function e(){}function n(){}return n.resetWarningCache=e,It=function(){function r(e,n,r,i,o,a){if(a!==t){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 i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o}}function qt(){if(Rt)return xt.exports;if(Rt=1,"production"!==process.env.NODE_ENV){var t=$t();xt.exports=Vt()(t.isElement,true)}else xt.exports=Yt()();return xt.exports}var Xt=vt(qt());function Ut(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach((t=>n.searchParams.append("args[]",t))),`Minified MUI error #${t}; visit ${n} for the full message.`}var Zt,Gt={exports:{}},Kt={};function Jt(){if(Zt)return Kt;Zt=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=Symbol.for("react.client.reference");function f(h){if("object"==typeof h&&null!==h){var p=h.$$typeof;switch(p){case t:switch(h=h.type){case n:case i:case r:case l:case c:return h;default:switch(h=h&&h.$$typeof){case a:case s:case d:case u:case o:return h;default:return p}}case e:return p}}}return Kt.ContextConsumer=o,Kt.ContextProvider=a,Kt.Element=t,Kt.ForwardRef=s,Kt.Fragment=n,Kt.Lazy=d,Kt.Memo=u,Kt.Portal=e,Kt.Profiler=i,Kt.StrictMode=r,Kt.Suspense=l,Kt.SuspenseList=c,Kt.isContextConsumer=function(t){return f(t)===o},Kt.isContextProvider=function(t){return f(t)===a},Kt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Kt.isForwardRef=function(t){return f(t)===s},Kt.isFragment=function(t){return f(t)===n},Kt.isLazy=function(t){return f(t)===d},Kt.isMemo=function(t){return f(t)===u},Kt.isPortal=function(t){return f(t)===e},Kt.isProfiler=function(t){return f(t)===i},Kt.isStrictMode=function(t){return f(t)===r},Kt.isSuspense=function(t){return f(t)===l},Kt.isSuspenseList=function(t){return f(t)===c},Kt.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||t===i||t===r||t===l||t===c||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===u||t.$$typeof===a||t.$$typeof===o||t.$$typeof===s||t.$$typeof===p||void 0!==t.getModuleId)},Kt.typeOf=f,Kt}var Qt,te,ee={};
|
|
15
|
-
/**
|
|
16
|
-
* @license React
|
|
17
|
-
* react-is.development.js
|
|
18
|
-
*
|
|
19
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the MIT license found in the
|
|
22
|
-
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/function ne(){return Qt||(Qt=1,"production"!==process.env.NODE_ENV&&function(){function t(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case r:case o:case i:case c:case u:return t;default:switch(t=t&&t.$$typeof){case s:case l:case h:case d:case a:return t;default:return p}}case n:return p}}}var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f=Symbol.for("react.client.reference");ee.ContextConsumer=a,ee.ContextProvider=s,ee.Element=e,ee.ForwardRef=l,ee.Fragment=r,ee.Lazy=h,ee.Memo=d,ee.Portal=n,ee.Profiler=o,ee.StrictMode=i,ee.Suspense=c,ee.SuspenseList=u,ee.isContextConsumer=function(e){return t(e)===a},ee.isContextProvider=function(e){return t(e)===s},ee.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ee.isForwardRef=function(e){return t(e)===l},ee.isFragment=function(e){return t(e)===r},ee.isLazy=function(e){return t(e)===h},ee.isMemo=function(e){return t(e)===d},ee.isPortal=function(e){return t(e)===n},ee.isProfiler=function(e){return t(e)===o},ee.isStrictMode=function(e){return t(e)===i},ee.isSuspense=function(e){return t(e)===c},ee.isSuspenseList=function(e){return t(e)===u},ee.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===o||t===i||t===c||t===u||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===s||t.$$typeof===a||t.$$typeof===l||t.$$typeof===f||void 0!==t.getModuleId)},ee.typeOf=t}()),ee}function re(){return te||(te=1,"production"===process.env.NODE_ENV?Gt.exports=Jt():Gt.exports=ne()),Gt.exports}var ie=re();function oe(t,e=""){return t.displayName||t.name||e}function ae(t,e,n){const r=oe(e);return t.displayName||(""!==r?`${n}(${r})`:n)}function se(t){if("string"!=typeof t)throw new Error("production"!==process.env.NODE_ENV?"MUI: `capitalize(string)` expects a string argument.":Ut(7));return t.charAt(0).toUpperCase()+t.slice(1)}function le(t,e){const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=r;if("components"===i||"slots"===i)n[i]={...t[i],...n[i]};else if("componentsProps"===i||"slotProps"===i){const r=t[i],o=e[i];if(o)if(r){n[i]={...o};for(const t in r)if(Object.prototype.hasOwnProperty.call(r,t)){const e=t;n[i][e]=le(r[e],o[e])}}else n[i]=o;else n[i]=r||{}}else void 0===n[i]&&(n[i]=t[i])}return n}const ce=t=>t,ue=(()=>{let t=ce;return{configure(e){t=e},generate:e=>t(e),reset(){t=ce}}})();var de=ue;const he={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function pe(t,e,n="Mui"){const r=he[e];return r?`${n}-${r}`:`${de.generate(t)}-${e}`}function fe(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=fe(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function me(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=fe(t))&&(r&&(r+=" "),r+=e);return r}function ge(t,e){return e?mt(t,e,{clone:!1}):t}var ve="production"!==process.env.NODE_ENV?Xt.oneOfType([Xt.number,Xt.string,Xt.object,Xt.array]):{};const ye={xs:0,sm:600,md:900,lg:1200,xl:1536},be={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${ye[t]}px)`},xe={containerQueries:t=>({up:e=>{let n="number"==typeof e?e:ye[e]||e;return"number"==typeof n&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function _e(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const t=r.breakpoints||be;return e.reduce(((r,i,o)=>(r[t.up(t.keys[o])]=n(e[o]),r)),{})}if("object"==typeof e){const t=r.breakpoints||be;return Object.keys(e).reduce(((i,o)=>{if(a=t.keys,"@"===(s=o)||s.startsWith("@")&&(a.some((t=>s.startsWith(`@${t}`)))||s.match(/^@\d/))){const t=function(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if("production"!==process.env.NODE_ENV)throw new Error("production"!==process.env.NODE_ENV?`MUI: The provided shorthand (${e}) is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.\nFor example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Ut(18,`(${e})`));return null}const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return t.containerQueries(i).up(o)}(r.containerQueries?r:xe,o);t&&(i[t]=n(e[o],o))}else if(Object.keys(t.values||ye).includes(o)){i[t.up(o)]=n(e[o],o)}else{const t=o;i[t]=e[t]}var a,s;return i}),{})}return n(e)}function we(t,e,n=!0){if(!e||"string"!=typeof e)return null;if(t&&t.vars&&n){const n=`vars.${e}`.split(".").reduce(((t,e)=>t&&t[e]?t[e]:null),t);if(null!=n)return n}return e.split(".").reduce(((t,e)=>t&&null!=t[e]?t[e]:null),t)}function Se(t,e,n,r=n){let i;return i="function"==typeof t?t(n):Array.isArray(t)?t[n]||r:we(t,n)||r,e&&(i=e(i,r,t)),i}function ke(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:i}=t,o=t=>{if(null==t[e])return null;const o=t[e],a=we(t.theme,r)||{};return _e(t,o,(t=>{let r=Se(a,i,t);return t===r&&"string"==typeof t&&(r=Se(a,i,`${e}${"default"===t?"":se(t)}`,t)),!1===n?r:{[n]:r}}))};return o.propTypes="production"!==process.env.NODE_ENV?{[e]:ve}:{},o.filterProps=[e],o}const Ce={m:"margin",p:"padding"},Ee={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Me={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Pe=function(t){const e={};return n=>(void 0===e[n]&&(e[n]=t(n)),e[n])}((t=>{if(t.length>2){if(!Me[t])return[t];t=Me[t]}const[e,n]=t.split(""),r=Ce[e],i=Ee[n]||"";return Array.isArray(i)?i.map((t=>r+t)):[r+i]})),Oe=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Te=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ne=[...Oe,...Te];function Ae(t,e,n,r){const i=we(t,e,!0)??n;return"number"==typeof i||"string"==typeof i?t=>"string"==typeof t?t:("production"!==process.env.NODE_ENV&&"number"!=typeof t&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${t}.`),"string"==typeof i?`calc(${t} * ${i})`:i*t):Array.isArray(i)?t=>{if("string"==typeof t)return t;const n=Math.abs(t);"production"!==process.env.NODE_ENV&&(Number.isInteger(n)?n>i.length-1&&console.error([`MUI: The value provided (${n}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${n} > ${i.length-1}, you need to add the missing values.`].join("\n")):console.error([`MUI: The \`theme.${e}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${e}\` as a number.`].join("\n")));const r=i[n];return t>=0?r:"number"==typeof r?-r:`-${r}`}:"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${e}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function De(t){return Ae(t,"spacing",8,"spacing")}function Le(t,e){return"string"==typeof e||null==e?e:t(e)}function Ie(t,e,n,r){if(!e.includes(n))return null;const i=function(t,e){return n=>t.reduce(((t,r)=>(t[r]=Le(e,n),t)),{})}(Pe(n),r);return _e(t,t[n],i)}function ze(t,e){const n=De(t.theme);return Object.keys(t).map((r=>Ie(t,e,r,n))).reduce(ge,{})}function Re(t){return ze(t,Oe)}function Fe(t){return ze(t,Te)}function $e(...t){const e=t.reduce(((t,e)=>(e.filterProps.forEach((n=>{t[n]=e})),t)),{}),n=t=>Object.keys(t).reduce(((n,r)=>e[r]?ge(n,e[r](t)):n),{});return n.propTypes="production"!==process.env.NODE_ENV?t.reduce(((t,e)=>Object.assign(t,e.propTypes)),{}):{},n.filterProps=t.reduce(((t,e)=>t.concat(e.filterProps)),[]),n}function je(t){return"number"!=typeof t?t:`${t}px solid`}function Be(t,e){return ke({prop:t,themeKey:"borders",transform:e})}Re.propTypes="production"!==process.env.NODE_ENV?Oe.reduce(((t,e)=>(t[e]=ve,t)),{}):{},Re.filterProps=Oe,Fe.propTypes="production"!==process.env.NODE_ENV?Te.reduce(((t,e)=>(t[e]=ve,t)),{}):{},Fe.filterProps=Te,"production"===process.env.NODE_ENV||Ne.reduce(((t,e)=>(t[e]=ve,t)),{});const He=Be("border",je),We=Be("borderTop",je),Ve=Be("borderRight",je),Ye=Be("borderBottom",je),qe=Be("borderLeft",je),Xe=Be("borderColor"),Ue=Be("borderTopColor"),Ze=Be("borderRightColor"),Ge=Be("borderBottomColor"),Ke=Be("borderLeftColor"),Je=Be("outline",je),Qe=Be("outlineColor"),tn=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){const e=Ae(t.theme,"shape.borderRadius",4,"borderRadius"),n=t=>({borderRadius:Le(e,t)});return _e(t,t.borderRadius,n)}return null};tn.propTypes="production"!==process.env.NODE_ENV?{borderRadius:ve}:{},tn.filterProps=["borderRadius"],$e(He,We,Ve,Ye,qe,Xe,Ue,Ze,Ge,Ke,tn,Je,Qe);const en=t=>{if(void 0!==t.gap&&null!==t.gap){const e=Ae(t.theme,"spacing",8,"gap"),n=t=>({gap:Le(e,t)});return _e(t,t.gap,n)}return null};en.propTypes="production"!==process.env.NODE_ENV?{gap:ve}:{},en.filterProps=["gap"];const nn=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){const e=Ae(t.theme,"spacing",8,"columnGap"),n=t=>({columnGap:Le(e,t)});return _e(t,t.columnGap,n)}return null};nn.propTypes="production"!==process.env.NODE_ENV?{columnGap:ve}:{},nn.filterProps=["columnGap"];const rn=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){const e=Ae(t.theme,"spacing",8,"rowGap"),n=t=>({rowGap:Le(e,t)});return _e(t,t.rowGap,n)}return null};rn.propTypes="production"!==process.env.NODE_ENV?{rowGap:ve}:{},rn.filterProps=["rowGap"];function on(t,e){return"grey"===e?e:t}$e(en,nn,rn,ke({prop:"gridColumn"}),ke({prop:"gridRow"}),ke({prop:"gridAutoFlow"}),ke({prop:"gridAutoColumns"}),ke({prop:"gridAutoRows"}),ke({prop:"gridTemplateColumns"}),ke({prop:"gridTemplateRows"}),ke({prop:"gridTemplateAreas"}),ke({prop:"gridArea"}));function an(t){return t<=1&&0!==t?100*t+"%":t}$e(ke({prop:"color",themeKey:"palette",transform:on}),ke({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:on}),ke({prop:"backgroundColor",themeKey:"palette",transform:on}));const sn=ke({prop:"width",transform:an}),ln=t=>{if(void 0!==t.maxWidth&&null!==t.maxWidth){const e=e=>{const n=t.theme?.breakpoints?.values?.[e]||ye[e];return n?"px"!==t.theme?.breakpoints?.unit?{maxWidth:`${n}${t.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:an(e)}};return _e(t,t.maxWidth,e)}return null};ln.filterProps=["maxWidth"];const cn=ke({prop:"minWidth",transform:an}),un=ke({prop:"height",transform:an}),dn=ke({prop:"maxHeight",transform:an}),hn=ke({prop:"minHeight",transform:an});ke({prop:"size",cssProperty:"width",transform:an}),ke({prop:"size",cssProperty:"height",transform:an});$e(sn,ln,cn,un,dn,hn,ke({prop:"boxSizing"}));var pn={border:{themeKey:"borders",transform:je},borderTop:{themeKey:"borders",transform:je},borderRight:{themeKey:"borders",transform:je},borderBottom:{themeKey:"borders",transform:je},borderLeft:{themeKey:"borders",transform:je},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:je},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:tn},color:{themeKey:"palette",transform:on},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:on},backgroundColor:{themeKey:"palette",transform:on},p:{style:Fe},pt:{style:Fe},pr:{style:Fe},pb:{style:Fe},pl:{style:Fe},px:{style:Fe},py:{style:Fe},padding:{style:Fe},paddingTop:{style:Fe},paddingRight:{style:Fe},paddingBottom:{style:Fe},paddingLeft:{style:Fe},paddingX:{style:Fe},paddingY:{style:Fe},paddingInline:{style:Fe},paddingInlineStart:{style:Fe},paddingInlineEnd:{style:Fe},paddingBlock:{style:Fe},paddingBlockStart:{style:Fe},paddingBlockEnd:{style:Fe},m:{style:Re},mt:{style:Re},mr:{style:Re},mb:{style:Re},ml:{style:Re},mx:{style:Re},my:{style:Re},margin:{style:Re},marginTop:{style:Re},marginRight:{style:Re},marginBottom:{style:Re},marginLeft:{style:Re},marginX:{style:Re},marginY:{style:Re},marginInline:{style:Re},marginInlineStart:{style:Re},marginInlineEnd:{style:Re},marginBlock:{style:Re},marginBlockStart:{style:Re},marginBlockEnd:{style:Re},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:en},rowGap:{style:rn},columnGap:{style:nn},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:an},maxWidth:{style:ln},minWidth:{transform:an},height:{transform:an},maxHeight:{transform:an},minHeight:{transform:an},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const fn=function(){function t(t,e,n,r){const i={[t]:e,theme:n},o=r[t];if(!o)return{[t]:e};const{cssProperty:a=t,themeKey:s,transform:l,style:c}=o;if(null==e)return null;if("typography"===s&&"inherit"===e)return{[t]:e};const u=we(n,s)||{};if(c)return c(i);return _e(i,e,(e=>{let n=Se(u,l,e);return e===n&&"string"==typeof e&&(n=Se(u,l,`${t}${"default"===e?"":se(e)}`,e)),!1===a?n:{[a]:n}}))}return function e(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=i.unstable_sxConfig??pn;function a(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const a=function(t={}){const e=t.keys?.reduce(((e,n)=>(e[t.up(n)]={},e)),{});return e||{}}(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(r).forEach((n=>{const a=function(t,e){return"function"==typeof t?t(e):t}(r[n],i);if(null!=a)if("object"==typeof a)if(o[n])l=ge(l,t(n,a,i,o));else{const t=_e({theme:i},a,(t=>({[n]:t})));!function(...t){const e=t.reduce(((t,e)=>t.concat(Object.keys(e))),[]),n=new Set(e);return t.every((t=>n.size===Object.keys(t).length))}(t,a)?l=ge(l,t):l[n]=e({sx:a,theme:i})}else l=ge(l,t(n,a,i,o))})),function(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter((t=>t.startsWith("@container"))).sort(((t,e)=>{const n=/min-width:\s*([0-9.]+)/;return+(t.match(n)?.[1]||0)-+(e.match(n)?.[1]||0)}));return n.length?n.reduce(((t,n)=>{const r=e[n];return delete t[n],t[n]=r,t}),{...e}):e}(i,function(t,e){return t.reduce(((t,e)=>{const n=t[e];return(!n||0===Object.keys(n).length)&&delete t[e],t}),e)}(s,l))}return Array.isArray(r)?r.map(a):a(r)}}();fn.filterProps=["sx"];var mn=fn;function gn(){return gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gn.apply(null,arguments)}var vn=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}(e);try{n.insertRule(t,n.cssRules.length)}catch(t){}}else e.appendChild(document.createTextNode(t));this.ctr++},e.flush=function(){this.tags.forEach((function(t){var e;return null==(e=t.parentNode)?void 0:e.removeChild(t)})),this.tags=[],this.ctr=0},t}(),yn="-ms-",bn="-moz-",xn="-webkit-",_n="comm",wn="rule",Sn="decl",kn="@keyframes",Cn=Math.abs,En=String.fromCharCode,Mn=Object.assign;function Pn(t){return t.trim()}function On(t,e,n){return t.replace(e,n)}function Tn(t,e){return t.indexOf(e)}function Nn(t,e){return 0|t.charCodeAt(e)}function An(t,e,n){return t.slice(e,n)}function Dn(t){return t.length}function Ln(t){return t.length}function In(t,e){return e.push(t),t}var zn=1,Rn=1,Fn=0,$n=0,jn=0,Bn="";function Hn(t,e,n,r,i,o,a){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:zn,column:Rn,length:a,return:""}}function Wn(t,e){return Mn(Hn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Vn(){return jn=$n<Fn?Nn(Bn,$n++):0,Rn++,10===jn&&(Rn=1,zn++),jn}function Yn(){return Nn(Bn,$n)}function qn(){return $n}function Xn(t,e){return An(Bn,t,e)}function Un(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Zn(t){return zn=Rn=1,Fn=Dn(Bn=t),$n=0,[]}function Gn(t){return Bn="",t}function Kn(t){return Pn(Xn($n-1,tr(91===t?t+2:40===t?t+1:t)))}function Jn(t){for(;(jn=Yn())&&jn<33;)Vn();return Un(t)>2||Un(jn)>3?"":" "}function Qn(t,e){for(;--e&&Vn()&&!(jn<48||jn>102||jn>57&&jn<65||jn>70&&jn<97););return Xn(t,qn()+(e<6&&32==Yn()&&32==Vn()))}function tr(t){for(;Vn();)switch(jn){case t:return $n;case 34:case 39:34!==t&&39!==t&&tr(jn);break;case 40:41===t&&tr(t);break;case 92:Vn()}return $n}function er(t,e){for(;Vn()&&t+jn!==57&&(t+jn!==84||47!==Yn()););return"/*"+Xn(e,$n-1)+"*"+En(47===t?t:Vn())}function nr(t){for(;!Un(Yn());)Vn();return Xn(t,$n)}function rr(t){return Gn(ir("",null,null,null,[""],t=Zn(t),0,[0],t))}function ir(t,e,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,f=0,m=1,g=1,v=1,y=0,b="",x=i,_=o,w=r,S=b;g;)switch(f=y,y=Vn()){case 40:if(108!=f&&58==Nn(S,d-1)){-1!=Tn(S+=On(Kn(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:S+=Kn(y);break;case 9:case 10:case 13:case 32:S+=Jn(f);break;case 92:S+=Qn(qn()-1,7);continue;case 47:switch(Yn()){case 42:case 47:In(ar(er(Vn(),qn()),e,n),l);break;default:S+="/"}break;case 123*m:s[c++]=Dn(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=On(S,/\f/g,"")),p>0&&Dn(S)-d&&In(p>32?sr(S+";",r,n,d-1):sr(On(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(In(w=or(S,e,n,c,u,i,s,b,x=[],_=[],d),o),123===y)if(0===u)ir(S,e,w,w,x,o,d,s,_);else switch(99===h&&110===Nn(S,3)?100:h){case 100:case 108:case 109:case 115:ir(t,w,w,r&&In(or(t,w,w,0,0,i,s,b,i,x=[],d),_),i,_,d,s,r?x:_);break;default:ir(S,w,w,w,[""],_,0,s,_)}}c=u=p=0,m=v=1,b=S="",d=a;break;case 58:d=1+Dn(S),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==(jn=$n>0?Nn(Bn,--$n):0,Rn--,10===jn&&(Rn=1,zn--),jn))continue;switch(S+=En(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Dn(S)-1)*v,v=1;break;case 64:45===Yn()&&(S+=Kn(Vn())),h=Yn(),u=d=Dn(b=S+=nr(qn())),y++;break;case 45:45===f&&2==Dn(S)&&(m=0)}}return o}function or(t,e,n,r,i,o,a,s,l,c,u){for(var d=i-1,h=0===i?o:[""],p=Ln(h),f=0,m=0,g=0;f<r;++f)for(var v=0,y=An(t,d+1,d=Cn(m=a[f])),b=t;v<p;++v)(b=Pn(m>0?h[v]+" "+y:On(y,/&\f/g,h[v])))&&(l[g++]=b);return Hn(t,e,n,0===i?wn:s,l,c,u)}function ar(t,e,n){return Hn(t,e,n,_n,En(jn),An(t,2,-2),0)}function sr(t,e,n,r){return Hn(t,e,n,Sn,An(t,0,r),An(t,r+1,-1),r)}function lr(t,e){for(var n="",r=Ln(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function cr(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case Sn:return t.return=t.return||t.value;case _n:return"";case kn:return t.return=t.value+"{"+lr(t.children,r)+"}";case wn:t.value=t.props.join(",")}return Dn(n=lr(t.children,r))?t.return=t.value+"{"+n+"}":""}function ur(t){var e=Ln(t);return function(n,r,i,o){for(var a="",s=0;s<e;s++)a+=t[s](n,r,i,o)||"";return a}}function dr(t){return function(e){e.root||(e=e.return)&&t(e)}}function hr(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}var pr="undefined"!=typeof document,fr=function(t,e,n){for(var r=0,i=0;r=i,i=Yn(),38===r&&12===i&&(e[n]=1),!Un(i);)Vn();return Xn(t,$n)},mr=function(t,e){return Gn(function(t,e){var n=-1,r=44;do{switch(Un(r)){case 0:38===r&&12===Yn()&&(e[n]=1),t[n]+=fr($n-1,e,n);break;case 2:t[n]+=Kn(r);break;case 4:if(44===r){t[++n]=58===Yn()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=En(r)}}while(r=Vn());return t}(Zn(t),e))},gr=new WeakMap,vr=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,r=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||gr.get(n))&&!r){gr.set(t,!0);for(var i=[],o=mr(e,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)t.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},yr=function(t){if("decl"===t.type){var e=t.value;108===e.charCodeAt(0)&&98===e.charCodeAt(2)&&(t.return="",t.value="")}};function br(t,e){switch(function(t,e){return 45^Nn(t,0)?(((e<<2^Nn(t,0))<<2^Nn(t,1))<<2^Nn(t,2))<<2^Nn(t,3):0}(t,e)){case 5103:return xn+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return xn+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return xn+t+bn+t+yn+t+t;case 6828:case 4268:return xn+t+yn+t+t;case 6165:return xn+t+yn+"flex-"+t+t;case 5187:return xn+t+On(t,/(\w+).+(:[^]+)/,xn+"box-$1$2"+yn+"flex-$1$2")+t;case 5443:return xn+t+yn+"flex-item-"+On(t,/flex-|-self/,"")+t;case 4675:return xn+t+yn+"flex-line-pack"+On(t,/align-content|flex-|-self/,"")+t;case 5548:return xn+t+yn+On(t,"shrink","negative")+t;case 5292:return xn+t+yn+On(t,"basis","preferred-size")+t;case 6060:return xn+"box-"+On(t,"-grow","")+xn+t+yn+On(t,"grow","positive")+t;case 4554:return xn+On(t,/([^-])(transform)/g,"$1"+xn+"$2")+t;case 6187:return On(On(On(t,/(zoom-|grab)/,xn+"$1"),/(image-set)/,xn+"$1"),t,"")+t;case 5495:case 3959:return On(t,/(image-set\([^]*)/,xn+"$1$`$1");case 4968:return On(On(t,/(.+:)(flex-)?(.*)/,xn+"box-pack:$3"+yn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xn+t+t;case 4095:case 3583:case 4068:case 2532:return On(t,/(.+)-inline(.+)/,xn+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Dn(t)-1-e>6)switch(Nn(t,e+1)){case 109:if(45!==Nn(t,e+4))break;case 102:return On(t,/(.+:)(.+)-([^]+)/,"$1"+xn+"$2-$3$1"+bn+(108==Nn(t,e+3)?"$3":"$2-$3"))+t;case 115:return~Tn(t,"stretch")?br(On(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==Nn(t,e+1))break;case 6444:switch(Nn(t,Dn(t)-3-(~Tn(t,"!important")&&10))){case 107:return On(t,":",":"+xn)+t;case 101:return On(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xn+(45===Nn(t,14)?"inline-":"")+"box$3$1"+xn+"$2$3$1"+yn+"$2box$3")+t}break;case 5936:switch(Nn(t,e+11)){case 114:return xn+t+yn+On(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return xn+t+yn+On(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return xn+t+yn+On(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return xn+t+yn+t+t}return t}var xr,_r,wr,Sr,kr=pr?void 0:(xr=function(){return hr((function(){return{}}))},_r=new WeakMap,function(t){if(_r.has(t))return _r.get(t);var e=xr(t);return _r.set(t,e),e}),Cr=[function(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case Sn:t.return=br(t.value,t.length);break;case kn:return lr([Wn(t,{value:On(t.value,"@","@"+xn)})],r);case wn:if(t.length)return function(t,e){return t.map(e).join("")}(t.props,(function(e){switch(function(t,e){return(t=e.exec(t))?t[0]:t}(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return lr([Wn(t,{props:[On(e,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return lr([Wn(t,{props:[On(e,/:(plac\w+)/,":"+xn+"input-$1")]}),Wn(t,{props:[On(e,/:(plac\w+)/,":-moz-$1")]}),Wn(t,{props:[On(e,/:(plac\w+)/,yn+"input-$1")]})],r)}return""}))}}],Er=function(t){var e=t.key;if(pr&&"css"===e){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(t){-1!==t.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(t),t.setAttribute("data-s",""))}))}var r,i,o=t.stylisPlugins||Cr,a={},s=[];pr&&(r=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),(function(t){for(var e=t.getAttribute("data-emotion").split(" "),n=1;n<e.length;n++)a[e[n]]=!0;s.push(t)})));var l=[vr,yr];if(kr){var c=[cr],u=ur(l.concat(o,c)),d=kr(o)(e),h=function(t,e){var n=e.name;return void 0===d[n]&&(d[n]=function(t){return lr(rr(t),u)}(t?t+"{"+e.styles+"}":e.styles)),d[n]};i=function(t,e,n,r){var i=e.name,o=h(t,e);return void 0===g.compat?(r&&(g.inserted[i]=!0),o):r?void(g.inserted[i]=o):o}}else{var p,f=[cr,dr((function(t){p.insert(t)}))],m=ur(l.concat(o,f));i=function(t,e,n,r){p=n,function(t){lr(rr(t),m)}(t?t+"{"+e.styles+"}":e.styles),r&&(g.inserted[e.name]=!0)}}var g={key:e,sheet:new vn({key:e,container:r,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:i};return g.sheet.hydrate(s),g};!function(){if(Sr)return wr;Sr=1;var t=$t(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(n){return t.isMemo(n)?r:i[n.$$typeof]||e}i[t.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[t.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;wr=function t(e,r,i){if("string"!=typeof r){if(d){var h=u(r);h&&h!==d&&t(e,h,i)}var p=s(r);l&&(p=p.concat(l(r)));for(var f=o(e),m=o(r),g=0;g<p.length;++g){var v=p[g];if(!(n[v]||i&&i[v]||m&&m[v]||f&&f[v])){var y=c(r,v);try{a(e,v,y)}catch(t){}}}}return e}}();var Mr="undefined"!=typeof document;var Pr=function(t,e,n){var r=t.key+"-"+e.name;(!1===n||!1===Mr&&void 0!==t.compat)&&void 0===t.registered[r]&&(t.registered[r]=e.styles)};var Or={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Tr=/[A-Z]|^ms/g,Nr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ar=function(t){return 45===t.charCodeAt(1)},Dr=function(t){return null!=t&&"boolean"!=typeof t},Lr=hr((function(t){return Ar(t)?t:t.replace(Tr,"-$&").toLowerCase()})),Ir=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(Nr,(function(t,e,n){return Rr={name:e,styles:n,next:Rr},e}))}return 1===Or[t]||Ar(t)||"number"!=typeof e||0===e?e:e+"px"};function zr(t,e,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Rr={name:i.name,styles:i.styles,next:Rr},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Rr={name:a.name,styles:a.styles,next:Rr},a=a.next;return o.styles+";"}return function(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=zr(t,e,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=e&&void 0!==e[s]?r+=o+"{"+e[s]+"}":Dr(s)&&(r+=Lr(o)+":"+Ir(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=e&&void 0!==e[a[0]]){var l=zr(t,e,a);switch(o){case"animation":case"animationName":r+=Lr(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Dr(a[c])&&(r+=Lr(o)+":"+Ir(o,a[c])+";")}return r}(t,e,n);case"function":if(void 0!==t){var s=Rr,l=n(t);return Rr=s,zr(t,e,l)}}var c=n;if(null==e)return c;var u=e[c];return void 0!==u?u:c}var Rr,Fr=/label:\s*([^\s;{]+)\s*(;|$)/g;function $r(t,e,n){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var r=!0,i="";Rr=void 0;var o=t[0];null==o||void 0===o.raw?(r=!1,i+=zr(n,e,o)):i+=o[0];for(var a=1;a<t.length;a++){if(i+=zr(n,e,t[a]),r)i+=o[a]}Fr.lastIndex=0;for(var s,l="";null!==(s=Fr.exec(i));)l+="-"+s[1];var c=function(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Rr}}var jr="undefined"!=typeof document,Br=function(t){return t()},Hr=!!r.useInsertionEffect&&r.useInsertionEffect,Wr=jr&&Hr||Br,Vr="undefined"!=typeof document,Yr=r.createContext("undefined"!=typeof HTMLElement?Er({key:"css"}):null);Yr.Provider;var qr=function(t){return h((function(e,n){var r=p(Yr);return t(e,r,n)}))};Vr||(qr=function(t){return function(e){var n=p(Yr);return null===n?(n=Er({key:"css"}),r.createElement(Yr.Provider,{value:n},t(e,n))):t(e,n)}});var Xr=r.createContext({}),Ur=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Zr="undefined"!=typeof document,Gr=hr((function(t){return Ur.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91})),Kr=function(t){return"theme"!==t},Jr=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?Gr:Kr},Qr=function(t,e,n){var r;if(e){var i=e.shouldForwardProp;r=t.__emotion_forwardProp&&i?function(e){return t.__emotion_forwardProp(e)&&i(e)}:i}return"function"!=typeof r&&n&&(r=t.__emotion_forwardProp),r},ti=function(t){var e=t.cache,n=t.serialized,i=t.isStringTag;Pr(e,n,i);var o=Wr((function(){return function(t,e,n){Pr(t,e,n);var r=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var i="",o=e;do{var a=t.insert(e===o?"."+r:"",o,t.sheet,!0);Mr||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!Mr&&0!==i.length)return i}}(e,n,i)}));if(!Zr&&void 0!==o){for(var a,s=n.name,l=n.next;void 0!==l;)s+=" "+l.name,l=l.next;return r.createElement("style",((a={})["data-emotion"]=e.key+" "+s,a.dangerouslySetInnerHTML={__html:o},a.nonce=e.sheet.nonce,a))}return null},ei=function t(e,n){var i,o,a=e.__emotion_real===e,s=a&&e.__emotion_base||e;void 0!==n&&(i=n.label,o=n.target);var l=Qr(e,n,a),c=l||Jr(s),u=!c("as");return function(){var d=arguments,h=a&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==i&&h.push("label:"+i+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{var p=d[0];h.push(p[0]);for(var f=d.length,m=1;m<f;m++)h.push(d[m],p[m])}var g=qr((function(t,e,n){var i=u&&t.as||s,a="",d=[],p=t;if(null==t.theme){for(var f in p={},t)p[f]=t[f];p.theme=r.useContext(Xr)}"string"==typeof t.className?a=function(t,e,n){var r="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]+";"):n&&(r+=n+" ")})),r}(e.registered,d,t.className):null!=t.className&&(a=t.className+" ");var m=$r(h.concat(d),e.registered,p);a+=e.key+"-"+m.name,void 0!==o&&(a+=" "+o);var g=u&&void 0===l?Jr(i):c,v={};for(var y in t)u&&"as"===y||g(y)&&(v[y]=t[y]);return v.className=a,n&&(v.ref=n),r.createElement(r.Fragment,null,r.createElement(ti,{cache:e,serialized:m,isStringTag:"string"==typeof i}),r.createElement(i,v))}));return g.displayName=void 0!==i?i:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",g.defaultProps=e.defaultProps,g.__emotion_real=g,g.__emotion_base=s,g.__emotion_styles=h,g.__emotion_forwardProp=l,Object.defineProperty(g,"toString",{value:function(){return"."+o}}),g.withComponent=function(e,r){return t(e,gn({},n,r,{shouldForwardProp:Qr(g,r,!0)})).apply(void 0,h)},g}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(t){ei[t]=ei(t)}));const ni=[];function ri(t){return ni[0]=t,$r(ni)}function ii(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=t,o=(t=>{const e=Object.keys(t).map((e=>({key:e,val:t[e]})))||[];return e.sort(((t,e)=>t.val-e.val)),e.reduce(((t,e)=>({...t,[e.key]:e.val})),{})})(e),a=Object.keys(o);function s(t){return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n})`}function l(t){return`@media (max-width:${("number"==typeof e[t]?e[t]:t)-r/100}${n})`}function c(t,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==o&&"number"==typeof e[a[o]]?e[a[o]]:i)-r/100}${n})`}return{keys:a,values:o,up:s,down:l,between:c,only:function(t){return a.indexOf(t)+1<a.length?c(t,a[a.indexOf(t)+1]):s(t)},not:function(t){const e=a.indexOf(t);return 0===e?s(a[1]):e===a.length-1?l(a[e]):c(t,a[a.indexOf(t)+1]).replace("@media","@media not all and")},unit:n,...i}}var oi={borderRadius:4};function ai(t=8,e=De({spacing:t})){if(t.mui)return t;const n=(...t)=>{"production"!==process.env.NODE_ENV&&(t.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${t.length}`));return(0===t.length?[1]:t).map((t=>{const n=e(t);return"number"==typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}function si(t,e){const n=this;if(n.vars){if(!n.colorSchemes?.[t]||"function"!=typeof n.getColorSchemeSelector)return{};let r=n.getColorSchemeSelector(t);return"&"===r?e:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:e})}return n.palette.mode===t?e:{}}function li(t={},...e){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...a}=t;let s=mt({breakpoints:ii(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:ai(i),shape:{...oi,...o}},a);return s=function(t){const e=(t,e)=>t.replace("@media",e?`@container ${e}`:"@container");function n(n,r){n.up=(...n)=>e(t.breakpoints.up(...n),r),n.down=(...n)=>e(t.breakpoints.down(...n),r),n.between=(...n)=>e(t.breakpoints.between(...n),r),n.only=(...n)=>e(t.breakpoints.only(...n),r),n.not=(...n)=>{const i=e(t.breakpoints.not(...n),r);return i.includes("not all and")?i.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):i}}const r={},i=t=>(n(r,t),r);return n(i),{...t,containerQueries:i}}(s),s.applyStyles=si,s=e.reduce(((t,e)=>mt(t,e)),s),s.unstable_sxConfig={...pn,...a?.unstable_sxConfig},s.unstable_sx=function(t){return mn({sx:t,theme:this})},s}function ci(t){const{variants:e,...n}=t,r={variants:e,style:ri(n),isProcessed:!0};return r.style===n||e&&e.forEach((t=>{"function"!=typeof t.style&&(t.style=ri(t.style))})),r}const ui=li();function di(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}function hi(t){return t?(e,n)=>n[t]:null}function pi(t,e){const n="function"==typeof e?e(t):e;if(Array.isArray(n))return n.flatMap((e=>pi(t,e)));if(Array.isArray(n?.variants)){let e;if(n.isProcessed)e=n.style;else{const{variants:t,...r}=n;e=r}return fi(t,n.variants,[e])}return n?.isProcessed?n.style:n}function fi(t,e,n=[]){let r;t:for(let i=0;i<e.length;i+=1){const o=e[i];if("function"==typeof o.props){if(r??={...t,...t.ownerState,ownerState:t.ownerState},!o.props(r))continue}else for(const e in o.props)if(t[e]!==o.props[e]&&t.ownerState?.[e]!==o.props[e])continue t;"function"==typeof o.style?(r??={...t,...t.ownerState,ownerState:t.ownerState},n.push(o.style(r))):n.push(o.style)}return n}function mi(t,e){let n;return"production"!==process.env.NODE_ENV&&t&&(n=`${t}-${gi(e||"Root")}`),n}function gi(t){return t?t.charAt(0).toLowerCase()+t.slice(1):t}function vi(t,e=0,n=1){return"production"!==process.env.NODE_ENV&&(t<e||t>n)&&console.error(`MUI: The value provided ${t} is out of range [${e}, ${n}].`),function(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}(t,e,n)}function yi(t){if(t.type)return t;if("#"===t.charAt(0))return yi(function(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&1===n[0].length&&(n=n.map((t=>t+t))),"production"!==process.env.NODE_ENV&&t.length!==t.trim().length&&console.error(`MUI: The color: "${t}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${4===n.length?"a":""}(${n.map(((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3)).join(", ")})`:""}(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${t}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ut(9,t));let r,i=t.substring(e+1,t.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${r}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ut(10,r))}else i=i.split(",");return i=i.map((t=>parseFloat(t))),{type:n,values:i,colorSpace:r}}const bi=(t,e)=>{try{return(t=>{const e=yi(t);return e.values.slice(0,3).map(((t,n)=>e.type.includes("hsl")&&0!==n?`${t}%`:t)).join(" ")})(t)}catch(n){return e&&"production"!==process.env.NODE_ENV&&console.warn(e),t}};function xi(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map(((t,e)=>e<3?parseInt(t,10):t)):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=e.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${e}(${r})`}function _i(t){t=yi(t);const{values:e}=t,n=e[0],r=e[1]/100,i=e[2]/100,o=r*Math.min(i,1-i),a=(t,e=(t+n/30)%12)=>i-o*Math.max(Math.min(e-3,9-e,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===t.type&&(s+="a",l.push(e[3])),xi({type:s,values:l})}function wi(t){let e="hsl"===(t=yi(t)).type||"hsla"===t.type?yi(_i(t)).values:t.values;return e=e.map((e=>("color"!==t.type&&(e/=255),e<=.03928?e/12.92:((e+.055)/1.055)**2.4))),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Si(t,e){const n=wi(t),r=wi(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ki(t,e,n){try{return function(t,e){return t=yi(t),e=vi(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),"color"===t.type?t.values[3]=`/${e}`:t.values[3]=e,xi(t)}(t,e)}catch(e){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),t}}function Ci(t,e){if(t=yi(t),e=vi(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return xi(t)}function Ei(t,e,n){try{return Ci(t,e)}catch(e){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),t}}function Mi(t,e){if(t=yi(t),e=vi(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return xi(t)}function Pi(t,e,n){try{return Mi(t,e)}catch(e){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),t}}function Oi(t,e,n){try{return function(t,e=.15){return wi(t)>.5?Ci(t,e):Mi(t,e)}(t,e)}catch(e){return n&&"production"!==process.env.NODE_ENV&&console.warn(n),t}}const Ti=r.createContext(void 0);function Ni({props:t,name:e}){return function(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const i=e.components[n];return i.defaultProps?le(i.defaultProps,r):i.styleOverrides||i.variants?r:le(i,r)}({props:t,name:e,theme:{components:r.useContext(Ti)}})}"production"!==process.env.NODE_ENV&&(Xt.node,Xt.object);const Ai={theme:void 0};function Di(t=""){function e(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${r}`:`, var(--${t?`${t}-`:""}${r}${e(...n.slice(1))})`}return(n,...r)=>`var(--${t?`${t}-`:""}${n}${e(...r)})`}const Li=(t,e,n,r=[])=>{let i=t;e.forEach(((t,o)=>{o===e.length-1?Array.isArray(i)?i[Number(t)]=n:i&&"object"==typeof i&&(i[t]=n):i&&"object"==typeof i&&(i[t]||(i[t]=r.includes(t)?[]:{}),i=i[t])}))};function Ii(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},i={},o={},a={};return((t,e,n)=>{!function t(r,i=[],o=[]){Object.entries(r).forEach((([r,a])=>{(!n||n&&!n([...i,r]))&&null!=a&&("object"==typeof a&&Object.keys(a).length>0?t(a,[...i,r],Array.isArray(a)?[...o,r]:o):e([...i,r],a,o))}))}(t)})(t,((t,e,s)=>{if(!("string"!=typeof e&&"number"!=typeof e||r&&r(t,e))){const r=`--${n?`${n}-`:""}${t.join("-")}`,l=((t,e)=>{if("number"==typeof e)return["lineHeight","fontWeight","opacity","zIndex"].some((e=>t.includes(e)))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`;return e})(t,e);Object.assign(i,{[r]:l}),Li(o,t,`var(${r})`,s),Li(a,t,`var(${r}, ${l})`,s)}}),(t=>"vars"===t[0])),{css:i,vars:o,varsWithDefaults:a}}var zi={black:"#000",white:"#fff"};var Ri={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Fi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var $i={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var ji={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Bi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Hi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Wi={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Vi(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:zi.white,default:zi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Yi=Vi();function qi(){return{text:{primary:zi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:zi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Xi=qi();function Ui(t,e,n,r){const i=r.light||r,o=r.dark||1.5*r;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=Mi(t.main,i):"dark"===e&&(t.dark=Ci(t.main,o)))}function Zi(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=t,o=t.primary||function(t="light"){return"dark"===t?{main:Bi[200],light:Bi[50],dark:Bi[400]}:{main:Bi[700],light:Bi[400],dark:Bi[800]}}(e),a=t.secondary||function(t="light"){return"dark"===t?{main:Fi[200],light:Fi[50],dark:Fi[400]}:{main:Fi[500],light:Fi[300],dark:Fi[700]}}(e),s=t.error||function(t="light"){return"dark"===t?{main:$i[500],light:$i[300],dark:$i[700]}:{main:$i[700],light:$i[400],dark:$i[800]}}(e),l=t.info||function(t="light"){return"dark"===t?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[700],light:Hi[500],dark:Hi[900]}}(e),c=t.success||function(t="light"){return"dark"===t?{main:Wi[400],light:Wi[300],dark:Wi[700]}:{main:Wi[800],light:Wi[500],dark:Wi[900]}}(e),u=t.warning||function(t="light"){return"dark"===t?{main:ji[400],light:ji[300],dark:ji[700]}:{main:"#ed6c02",light:ji[500],dark:ji[900]}}(e);function d(t){const e=Si(t,Xi.text.primary)>=n?Xi.text.primary:Yi.text.primary;if("production"!==process.env.NODE_ENV){const n=Si(t,e);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${e} on ${t}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join("\n"))}return e}const h=({color:t,name:e,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(t={...t}).main&&t[n]&&(t.main=t[n]),!t.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${e?` (${e})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`:Ut(11,e?` (${e})`:"",n));if("string"!=typeof t.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${e?` (${e})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(t.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:Ut(12,e?` (${e})`:"",JSON.stringify(t.main)));return Ui(t,"light",i,r),Ui(t,"dark",o,r),t.contrastText||(t.contrastText=d(t.main)),t};let p;"light"===e?p=Vi():"dark"===e&&(p=qi()),"production"!==process.env.NODE_ENV&&(p||console.error(`MUI: The palette mode \`${e}\` is not supported.`));return mt({common:{...zi},mode:e,primary:h({color:o,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:u,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:c,name:"success"}),grey:Ri,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r,...p},i)}function Gi(t){const e={};return Object.entries(t).forEach((t=>{const[n,r]=t;"object"==typeof r&&(e[n]=`${r.fontStyle?`${r.fontStyle} `:""}${r.fontVariant?`${r.fontVariant} `:""}${r.fontWeight?`${r.fontWeight} `:""}${r.fontStretch?`${r.fontStretch} `:""}${r.fontSize||""}${r.lineHeight?`/${r.lineHeight} `:""}${r.fontFamily||""}`)})),e}const Ki={textTransform:"uppercase"},Ji='"Roboto", "Helvetica", "Arial", sans-serif';function Qi(t,e){const{fontFamily:n=Ji,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof e?e(t):e;"production"!==process.env.NODE_ENV&&("number"!=typeof r&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof l&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=r/14,p=u||(t=>t/l*h+"rem"),f=(t,e,r,i,o)=>{return{fontFamily:n,fontWeight:t,fontSize:p(e),lineHeight:r,...n===Ji?{letterSpacing:(a=i/e,Math.round(1e5*a)/1e5)+"em"}:{},...o,...c};var a},m={h1:f(i,96,1.167,-1.5),h2:f(i,60,1.2,-.5),h3:f(o,48,1.167,0),h4:f(o,34,1.235,.25),h5:f(o,24,1.334,0),h6:f(a,20,1.6,.15),subtitle1:f(o,16,1.75,.15),subtitle2:f(a,14,1.57,.1),body1:f(o,16,1.5,.15),body2:f(o,14,1.43,.15),button:f(a,14,1.75,.4,Ki),caption:f(o,12,1.66,.4),overline:f(o,12,2.66,1,Ki),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mt({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function to(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,0.2)`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,0.14)`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,0.12)`].join(",")}var eo=["none",to(0,2,1,-1,0,1,1,0,0,1,3,0),to(0,3,1,-2,0,2,2,0,0,1,5,0),to(0,3,3,-2,0,3,4,0,0,1,8,0),to(0,2,4,-1,0,4,5,0,0,1,10,0),to(0,3,5,-1,0,5,8,0,0,1,14,0),to(0,3,5,-1,0,6,10,0,0,1,18,0),to(0,4,5,-2,0,7,10,1,0,2,16,1),to(0,5,5,-3,0,8,10,1,0,3,14,2),to(0,5,6,-3,0,9,12,1,0,3,16,2),to(0,6,6,-3,0,10,14,1,0,4,18,3),to(0,6,7,-4,0,11,15,1,0,4,20,3),to(0,7,8,-4,0,12,17,2,0,5,22,4),to(0,7,8,-4,0,13,19,2,0,5,24,4),to(0,7,9,-4,0,14,21,2,0,5,26,4),to(0,8,9,-5,0,15,22,2,0,6,28,5),to(0,8,10,-5,0,16,24,2,0,6,30,5),to(0,8,11,-5,0,17,26,2,0,6,32,5),to(0,9,11,-5,0,18,28,2,0,7,34,6),to(0,9,12,-6,0,19,29,2,0,7,36,6),to(0,10,13,-6,0,20,31,3,0,8,38,7),to(0,10,13,-6,0,21,33,3,0,8,40,7),to(0,10,14,-6,0,22,35,3,0,8,42,7),to(0,11,14,-7,0,23,36,3,0,9,44,8),to(0,11,15,-7,0,24,38,3,0,9,46,8)];const no={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ro={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function io(t){return`${Math.round(t)}ms`}function oo(t){if(!t)return 0;const e=t/36;return Math.min(Math.round(10*(4+15*e**.25+e/5)),3e3)}function ao(t){const e={...no,...t.easing},n={...ro,...t.duration};return{getAutoHeightDuration:oo,create:(t=["all"],r={})=>{const{duration:i=n.standard,easing:o=e.easeInOut,delay:a=0,...s}=r;if("production"!==process.env.NODE_ENV){const e=t=>"string"==typeof t,n=t=>!Number.isNaN(parseFloat(t));e(t)||Array.isArray(t)||console.error('MUI: Argument "props" must be a string or Array.'),n(i)||e(i)||console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),e(o)||console.error('MUI: Argument "easing" must be a string.'),n(a)||e(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof r&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(t)?t:[t]).map((t=>`${t} ${"string"==typeof i?i:io(i)} ${o} ${"string"==typeof a?a:io(a)}`)).join(",")},...t,easing:e,duration:n}}var so={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function lo(t={}){const e={...t};return function t(e){const n=Object.entries(e);for(let i=0;i<n.length;i++){const[o,a]=n[i];!pt(r=a)&&void 0!==r&&"string"!=typeof r&&"boolean"!=typeof r&&"number"!=typeof r&&!Array.isArray(r)||o.startsWith("unstable_")?delete e[o]:pt(a)&&(e[o]={...a},t(e[o]))}var r}(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(e,null,2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`}function co(t={},...e){const{breakpoints:n,mixins:r={},spacing:i,palette:o={},transitions:a={},typography:s={},shape:l,...c}=t;if(t.vars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Ut(20));const u=Zi(o),d=li(t);let h=mt(d,{mixins:(p=d.breakpoints,f=r,{toolbar:{minHeight:56,[p.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[p.up("sm")]:{minHeight:64}},...f}),palette:u,shadows:eo.slice(),typography:Qi(u,s),transitions:ao(a),zIndex:{...so}});var p,f;if(h=mt(h,c),h=e.reduce(((t,e)=>mt(t,e)),h),"production"!==process.env.NODE_ENV){const t=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],e=(e,n)=>{let r;for(r in e){const i=e[r];if(t.includes(r)&&Object.keys(i).length>0){if("production"!==process.env.NODE_ENV){const t=pe("",r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,"You can not override it like this: ",JSON.stringify(e,null,2),"",`Instead, you need to use the '&.${t}' syntax:`,JSON.stringify({root:{[`&.${t}`]:i}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}e[r]={}}}};Object.keys(h.components).forEach((t=>{const n=h.components[t].styleOverrides;n&&t.startsWith("Mui")&&e(n,t)}))}return h.unstable_sxConfig={...pn,...c?.unstable_sxConfig},h.unstable_sx=function(t){return mn({sx:t,theme:this})},h.toRuntimeSource=lo,h}const uo=[...Array(25)].map(((t,e)=>{if(0===e)return"none";const n=function(t){let e;return e=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,Math.round(10*e)/1e3}(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function ho(t){return{inputPlaceholder:"dark"===t?.5:.42,inputUnderline:"dark"===t?.7:.42,switchTrackDisabled:"dark"===t?.2:.12,switchTrack:"dark"===t?.3:.38}}function po(t){return"dark"===t?uo:[]}function fo(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||"palette"===t[0]&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var mo=t=>[...[...Array(25)].map(((e,n)=>`--${t?`${t}-`:""}overlays-${n}`)),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],go=t=>(e,n)=>{const r=t.rootSelector||":root",i=t.colorSchemeSelector;let o=i;if("class"===i&&(o=".%s"),"data"===i&&(o="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),t.defaultColorScheme===e){if("dark"===e){const i={};return mo(t.cssVarPrefix).forEach((t=>{i[t]=n[t],delete n[t]})),"media"===o?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:o?{[o.replace("%s",e)]:i,[`${r}, ${o.replace("%s",e)}`]:n}:{[r]:{...n,...i}}}if(o&&"media"!==o)return`${r}, ${o.replace("%s",String(e))}`}else if(e){if("media"===o)return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(o)return o.replace("%s",String(e))}return r};function vo(t,e,n){!t[e]&&n&&(t[e]=n)}function yo(t){return"string"==typeof t&&t.startsWith("hsl")?_i(t):t}function bo(t,e){`${e}Channel`in t||(t[`${e}Channel`]=bi(yo(t[e]),`MUI: Can't create \`palette.${e}Channel\` because \`palette.${e}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().\nTo suppress this warning, you need to explicitly provide the \`palette.${e}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}const xo=t=>{try{return t()}catch(t){}};function _o(t,e,n,r){if(!e)return;e=!0===e?{}:e;const i="dark"===r?"dark":"light";if(!n)return void(t[r]=function(t){const{palette:e={mode:"light"},opacity:n,overlays:r,...i}=t,o=Zi(e);return{palette:o,opacity:{...ho(o.mode),...n},overlays:r||po(o.mode),...i}}({...e,palette:{mode:i,...e?.palette}}));const{palette:o,...a}=co({...n,palette:{mode:i,...e?.palette}});return t[r]={...e,palette:o,opacity:{...ho(i),...e?.opacity},overlays:e?.overlays||po(i)},a}function wo(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:a=fo,colorSchemeSelector:s=(n.light&&n.dark?"media":void 0),rootSelector:l=":root",...c}=t,u=Object.keys(n)[0],d=r||(n.light&&"light"!==u?"light":u),h=((t="mui")=>Di(t))(o),{[d]:p,light:f,dark:m,...g}=n,v={...g};let y=p;if(("dark"===d&&!("dark"in n)||"light"===d&&!("light"in n))&&(y=!0),!y)throw new Error("production"!==process.env.NODE_ENV?`MUI: The \`colorSchemes.${d}\` option is either missing or invalid.`:Ut(21,d));const b=_o(v,y,c,d);f&&!v.light&&_o(v,f,void 0,"light"),m&&!v.dark&&_o(v,m,void 0,"dark");let x={defaultColorScheme:d,...b,cssVarPrefix:o,colorSchemeSelector:s,rootSelector:l,getCssVar:h,colorSchemes:v,font:{...Gi(b.typography),...b.font},spacing:(_=c.spacing,"number"==typeof _?`${_}px`:"string"==typeof _||"function"==typeof _||Array.isArray(_)?_:"8px")};var _;Object.keys(x.colorSchemes).forEach((t=>{const e=x.colorSchemes[t].palette,n=t=>{const n=t.split("-"),r=n[1],i=n[2];return h(t,e[r][i])};if("light"===e.mode&&(vo(e.common,"background","#fff"),vo(e.common,"onBackground","#000")),"dark"===e.mode&&(vo(e.common,"background","#000"),vo(e.common,"onBackground","#fff")),function(t,e){e.forEach((e=>{t[e]||(t[e]={})}))}(e,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===e.mode){vo(e.Alert,"errorColor",Ei(e.error.light,.6)),vo(e.Alert,"infoColor",Ei(e.info.light,.6)),vo(e.Alert,"successColor",Ei(e.success.light,.6)),vo(e.Alert,"warningColor",Ei(e.warning.light,.6)),vo(e.Alert,"errorFilledBg",n("palette-error-main")),vo(e.Alert,"infoFilledBg",n("palette-info-main")),vo(e.Alert,"successFilledBg",n("palette-success-main")),vo(e.Alert,"warningFilledBg",n("palette-warning-main")),vo(e.Alert,"errorFilledColor",xo((()=>e.getContrastText(e.error.main)))),vo(e.Alert,"infoFilledColor",xo((()=>e.getContrastText(e.info.main)))),vo(e.Alert,"successFilledColor",xo((()=>e.getContrastText(e.success.main)))),vo(e.Alert,"warningFilledColor",xo((()=>e.getContrastText(e.warning.main)))),vo(e.Alert,"errorStandardBg",Pi(e.error.light,.9)),vo(e.Alert,"infoStandardBg",Pi(e.info.light,.9)),vo(e.Alert,"successStandardBg",Pi(e.success.light,.9)),vo(e.Alert,"warningStandardBg",Pi(e.warning.light,.9)),vo(e.Alert,"errorIconColor",n("palette-error-main")),vo(e.Alert,"infoIconColor",n("palette-info-main")),vo(e.Alert,"successIconColor",n("palette-success-main")),vo(e.Alert,"warningIconColor",n("palette-warning-main")),vo(e.AppBar,"defaultBg",n("palette-grey-100")),vo(e.Avatar,"defaultBg",n("palette-grey-400")),vo(e.Button,"inheritContainedBg",n("palette-grey-300")),vo(e.Button,"inheritContainedHoverBg",n("palette-grey-A100")),vo(e.Chip,"defaultBorder",n("palette-grey-400")),vo(e.Chip,"defaultAvatarColor",n("palette-grey-700")),vo(e.Chip,"defaultIconColor",n("palette-grey-700")),vo(e.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),vo(e.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),vo(e.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),vo(e.LinearProgress,"primaryBg",Pi(e.primary.main,.62)),vo(e.LinearProgress,"secondaryBg",Pi(e.secondary.main,.62)),vo(e.LinearProgress,"errorBg",Pi(e.error.main,.62)),vo(e.LinearProgress,"infoBg",Pi(e.info.main,.62)),vo(e.LinearProgress,"successBg",Pi(e.success.main,.62)),vo(e.LinearProgress,"warningBg",Pi(e.warning.main,.62)),vo(e.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.11)`),vo(e.Slider,"primaryTrack",Pi(e.primary.main,.62)),vo(e.Slider,"secondaryTrack",Pi(e.secondary.main,.62)),vo(e.Slider,"errorTrack",Pi(e.error.main,.62)),vo(e.Slider,"infoTrack",Pi(e.info.main,.62)),vo(e.Slider,"successTrack",Pi(e.success.main,.62)),vo(e.Slider,"warningTrack",Pi(e.warning.main,.62));const t=Oi(e.background.default,.8);vo(e.SnackbarContent,"bg",t),vo(e.SnackbarContent,"color",xo((()=>e.getContrastText(t)))),vo(e.SpeedDialAction,"fabHoverBg",Oi(e.background.paper,.15)),vo(e.StepConnector,"border",n("palette-grey-400")),vo(e.StepContent,"border",n("palette-grey-400")),vo(e.Switch,"defaultColor",n("palette-common-white")),vo(e.Switch,"defaultDisabledColor",n("palette-grey-100")),vo(e.Switch,"primaryDisabledColor",Pi(e.primary.main,.62)),vo(e.Switch,"secondaryDisabledColor",Pi(e.secondary.main,.62)),vo(e.Switch,"errorDisabledColor",Pi(e.error.main,.62)),vo(e.Switch,"infoDisabledColor",Pi(e.info.main,.62)),vo(e.Switch,"successDisabledColor",Pi(e.success.main,.62)),vo(e.Switch,"warningDisabledColor",Pi(e.warning.main,.62)),vo(e.TableCell,"border",Pi(ki(e.divider,1),.88)),vo(e.Tooltip,"bg",ki(e.grey[700],.92))}if("dark"===e.mode){vo(e.Alert,"errorColor",Pi(e.error.light,.6)),vo(e.Alert,"infoColor",Pi(e.info.light,.6)),vo(e.Alert,"successColor",Pi(e.success.light,.6)),vo(e.Alert,"warningColor",Pi(e.warning.light,.6)),vo(e.Alert,"errorFilledBg",n("palette-error-dark")),vo(e.Alert,"infoFilledBg",n("palette-info-dark")),vo(e.Alert,"successFilledBg",n("palette-success-dark")),vo(e.Alert,"warningFilledBg",n("palette-warning-dark")),vo(e.Alert,"errorFilledColor",xo((()=>e.getContrastText(e.error.dark)))),vo(e.Alert,"infoFilledColor",xo((()=>e.getContrastText(e.info.dark)))),vo(e.Alert,"successFilledColor",xo((()=>e.getContrastText(e.success.dark)))),vo(e.Alert,"warningFilledColor",xo((()=>e.getContrastText(e.warning.dark)))),vo(e.Alert,"errorStandardBg",Ei(e.error.light,.9)),vo(e.Alert,"infoStandardBg",Ei(e.info.light,.9)),vo(e.Alert,"successStandardBg",Ei(e.success.light,.9)),vo(e.Alert,"warningStandardBg",Ei(e.warning.light,.9)),vo(e.Alert,"errorIconColor",n("palette-error-main")),vo(e.Alert,"infoIconColor",n("palette-info-main")),vo(e.Alert,"successIconColor",n("palette-success-main")),vo(e.Alert,"warningIconColor",n("palette-warning-main")),vo(e.AppBar,"defaultBg",n("palette-grey-900")),vo(e.AppBar,"darkBg",n("palette-background-paper")),vo(e.AppBar,"darkColor",n("palette-text-primary")),vo(e.Avatar,"defaultBg",n("palette-grey-600")),vo(e.Button,"inheritContainedBg",n("palette-grey-800")),vo(e.Button,"inheritContainedHoverBg",n("palette-grey-700")),vo(e.Chip,"defaultBorder",n("palette-grey-700")),vo(e.Chip,"defaultAvatarColor",n("palette-grey-300")),vo(e.Chip,"defaultIconColor",n("palette-grey-300")),vo(e.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),vo(e.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),vo(e.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),vo(e.LinearProgress,"primaryBg",Ei(e.primary.main,.5)),vo(e.LinearProgress,"secondaryBg",Ei(e.secondary.main,.5)),vo(e.LinearProgress,"errorBg",Ei(e.error.main,.5)),vo(e.LinearProgress,"infoBg",Ei(e.info.main,.5)),vo(e.LinearProgress,"successBg",Ei(e.success.main,.5)),vo(e.LinearProgress,"warningBg",Ei(e.warning.main,.5)),vo(e.Skeleton,"bg",`rgba(${n("palette-text-primaryChannel")} / 0.13)`),vo(e.Slider,"primaryTrack",Ei(e.primary.main,.5)),vo(e.Slider,"secondaryTrack",Ei(e.secondary.main,.5)),vo(e.Slider,"errorTrack",Ei(e.error.main,.5)),vo(e.Slider,"infoTrack",Ei(e.info.main,.5)),vo(e.Slider,"successTrack",Ei(e.success.main,.5)),vo(e.Slider,"warningTrack",Ei(e.warning.main,.5));const t=Oi(e.background.default,.98);vo(e.SnackbarContent,"bg",t),vo(e.SnackbarContent,"color",xo((()=>e.getContrastText(t)))),vo(e.SpeedDialAction,"fabHoverBg",Oi(e.background.paper,.15)),vo(e.StepConnector,"border",n("palette-grey-600")),vo(e.StepContent,"border",n("palette-grey-600")),vo(e.Switch,"defaultColor",n("palette-grey-300")),vo(e.Switch,"defaultDisabledColor",n("palette-grey-600")),vo(e.Switch,"primaryDisabledColor",Ei(e.primary.main,.55)),vo(e.Switch,"secondaryDisabledColor",Ei(e.secondary.main,.55)),vo(e.Switch,"errorDisabledColor",Ei(e.error.main,.55)),vo(e.Switch,"infoDisabledColor",Ei(e.info.main,.55)),vo(e.Switch,"successDisabledColor",Ei(e.success.main,.55)),vo(e.Switch,"warningDisabledColor",Ei(e.warning.main,.55)),vo(e.TableCell,"border",Ei(ki(e.divider,1),.68)),vo(e.Tooltip,"bg",ki(e.grey[700],.92))}bo(e.background,"default"),bo(e.background,"paper"),bo(e.common,"background"),bo(e.common,"onBackground"),bo(e,"divider"),Object.keys(e).forEach((t=>{const n=e[t];"tonalOffset"!==t&&n&&"object"==typeof n&&(n.main&&vo(e[t],"mainChannel",bi(yo(n.main))),n.light&&vo(e[t],"lightChannel",bi(yo(n.light))),n.dark&&vo(e[t],"darkChannel",bi(yo(n.dark))),n.contrastText&&vo(e[t],"contrastTextChannel",bi(yo(n.contrastText))),"text"===t&&(bo(e[t],"primary"),bo(e[t],"secondary")),"action"===t&&(n.active&&bo(e[t],"active"),n.selected&&bo(e[t],"selected")))}))})),x=e.reduce(((t,e)=>mt(t,e)),x);const w={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:go(x)},{vars:S,generateThemeVars:k,generateStyleSheets:C}=function(t,e={}){const{getSelector:n=g,disableCssColorScheme:r,colorSchemeSelector:i}=e,{colorSchemes:o={},components:a,defaultColorScheme:s="light",...l}=t,{vars:c,css:u,varsWithDefaults:d}=Ii(l,e);let h=d;const p={},{[s]:f,...m}=o;if(Object.entries(m||{}).forEach((([t,n])=>{const{vars:r,css:i,varsWithDefaults:o}=Ii(n,e);h=mt(h,o),p[t]={css:i,vars:r}})),f){const{css:t,vars:n,varsWithDefaults:r}=Ii(f,e);h=mt(h,r),p[s]={css:t,vars:n}}function g(e,n){let r=i;if("class"===i&&(r=".%s"),"data"===i&&(r="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(r=`[${i}="%s"]`),e){if("media"===r){if(t.defaultColorScheme===e)return":root";const r=o[e]?.palette?.mode||e;return{[`@media (prefers-color-scheme: ${r})`]:{":root":n}}}if(r)return t.defaultColorScheme===e?`:root, ${r.replace("%s",String(e))}`:r.replace("%s",String(e))}return":root"}return{vars:h,generateThemeVars:()=>{let t={...c};return Object.entries(p).forEach((([,{vars:e}])=>{t=mt(t,e)})),t},generateStyleSheets:()=>{const e=[],i=t.defaultColorScheme||"light";function a(t,n){Object.keys(n).length&&e.push("string"==typeof t?{[t]:{...n}}:t)}a(n(void 0,{...u}),u);const{[i]:s,...l}=p;if(s){const{css:t}=s,e=o[i]?.palette?.mode,l=!r&&e?{colorScheme:e,...t}:{...t};a(n(i,{...l}),l)}return Object.entries(l).forEach((([t,{css:e}])=>{const i=o[t]?.palette?.mode,s=!r&&i?{colorScheme:i,...e}:{...e};a(n(t,{...s}),s)})),e}}}(x,w);return x.vars=S,Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach((([t,e])=>{x[t]=e})),x.generateThemeVars=k,x.generateStyleSheets=C,x.generateSpacing=function(){return ai(c.spacing,De(this))},x.getColorSchemeSelector=function(t){return function(e){return"media"===t?("production"!==process.env.NODE_ENV&&"light"!==e&&"dark"!==e&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${e}'.`),`@media (prefers-color-scheme: ${e})`):t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${e}"] &`:"class"===t?`.${e} &`:"data"===t?`[data-${e}] &`:`${t.replace("%s",e)} &`:"&"}}(s),x.spacing=x.generateSpacing(),x.shouldSkipGeneratingVar=a,x.unstable_sxConfig={...pn,...c?.unstable_sxConfig},x.unstable_sx=function(t){return mn({sx:t,theme:this})},x.toRuntimeSource=lo,x}function So(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...!0!==n&&n,palette:Zi({...!0===n?{}:n.palette,mode:e})})}const ko=function(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:i=(n?void 0:{light:!0}),defaultColorScheme:o=n?.mode,...a}=t,s=o||"light",l=i?.[s],c={...i,...n?{[s]:{..."boolean"!=typeof l&&l,palette:n}}:void 0};if(!1===r){if(!("colorSchemes"in t))return co(t,...e);let r=n;"palette"in t||c[s]&&(!0!==c[s]?r=c[s].palette:"dark"===s&&(r={mode:"dark"}));const i=co({...t,palette:r},...e);return i.defaultColorScheme=s,i.colorSchemes=c,"light"===i.palette.mode&&(i.colorSchemes.light={...!0!==c.light&&c.light,palette:i.palette},So(i,"dark",c.dark)),"dark"===i.palette.mode&&(i.colorSchemes.dark={...!0!==c.dark&&c.dark,palette:i.palette},So(i,"light",c.light)),i}return n||"light"in c||"light"!==s||(c.light=!0),wo({...a,colorSchemes:c,defaultColorScheme:s,..."boolean"!=typeof r&&r},...e)}();const Co=function(t={}){const{themeId:e,defaultTheme:n=ui,rootShouldForwardProp:r=di,slotShouldForwardProp:i=di}=t;function o(t){!function(t,e,n){t.theme=function(t){for(const e in t)return!1;return!0}(t.theme)?n:t.theme[e]||t.theme}(t,e,n)}return(t,e={})=>{!function(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}(t,(t=>t.filter((t=>t!==mn))));const{name:n,slot:a,skipVariantsResolver:s,skipSx:l,overridesResolver:c=hi(gi(a)),...u}=e,d=void 0!==s?s:a&&"Root"!==a&&"root"!==a||!1,h=l||!1;let p=di;"Root"===a||"root"===a?p=r:a?p=i:function(t){return"string"==typeof t&&t.charCodeAt(0)>96}(t)&&(p=void 0);const f=
|
|
24
|
-
/**
|
|
25
|
-
* @mui/styled-engine v6.4.0
|
|
26
|
-
*
|
|
27
|
-
* @license MIT
|
|
28
|
-
* This source code is licensed under the MIT license found in the
|
|
29
|
-
* LICENSE file in the root directory of this source tree.
|
|
30
|
-
*/
|
|
31
|
-
function(t,e){const n=ei(t,e);return"production"!==process.env.NODE_ENV?(...e)=>{const r="string"==typeof t?`"${t}"`:"component";return 0===e.length?console.error([`MUI: Seems like you called \`styled(${r})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):e.some((t=>void 0===t))&&console.error(`MUI: the styled(${r})(...args) API requires all its args to be defined.`),n(...e)}:n}(t,{shouldForwardProp:p,label:mi(n,a),...u}),m=t=>{if("function"==typeof t&&t.__emotion_real!==t)return function(e){return pi(e,t)};if(pt(t)){const e=ci(t);return e.variants?function(t){return pi(t,e)}:e.style}return t},g=(...e)=>{const r=[],i=e.map(m),s=[];if(r.push(o),n&&c&&s.push((function(t){const e=t.theme,r=e.components?.[n]?.styleOverrides;if(!r)return null;const i={};for(const e in r)i[e]=pi(t,r[e]);return c(t,i)})),n&&!d&&s.push((function(t){const e=t.theme,r=e?.components?.[n]?.variants;return r?fi(t,r):null})),h||s.push(mn),Array.isArray(i[0])){const t=i.shift(),e=new Array(r.length).fill(""),n=new Array(s.length).fill("");let o;o=[...e,...t,...n],o.raw=[...e,...t.raw,...n],r.unshift(o)}const l=[...r,...i,...s],u=f(...l);return t.muiName&&(u.muiName=t.muiName),"production"!==process.env.NODE_ENV&&(u.displayName=function(t,e,n){if(t)return`${t}${se(e||"")}`;return`Styled(${function(t){if(null!=t){if("string"==typeof t)return t;if("function"==typeof t)return oe(t,"Component");if("object"==typeof t)switch(t.$$typeof){case ie.ForwardRef:return ae(t,t.render,"ForwardRef");case ie.Memo:return ae(t,t.type,"memo");default:return}}}(n)})`}(n,a,t)),u};return f.withConfig&&(g.withConfig=f.withConfig),g}}({themeId:"$$material",defaultTheme:ko,rootShouldForwardProp:t=>function(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}(t)&&"classes"!==t});var Eo=Co;var Mo=function(t){let e,n;return function(r){let i=e;return void 0!==i&&r.theme===n||(Ai.theme=r.theme,i=ci(t(Ai)),e=i,n=r.theme),i}};function Po(t){return pe("MuiSvgIcon",t)}"production"!==process.env.NODE_ENV&&(Xt.node,Xt.object.isRequired),function(t,e,n="Mui"){const r={};e.forEach((e=>{r[e]=pe(t,e,n)}))}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Oo=Eo("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e[`color${se(n.color)}`],e[`fontSize${se(n.fontSize)}`]]}})(Mo((({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter((([,t])=>t&&t.main)).map((([e])=>({props:{color:e},style:{color:(t.vars??t).palette?.[e]?.main}}))),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]})))),To=r.forwardRef((function(n,i){const o=Ni({props:n,name:"MuiSvgIcon"});const{children:a,className:s,color:l="inherit",component:c="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:h=!1,titleAccess:p,viewBox:f="0 0 24 24",...m}=o,g=r.isValidElement(a)&&"svg"===a.type,v={...o,color:l,component:c,fontSize:u,instanceFontSize:n.fontSize,inheritViewBox:h,viewBox:f,hasSvgAsChild:g},y={};h||(y.viewBox=f);const b=(t=>{const{color:e,fontSize:n,classes:r}=t;return function(t,e,n){const r={};for(const i in t){const o=t[i];let a="",s=!0;for(let t=0;t<o.length;t+=1){const r=o[t];r&&(a+=(!0===s?"":" ")+e(r),s=!1,n&&n[r]&&(a+=" "+n[r]))}r[i]=a}return r}({root:["root","inherit"!==e&&`color${se(e)}`,`fontSize${se(n)}`]},Po,r)})(v);return e(Oo,{as:c,className:me(b.root,s),focusable:"false",color:d,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:i,...y,...m,...g&&a.props,ownerState:v,children:[g?a.props.children:a,p?t("title",{children:p}):null]})}));"production"!==process.env.NODE_ENV&&(To.propTypes={children:Xt.node,classes:Xt.object,className:Xt.string,color:Xt.oneOfType([Xt.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Xt.string]),component:Xt.elementType,fontSize:Xt.oneOfType([Xt.oneOf(["inherit","large","medium","small"]),Xt.string]),htmlColor:Xt.string,inheritViewBox:Xt.bool,shapeRendering:Xt.string,sx:Xt.oneOfType([Xt.arrayOf(Xt.oneOfType([Xt.func,Xt.object,Xt.bool])),Xt.func,Xt.object]),titleAccess:Xt.string,viewBox:Xt.string}),To.muiName="SvgIcon";var No=To;function Ao(e,n){function i(r,i){return t(No,{"data-testid":`${n}Icon`,ref:i,...r,children:e})}return"production"!==process.env.NODE_ENV&&(i.displayName=`${n}Icon`),i.muiName=No.muiName,r.memo(r.forwardRef(i))}var Do=Ao(t("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}),"Article"),Lo=Ao([t("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),t("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"QueryBuilder"),Io=Ao(t("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login"),zo=Ao(t("path",{d:"M12.545,10.239v3.821h5.445c-0.712,2.315-2.647,3.972-5.445,3.972c-3.332,0-6.033-2.701-6.033-6.032s2.701-6.032,6.033-6.032c1.498,0,2.866,0.549,3.921,1.453l2.814-2.814C17.503,2.988,15.139,2,12.545,2C7.021,2,2.543,6.477,2.543,12s4.478,10,10.002,10c8.396,0,10.249-7.85,9.426-11.748L12.545,10.239z"}),"Google"),Ro=Ao(t("path",{d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z"}),"FacebookOutlined"),Fo=Ao(t("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),$o=Ao(t("path",{d:"M16.9 11c-.46-2.28-2.48-4-4.9-4s-4.44 1.72-4.9 4H2v2h5.1c.46 2.28 2.48 4 4.9 4s4.44-1.72 4.9-4H22v-2zM12 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3"}),"Commit"),jo=Ao(t("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),Bo=Ao(t("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),Ho=Ao(t("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"}),"Search"),Wo=Ao(t("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"}),"BugReport"),Vo=Ao(t("path",{d:"M17 20.41 18.41 19 15 15.59 13.59 17zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5z"}),"CallMerge"),Yo=Ao(t("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"}),"Place"),qo=Ao(t("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"}),"Palette"),Xo=Ao(t("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"}),"Collections"),Uo=Ao(t("path",{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z"}),"DataObject"),Zo=Ao(t("path",{d:"M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z"}),"FormatAlignCenterOutlined"),Go=Ao(t("path",{d:"M22 7h-9v2h9zm0 8h-9v2h9zM5.54 11 2 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zm0 8L2 15.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"}),"Checklist"),Ko=Ao(t("path",{d:"M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"}),"FormatQuote"),Jo=Ao(t("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14h-2V9h-2V7h4z"}),"LooksOne"),Qo=Ao(t("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z"}),"CalendarToday"),ta=Ao(t("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"CheckBoxOutlineBlank"),ea=Ao(t("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"}),"Security"),na=Ao(t("path",{d:"M9 4v3h5v12h3V7h5V4zm-6 8h3v7h3v-7h3V9H3z"}),"FormatSize"),ra=Ao(t("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"}),"Lock"),ia=Ao(t("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"}),"FilterAlt"),oa=Ao(t("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27z"}),"Layers"),aa=Ao(t("path",{d:"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"}),"VpnKey"),sa=Ao(t("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle"),la=Ao(t("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}),"FileCopy"),ca=Ao(t("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),ua=Ao(t("path",{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"}),"SwapHorizOutlined"),da=Ao(t("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"}),"Description"),ha=Ao(t("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),pa=Ao(t("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen"),fa=Ao(t("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),ma=Ao(t("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),ga=Ao(t("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),va=Ao(t("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),ya=Ao(t("path",{d:"M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"}),"ClearAll"),ba=Ao(t("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle"),xa=Ao(t("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreHoriz"),_a=Ao(t("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),wa=Ao(t("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Sa=Ao(t("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),ka=Ao(t("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),Ca=Ao(t("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),Ea=Ao(t("path",{d:"M19 13H5v-2h14z"}),"Remove"),Ma=Ao(t("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Pa=Ao(t("path",{d:"M11.07 12.85c.77-1.39 2.25-2.21 3.11-3.44.91-1.29.4-3.7-2.18-3.7-1.69 0-2.52 1.28-2.87 2.34L6.54 6.96C7.25 4.83 9.18 3 11.99 3c2.35 0 3.96 1.07 4.78 2.41.7 1.15 1.11 3.3.03 4.9-1.2 1.77-2.35 2.31-2.97 3.45-.25.46-.35.76-.35 2.24h-2.89c-.01-.78-.13-2.05.48-3.15M14 20c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2"}),"QuestionMarkOutlined"),Oa=Ao(t("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),Ta=Ao(t("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People"),Na=Ao(t("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2M1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2"}),"LocalGroceryStore"),Aa=Ao(t("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),Da=Ao(t("path",{d:"M3 13h18v8H3zM3 3h18v8H3z"}),"ViewAgendaSharp"),La=Ao(t("path",{d:"M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z"}),"Memory"),Ia=Ao(t("path",{d:"M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"}),"Webhook"),za=Ao(t("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),Ra=Ao(t("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),Fa=Ao(t("path",{d:"M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z"}),"FormatAlignLeft"),$a=Ao(t("path",{d:"M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z"}),"FormatAlignRight"),ja=Ao(t("path",{d:"M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z"}),"FormatAlignJustify"),Ba=Ao(t("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"}),"FormatBold"),Ha=Ao(t("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}),"FormatItalic"),Wa=Ao(t("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"}),"FormatUnderlined"),Va=Ao(t("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"Undo"),Ya=Ao(t("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"Redo"),qa=Ao(t("path",{d:"M2 20h20v4H2zm3.49-3h2.42l1.27-3.58h5.65L16.09 17h2.42L13.25 3h-2.5zm4.42-5.61 2.03-5.79h.12l2.03 5.79z"}),"FormatColorText");const Xa={article:Do,clockOutline:Lo,login:Io,google:zo,facebook:Ro,github:Fo,sourceCommit:$o,check:jo,replay:Bo,magnify:Ho,bug:Wo,callMerge:Vo,mapMarker:Yo,palette:qo,imageMultiple:Xo,dataObject:Uo,formatAlignCenter:Zo,formatAlignLeft:Fa,formatAlignRight:$a,formatAlignJustify:ja,formatListChecks:Go,formatQuoteClose:Ko,numericBox:Jo,calendarBlank:Qo,checkboxBlankOutline:ta,security:ea,formatSize:na,lock:ra,filter:ia,layers:oa,key:aa,accountCircle:sa,fileMultiple:la,contentCopy:ca,swapHorizontal:ua,fileDocument:da,folder:ha,fullscreen:pa,pencil:fa,chevronRight:ma,codeTags:ga,chevronDown:va,notificationClearAll:ya,dragHorizontalVariant:ba,dotsHorizontal:xa,dotsVertical:_a,eye:wa,refresh:Sa,plus:ka,delete:Ca,minus:Ea,close:Ma,help:Pa,cog:Oa,identities:Ta,assetstore:Na,dashboard:Aa,bucket:Da,function:La,webhook:Ia,storage:za,chevronLeft:Ra,formatBold:Ba,formatItalic:Ha,formatUnderlined:Wa,undo:Va,redo:Ya,formatColorFill:Ao(t("path",{d:"M16.56 8.94 7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12M5.21 10 10 5.21 14.79 10zM19 11.5s-2 2.17-2 3.5c0 1.1.9 2 2 2s2-.9 2-2c0-1.33-2-3.5-2-3.5M2 20h20v4H2z"}),"FormatColorFill"),formatColorText:qa,strikethroughS:Ao(t("path",{d:"M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85-.29-.86-1.2-1.28-2.25-1.28-1.86 0-2.34 1.02-2.34 1.7 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92M21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97 0 1-.81 1.67-2.28 1.67-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58.81 2.29 3.29 3.3 5.67 3.3 2.27 0 5.3-.89 5.3-4.05 0-.3-.01-1.16-.48-1.94H21z"}),"StrikethroughS"),invertColors:Ao(t("path",{d:"M12 4.81V19c-3.31 0-6-2.63-6-5.87 0-1.56.62-3.03 1.75-4.14zM6.35 7.56C4.9 8.99 4 10.96 4 13.13 4 17.48 7.58 21 12 21s8-3.52 8-7.87c0-2.17-.9-4.14-2.35-5.57L12 2z"}),"InvertColors"),folderZip:Ao(t("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-2 6h-2v2h2v2h-2v2h-2v-2h2v-2h-2v-2h2v-2h-2V8h2v2h2z"}),"FolderZip"),movie:Ao(t("path",{d:"m18 4 2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4z"}),"Movie"),gridOn:Ao(t("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 20H4v-4h4zm0-6H4v-4h4zm0-6H4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4z"}),"GridOn"),ballot:Ao(t("path",{fillRule:"evenodd",d:"M13 9.5h5v-2h-5zm0 7h5v-2h-5zm6 4.5H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2M6 11h5V6H6zm1-4h3v3H7zM6 18h5v-5H6zm1-4h3v3H7z"}),"Ballot"),gridView:Ao(t("path",{fillRule:"evenodd",d:"M3 3v8h8V3zm6 6H5V5h4zm-6 4v8h8v-8zm6 6H5v-4h4zm4-16v8h8V3zm6 6h-4V5h4zm-6 4v8h8v-8zm6 6h-4v-4h4z"}),"GridView"),viewList:Ao(t("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList"),sort:Ao(t("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort"),forkRight:Ao(t("path",{d:"M14.59 15.59 16 17l4-4-4-4-1.41 1.41L16.17 12c-1.51-.33-3.73.08-5.17 1.36V6.83l1.59 1.59L14 7l-4-4-4 4 1.41 1.41L9 6.83V21h2v-4c.73-2.58 3.07-3.47 5.17-3z"}),"ForkRight"),filterCenterFocus:Ao(t("path",{d:"M5 15H3v4c0 1.1.9 2 2 2h4v-2H5zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2m0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2zM12 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"FilterCenterFocus")};var Ua=a((({name:e,className:n,size:r="md"})=>t(Xa[e],{className:`${ht.icon} ${"number"!=typeof r&&ht[r]} ${n}`,style:"number"==typeof r?{width:r,height:r}:void 0}))),Za="BucketFieldPopup-module_container__u-ZI0",Ga="BucketFieldPopup-module_item__UuUXG";const Ka=[{icon:"formatQuoteClose",text:"String",type:"string"},{icon:"numericBox",text:"Number",type:"number"},{icon:"calendarBlank",text:"Date",type:"date"},{icon:"checkboxBlankOutline",text:"Boolean",type:"boolean"},{icon:"formatListChecks",text:"Multiple Selection",type:"multiselect"},{icon:"callMerge",text:"Relation",type:"storage"},{icon:"mapMarker",text:"Location",type:"location"},{icon:"ballot",text:"Array",type:"array"},{icon:"dataObject",text:"Object",type:"object"},{icon:"imageMultiple",text:"File",type:"storage"},{icon:"formatAlignCenter",text:"RichText",type:"richtext"}];var Ja=a((()=>t(j,{dimensionX:200,direction:"vertical",className:Za,children:Ka.map((({icon:e,text:n,type:r})=>t(V,{label:n,dimensionX:"fill",dimensionY:"hug",gap:10,prefix:{children:t(Ua,{name:e})},onClick:()=>r,className:Ga},n)))}))),Qa="Button-module_fullWidth__ocMRP",ts="Button-module_sDefault__yRCYO",es="Button-module_sCircle__GJyYM",ns="Button-module_sRound__y0uWn",rs="Button-module_vSolid__G4luo",is="Button-module_cPrimary__67oy-",os="Button-module_cDanger__HgXsJ",as="Button-module_cSuccess__KSilh",ss="Button-module_cDefault__q58J8",ls="Button-module_cSoft__dGX1F",cs="Button-module_cTransparent__Bnpcx",us="Button-module_vOutlined__BPlxJ",ds="Button-module_vDashed__s9Gzs",hs="Button-module_vFilled__1oRT-",ps="Button-module_vText__rb0VZ",fs="Button-module_vLink__g4fzS",ms="Button-module_vIcon__U67dE",gs={container:"Spinner-module_container__tB7r0",overlay:"Spinner-module_overlay__lPgQp",spinner:"Spinner-module_spinner__yumWc",spin:"Spinner-module_spin__54H7M",absolute:"Spinner-module_absolute__z7wIz",primary:"Spinner-module_primary__bhdCC",default:"Spinner-module_default__t61tG",success:"Spinner-module_success__RTTmC",danger:"Spinner-module_danger__I8BqU",soft:"Spinner-module_soft__Ifigt",transparent:"Spinner-module_transparent__r34vk",small:"Spinner-module_small__CXo3R",medium:"Spinner-module_medium__YuG3c",large:"Spinner-module_large__M5A4y",xlarge:"Spinner-module_xlarge__SHZ1L",fast:"Spinner-module_fast__Rd281",normal:"Spinner-module_normal__VR04D",slow:"Spinner-module_slow__JK54W"};var vs=a((({size:n="medium",color:r="primary",speed:i="normal",spinnerClassName:o="",spinning:a=!0,children:s,contentProps:l,...c})=>e(j,{...c,children:[a&&t("div",{className:`${o} ${gs.spinner} ${gs[r]} ${gs[n]} ${gs[i]} ${s&&gs.absolute}`}),s&&t(j,{...l,className:`${l?.className} ${gs.container} ${a&&gs.overlay}`,children:s})]})));var ys=a((({fullWidth:e,containerProps:n,children:r,shape:i="default",variant:o="solid",color:a="primary",loading:l,spinnerProps:c,keepWidth:u=!0,...d})=>{const h=s(null),p={primary:is,default:ss,success:as,danger:os,soft:ls,transparent:cs},f={solid:rs,outlined:us,dashed:ds,filled:hs,text:ps,link:fs,icon:ms},m={default:ts,circle:es,round:ns},g={minWidth:u?h?.current?.offsetWidth:"unset",...d.style};return t("button",{ref:h,...d,style:g,className:`${m[i]} ${f[o]} ${p[a]} ${d.className} ${e&&Qa}`,children:l?t(vs,{size:"small",color:(()=>{const t="default"===a||"soft"===a;return"solid"===o?t?"primary":"default":["outlined","dashed","filled","text","link","icon"].includes(o)?t?"primary":a:"primary"})(),...c}):t(B,{root:{children:r},...n})})}));
|
|
32
|
-
/*!
|
|
33
|
-
* @kurkle/color v0.3.4
|
|
34
|
-
* https://github.com/kurkle/color#readme
|
|
35
|
-
* (c) 2024 Jukka Kurkela
|
|
36
|
-
* Released under the MIT License
|
|
37
|
-
*/function bs(t){return t+.5|0}const xs=(t,e,n)=>Math.max(Math.min(t,n),e);function _s(t){return xs(bs(2.55*t),0,255)}function ws(t){return xs(bs(255*t),0,255)}function Ss(t){return xs(bs(t/2.55)/100,0,1)}function ks(t){return xs(bs(100*t),0,100)}const Cs={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},Es=[..."0123456789ABCDEF"],Ms=t=>Es[15&t],Ps=t=>Es[(240&t)>>4]+Es[15&t],Os=t=>(240&t)>>4==(15&t);function Ts(t){var e=(t=>Os(t.r)&&Os(t.g)&&Os(t.b)&&Os(t.a))(t)?Ms:Ps;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Ns=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function As(t,e,n){const r=e*Math.min(n,1-n),i=(e,i=(e+t/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0),i(8),i(4)]}function Ds(t,e,n){const r=(r,i=(r+t/60)%6)=>n-n*e*Math.max(Math.min(i,4-i,1),0);return[r(5),r(3),r(1)]}function Ls(t,e,n){const r=As(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)r[i]*=1-e-n,r[i]+=e;return r}function Is(t){const e=t.r/255,n=t.g/255,r=t.b/255,i=Math.max(e,n,r),o=Math.min(e,n,r),a=(i+o)/2;let s,l,c;return i!==o&&(c=i-o,l=a>.5?c/(2-i-o):c/(i+o),s=function(t,e,n,r,i){return t===i?(e-n)/r+(e<n?6:0):e===i?(n-t)/r+2:(t-e)/r+4}(e,n,r,c,i),s=60*s+.5),[0|s,l||0,a]}function zs(t,e,n,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,r)).map(ws)}function Rs(t,e,n){return zs(As,t,e,n)}function Fs(t){return(t%360+360)%360}function $s(t){const e=Ns.exec(t);let n,r=255;if(!e)return;e[5]!==n&&(r=e[6]?_s(+e[5]):ws(+e[5]));const i=Fs(+e[2]),o=+e[3]/100,a=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return zs(Ls,t,e,n)}(i,o,a):"hsv"===e[1]?function(t,e,n){return zs(Ds,t,e,n)}(i,o,a):Rs(i,o,a),{r:n[0],g:n[1],b:n[2],a:r}}const js={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"},Bs={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 Hs;function Ws(t){Hs||(Hs=function(){const t={},e=Object.keys(Bs),n=Object.keys(js);let r,i,o,a,s;for(r=0;r<e.length;r++){for(a=s=e[r],i=0;i<n.length;i++)o=n[i],s=s.replace(o,js[o]);o=parseInt(Bs[a],16),t[s]=[o>>16&255,o>>8&255,255&o]}return t}(),Hs.transparent=[0,0,0,0]);const e=Hs[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}const Vs=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ys=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,qs=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Xs(t,e,n){if(t){let r=Is(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*n,0===e?360:1)),r=Rs(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Us(t,e){return t?Object.assign(e||{},t):t}function Zs(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=ws(t[3]))):(e=Us(t,{r:0,g:0,b:0,a:1})).a=ws(e.a),e}function Gs(t){return"r"===t.charAt(0)?function(t){const e=Vs.exec(t);let n,r,i,o=255;if(e){if(e[7]!==n){const t=+e[7];o=e[8]?_s(t):xs(255*t,0,255)}return n=+e[1],r=+e[3],i=+e[5],n=255&(e[2]?_s(n):xs(n,0,255)),r=255&(e[4]?_s(r):xs(r,0,255)),i=255&(e[6]?_s(i):xs(i,0,255)),{r:n,g:r,b:i,a:o}}}(t):$s(t)}class Ks{constructor(t){if(t instanceof Ks)return t;const e=typeof t;let n;var r,i,o;"object"===e?n=Zs(t):"string"===e&&(o=(r=t).length,"#"===r[0]&&(4===o||5===o?i={r:255&17*Cs[r[1]],g:255&17*Cs[r[2]],b:255&17*Cs[r[3]],a:5===o?17*Cs[r[4]]:255}:7!==o&&9!==o||(i={r:Cs[r[1]]<<4|Cs[r[2]],g:Cs[r[3]]<<4|Cs[r[4]],b:Cs[r[5]]<<4|Cs[r[6]],a:9===o?Cs[r[7]]<<4|Cs[r[8]]:255})),n=i||Ws(t)||Gs(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Us(this._rgb);return t&&(t.a=Ss(t.a)),t}set rgb(t){this._rgb=Zs(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Ss(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?Ts(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Is(t),n=e[0],r=ks(e[1]),i=ks(e[2]);return t.a<255?`hsla(${n}, ${r}%, ${i}%, ${Ss(t.a)})`:`hsl(${n}, ${r}%, ${i}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,r=t.rgb;let i;const o=e===i?.5:e,a=2*o-1,s=n.a-r.a,l=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;i=1-l,n.r=255&l*n.r+i*r.r+.5,n.g=255&l*n.g+i*r.g+.5,n.b=255&l*n.b+i*r.b+.5,n.a=o*n.a+(1-o)*r.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const r=qs(Ss(t.r)),i=qs(Ss(t.g)),o=qs(Ss(t.b));return{r:ws(Ys(r+n*(qs(Ss(e.r))-r))),g:ws(Ys(i+n*(qs(Ss(e.g))-i))),b:ws(Ys(o+n*(qs(Ss(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Ks(this.rgb)}alpha(t){return this._rgb.a=ws(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=bs(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Xs(this._rgb,2,t),this}darken(t){return Xs(this._rgb,2,-t),this}saturate(t){return Xs(this._rgb,1,t),this}desaturate(t){return Xs(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Is(t);n[0]=Fs(n[0]+e),n=Rs(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}
|
|
38
|
-
/*!
|
|
39
|
-
* Chart.js v4.4.7
|
|
40
|
-
* https://www.chartjs.org
|
|
41
|
-
* (c) 2024 Chart.js Contributors
|
|
42
|
-
* Released under the MIT License
|
|
43
|
-
*/function Js(){}const Qs=(()=>{let t=0;return()=>t++})();function tl(t){return null==t}function el(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function nl(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function rl(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function il(t,e){return rl(t)?t:e}function ol(t,e){return void 0===t?e:t}const al=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function sl(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function ll(t,e,n,r){let i,o,a;if(el(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i);else if(nl(t))for(a=Object.keys(t),o=a.length,i=0;i<o;i++)e.call(n,t[a[i]],a[i])}function cl(t,e){let n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function ul(t){if(el(t))return t.map(ul);if(nl(t)){const e=Object.create(null),n=Object.keys(t),r=n.length;let i=0;for(;i<r;++i)e[n[i]]=ul(t[n[i]]);return e}return t}function dl(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function hl(t,e,n,r){if(!dl(t))return;const i=e[t],o=n[t];nl(i)&&nl(o)?pl(i,o,r):e[t]=ul(o)}function pl(t,e,n){const r=el(e)?e:[e],i=r.length;if(!nl(t))return t;const o=(n=n||{}).merger||hl;let a;for(let e=0;e<i;++e){if(a=r[e],!nl(a))continue;const i=Object.keys(a);for(let e=0,r=i.length;e<r;++e)o(i[e],t,a,n)}return t}function fl(t,e){return pl(t,e,{merger:ml})}function ml(t,e,n){if(!dl(t))return;const r=e[t],i=n[t];nl(r)&&nl(i)?fl(r,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=ul(i))}const gl={"":t=>t,x:t=>t.x,y:t=>t.y};function vl(t,e){const n=gl[e]||(gl[e]=function(t){const e=function(t){const e=t.split("."),n=[];let r="";for(const t of e)r+=t,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function yl(t){return t.charAt(0).toUpperCase()+t.slice(1)}const bl=t=>void 0!==t,xl=t=>"function"==typeof t,_l=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};const wl=Math.PI,Sl=2*wl,kl=Sl+wl,Cl=Number.POSITIVE_INFINITY,El=wl/180,Ml=wl/2,Pl=wl/4,Ol=2*wl/3,Tl=Math.log10,Nl=Math.sign;function Al(t,e,n){return Math.abs(t-e)<n}function Dl(t){const e=Math.round(t);t=Al(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Tl(t))),r=t/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Ll(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Il(t,e,n){let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function zl(t){return t*(wl/180)}function Rl(t){return t*(180/wl)}function Fl(t){if(!rl(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function $l(t,e){const n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*wl&&(o+=Sl),{angle:o,distance:i}}function jl(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Bl(t,e){return(t-e+kl)%Sl-wl}function Hl(t){return(t%Sl+Sl)%Sl}function Wl(t,e,n,r){const i=Hl(t),o=Hl(e),a=Hl(n),s=Hl(o-i),l=Hl(a-i),c=Hl(i-o),u=Hl(i-a);return i===o||i===a||r&&o===a||s>l&&c<u}function Vl(t,e,n){return Math.max(e,Math.min(n,t))}function Yl(t,e,n,r=1e-6){return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function ql(t,e,n){n=n||(n=>t[n]<e);let r,i=t.length-1,o=0;for(;i-o>1;)r=o+i>>1,n(r)?o=r:i=r;return{lo:o,hi:i}}const Xl=(t,e,n,r)=>ql(t,n,r?r=>{const i=t[r][e];return i<n||i===n&&t[r+1][e]===n}:r=>t[r][e]<n),Ul=(t,e,n)=>ql(t,n,(r=>t[r][e]>=n));const Zl=["push","pop","shift","splice","unshift"];function Gl(t,e){const n=t._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),r.length>0||(Zl.forEach((e=>{delete t[e]})),delete t._chartjs)}function Kl(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const Jl="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function Ql(t,e){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Jl.call(window,(()=>{r=!1,t.apply(e,n)})))}}const tc=t=>"start"===t?"left":"end"===t?"right":"center",ec=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function nc(t,e,n){const r=e.length;let i=0,o=r;if(t._sorted){const{iScale:a,_parsed:s}=t,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:h}=a.getUserBounds();d&&(i=Vl(Math.min(Xl(s,l,c).lo,n?r:Xl(e,l,a.getPixelForValue(c)).lo),0,r-1)),o=h?Vl(Math.max(Xl(s,a.axis,u,!0).hi+1,n?0:Xl(e,l,a.getPixelForValue(u),!0).hi+1),i,r)-i:r-i}return{start:i,count:o}}function rc(t){const{xScale:e,yScale:n,_scaleRanges:r}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!r)return t._scaleRanges=i,!0;const o=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const ic=t=>0===t||1===t,oc=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Sl/n),ac=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Sl/n)+1,sc={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*Ml),easeOutSine:t=>Math.sin(t*Ml),easeInOutSine:t=>-.5*(Math.cos(wl*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ic(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>ic(t)?t:oc(t,.075,.3),easeOutElastic:t=>ic(t)?t:ac(t,.075,.3),easeInOutElastic(t){const e=.1125;return ic(t)?t:t<.5?.5*oc(2*t,e,.45):.5+.5*ac(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-sc.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*sc.easeInBounce(2*t):.5*sc.easeOutBounce(2*t-1)+.5};function lc(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function cc(t){return lc(t)?t:new Ks(t)}function uc(t){return lc(t)?t:new Ks(t).saturate(.5).darken(.1).hexString()}const dc=["x","y","borderWidth","radius","tension"],hc=["color","borderColor","backgroundColor"];const pc=new Map;function fc(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let r=pc.get(n);return r||(r=new Intl.NumberFormat(t,e),pc.set(n,r)),r}(e,n).format(t)}const mc={values:t=>el(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const r=this.chart.options.locale;let i,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(i="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t));return n}(t,n)}const a=Tl(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),fc(t,r,l)},logarithmic(t,e,n){if(0===t)return"0";const r=n[e].significand||t/Math.pow(10,Math.floor(Tl(t)));return[1,2,3,5,10,15].includes(r)||e>.8*n.length?mc.numeric.call(this,t,e,n):""}};var gc={formatters:mc};const vc=Object.create(null),yc=Object.create(null);function bc(t,e){if(!e)return t;const n=e.split(".");for(let e=0,r=n.length;e<r;++e){const r=n[e];t=t[r]||(t[r]=Object.create(null))}return t}function xc(t,e,n){return"string"==typeof e?pl(bc(t,e),n):pl(bc(t,""),e)}class _c{constructor(t,e){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=t=>t.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=(t,e)=>uc(e.backgroundColor),this.hoverBorderColor=(t,e)=>uc(e.borderColor),this.hoverColor=(t,e)=>uc(e.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(t),this.apply(e)}set(t,e){return xc(this,t,e)}get(t){return bc(this,t)}describe(t,e){return xc(yc,t,e)}override(t,e){return xc(vc,t,e)}route(t,e,n,r){const i=bc(this,t),o=bc(this,n),a="_"+e;Object.defineProperties(i,{[a]:{value:i[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=o[r];return nl(t)?Object.assign({},e,t):ol(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}var wc=new _c({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:hc},numbers:{type:"number",properties:dc}}),t.describe("animations",{_fallback:"animation"}),t.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:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.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:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.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:gc.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Sc(t,e,n,r,i){let o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r}function kc(t,e,n,r){let i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const s=n.length;let l,c,u,d,h;for(l=0;l<s;l++)if(d=n[l],null==d||el(d)){if(el(d))for(c=0,u=d.length;c<u;c++)h=d[c],null==h||el(h)||(a=Sc(t,i,o,a,h))}else a=Sc(t,i,o,a,d);t.restore();const p=o.length/2;if(p>n.length){for(l=0;l<p;l++)delete i[o[l]];o.splice(0,p)}return a}function Cc(t,e,n){const r=t.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((e-i)*r)/r+i}function Ec(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Mc(t,e,n,r){Pc(t,e,n,r,null)}function Pc(t,e,n,r,i){let o,a,s,l,c,u,d,h;const p=e.pointStyle,f=e.rotation,m=e.radius;let g=(f||0)*El;if(p&&"object"==typeof p&&(o=p.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return t.save(),t.translate(n,r),t.rotate(g),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(m)||m<=0)){switch(t.beginPath(),p){default:i?t.ellipse(n,r,i/2,m,0,0,Sl):t.arc(n,r,m,0,Sl),t.closePath();break;case"triangle":u=i?i/2:m,t.moveTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=Ol,t.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),g+=Ol,t.lineTo(n+Math.sin(g)*u,r-Math.cos(g)*m),t.closePath();break;case"rectRounded":c=.516*m,l=m-c,a=Math.cos(g+Pl)*l,d=Math.cos(g+Pl)*(i?i/2-c:l),s=Math.sin(g+Pl)*l,h=Math.sin(g+Pl)*(i?i/2-c:l),t.arc(n-d,r-s,c,g-wl,g-Ml),t.arc(n+h,r-a,c,g-Ml,g),t.arc(n+d,r+s,c,g,g+Ml),t.arc(n-h,r+a,c,g+Ml,g+wl),t.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,u=i?i/2:l,t.rect(n-u,r-l,2*u,2*l);break}g+=Pl;case"rectRot":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,h=Math.sin(g)*(i?i/2:m),t.moveTo(n-d,r-s),t.lineTo(n+h,r-a),t.lineTo(n+d,r+s),t.lineTo(n-h,r+a),t.closePath();break;case"crossRot":g+=Pl;case"cross":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,h=Math.sin(g)*(i?i/2:m),t.moveTo(n-d,r-s),t.lineTo(n+d,r+s),t.moveTo(n+h,r-a),t.lineTo(n-h,r+a);break;case"star":d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,h=Math.sin(g)*(i?i/2:m),t.moveTo(n-d,r-s),t.lineTo(n+d,r+s),t.moveTo(n+h,r-a),t.lineTo(n-h,r+a),g+=Pl,d=Math.cos(g)*(i?i/2:m),a=Math.cos(g)*m,s=Math.sin(g)*m,h=Math.sin(g)*(i?i/2:m),t.moveTo(n-d,r-s),t.lineTo(n+d,r+s),t.moveTo(n+h,r-a),t.lineTo(n-h,r+a);break;case"line":a=i?i/2:Math.cos(g)*m,s=Math.sin(g)*m,t.moveTo(n-a,r-s),t.lineTo(n+a,r+s);break;case"dash":t.moveTo(n,r),t.lineTo(n+Math.cos(g)*(i?i/2:m),r+Math.sin(g)*m);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Oc(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Tc(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Nc(t){t.restore()}function Ac(t,e,n,r,i){if(!e)return t.lineTo(n.x,n.y);if("middle"===i){const r=(e.x+n.x)/2;t.lineTo(r,e.y),t.lineTo(r,n.y)}else"after"===i!=!!r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function Dc(t,e,n,r){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function Lc(t,e,n,r,i){if(i.strikethrough||i.underline){const o=t.measureText(r),a=e-o.actualBoundingBoxLeft,s=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(a,u),t.lineTo(s,u),t.stroke()}}function Ic(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function zc(t,e,n,r,i,o={}){const a=el(e)?e:[e],s=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=i.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),tl(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l<a.length;++l)c=a[l],o.backdrop&&Ic(t,o.backdrop),s&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),tl(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,n,r,o.maxWidth)),t.fillText(c,n,r,o.maxWidth),Lc(t,n,r,c,o),r+=Number(i.lineHeight);t.restore()}function Rc(t,e){const{x:n,y:r,w:i,h:o,radius:a}=e;t.arc(n+a.topLeft,r+a.topLeft,a.topLeft,1.5*wl,wl,!0),t.lineTo(n,r+o-a.bottomLeft),t.arc(n+a.bottomLeft,r+o-a.bottomLeft,a.bottomLeft,wl,Ml,!0),t.lineTo(n+i-a.bottomRight,r+o),t.arc(n+i-a.bottomRight,r+o-a.bottomRight,a.bottomRight,Ml,0,!0),t.lineTo(n+i,r+a.topRight),t.arc(n+i-a.topRight,r+a.topRight,a.topRight,0,-Ml,!0),t.lineTo(n+a.topLeft,r)}const Fc=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,$c=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function jc(t,e){const n=(""+t).match(Fc);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}const Bc=t=>+t||0;function Hc(t,e){const n={},r=nl(e),i=r?Object.keys(e):e,o=nl(t)?r?n=>ol(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of i)n[t]=Bc(o(t));return n}function Wc(t){return Hc(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Vc(t){return Hc(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Yc(t){const e=Wc(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function qc(t,e){t=t||{},e=e||wc.font;let n=ol(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let r=ol(t.style,e.style);r&&!(""+r).match($c)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:ol(t.family,e.family),lineHeight:jc(ol(t.lineHeight,e.lineHeight),n),size:n,style:r,weight:ol(t.weight,e.weight),string:""};return i.string=function(t){return!t||tl(t.size)||tl(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(i),i}function Xc(t,e,n,r){let i,o,a,s=!0;for(i=0,o=t.length;i<o;++i)if(a=t[i],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),s=!1),void 0!==n&&el(a)&&(a=a[n%a.length],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}function Uc(t,e){return Object.assign(Object.create(t),e)}function Zc(t,e=[""],n,r,i=()=>t[0]){const o=n||t;void 0===r&&(r=au("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:r,_getTarget:i,override:n=>Zc([n,...t],e,o,r)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,r)=>tu(n,r,(()=>function(t,e,n,r){let i;for(const o of e)if(i=au(Jc(o,t),n),void 0!==i)return Qc(t,i)?iu(n,r,t,i):i}(r,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>su(t).includes(e),ownKeys:t=>su(t),set(t,e,n){const r=t._storage||(t._storage=i());return t[e]=r[e]=n,delete t._keys,!0}})}function Gc(t,e,n,r){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Kc(t,r),setContext:e=>Gc(t,e,n,r),override:i=>Gc(t.override(i),e,n,r)};return new Proxy(i,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>tu(t,e,(()=>function(t,e,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=t;let s=r[e];xl(s)&&a.isScriptable(e)&&(s=function(t,e,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(t))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+t);s.add(t);let l=e(o,a||r);s.delete(t),Qc(t,l)&&(l=iu(i._scopes,i,t,l));return l}(e,s,t,n));el(s)&&s.length&&(s=function(t,e,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(void 0!==o.index&&r(t))return e[o.index%e.length];if(nl(e[0])){const n=e,r=i._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=iu(r,i,t,l);e.push(Gc(n,o,a&&a[t],s))}}return e}(e,s,t,a.isIndexable));Qc(e,s)&&(s=Gc(s,i,o&&o[e],a));return s}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,r)=>(t[n]=r,delete e[n],!0)})}function Kc(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:r,isScriptable:xl(n)?n:()=>n,isIndexable:xl(r)?r:()=>r}}const Jc=(t,e)=>t?t+yl(e):e,Qc=(t,e)=>nl(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function tu(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const r=n();return t[e]=r,r}function eu(t,e,n){return xl(t)?t(e,n):t}const nu=(t,e)=>!0===t?e:"string"==typeof t?vl(e,t):void 0;function ru(t,e,n,r,i){for(const o of e){const e=nu(n,o);if(e){t.add(e);const o=eu(e._fallback,n,i);if(void 0!==o&&o!==n&&o!==r)return o}else if(!1===e&&void 0!==r&&n!==r)return null}return!1}function iu(t,e,n,r){const i=e._rootScopes,o=eu(e._fallback,n,r),a=[...t,...i],s=new Set;s.add(r);let l=ou(s,a,n,o||n,r);return null!==l&&((void 0===o||o===n||(l=ou(s,a,o,l,r),null!==l))&&Zc(Array.from(s),[""],i,o,(()=>function(t,e,n){const r=t._getTarget();e in r||(r[e]={});const i=r[e];if(el(i)&&nl(n))return n;return i||{}}(e,n,r))))}function ou(t,e,n,r,i){for(;n;)n=ru(t,e,n,r,i);return n}function au(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function su(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function lu(t,e,n,r){const{iScale:i}=t,{key:o="r"}=this._parsing,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=e[c],a[s]={r:i.parse(vl(u,o),c)};return a}const cu=Number.EPSILON||1e-14,uu=(t,e)=>e<t.length&&!t[e].skip&&t[e],du=t=>"x"===t?"y":"x";function hu(t,e,n,r){const i=t.skip?e:t,o=e,a=n.skip?e:n,s=jl(o,i),l=jl(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,h=r*u;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}}function pu(t,e="x"){const n=du(e),r=t.length,i=Array(r).fill(0),o=Array(r);let a,s,l,c=uu(t,0);for(a=0;a<r;++a)if(s=l,l=c,c=uu(t,a+1),l){if(c){const t=c[e]-l[e];i[a]=0!==t?(c[n]-l[n])/t:0}o[a]=s?c?Nl(i[a-1])!==Nl(i[a])?0:(i[a-1]+i[a])/2:i[a-1]:i[a]}!function(t,e,n){const r=t.length;let i,o,a,s,l,c=uu(t,0);for(let u=0;u<r-1;++u)l=c,c=uu(t,u+1),l&&c&&(Al(e[u],0,cu)?n[u]=n[u+1]=0:(i=n[u]/e[u],o=n[u+1]/e[u],s=Math.pow(i,2)+Math.pow(o,2),s<=9||(a=3/Math.sqrt(s),n[u]=i*a*e[u],n[u+1]=o*a*e[u])))}(t,i,o),function(t,e,n="x"){const r=du(n),i=t.length;let o,a,s,l=uu(t,0);for(let c=0;c<i;++c){if(a=s,s=l,l=uu(t,c+1),!s)continue;const i=s[n],u=s[r];a&&(o=(i-a[n])/3,s[`cp1${n}`]=i-o,s[`cp1${r}`]=u-o*e[c]),l&&(o=(l[n]-i)/3,s[`cp2${n}`]=i+o,s[`cp2${r}`]=u+o*e[c])}}(t,o,e)}function fu(t,e,n){return Math.max(Math.min(t,n),e)}function mu(t,e,n,r,i){let o,a,s,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)pu(t,i);else{let n=r?t[t.length-1]:t[0];for(o=0,a=t.length;o<a;++o)s=t[o],l=hu(n,s,t[Math.min(o+1,a-(r?0:1))%a],e.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,n=s}e.capBezierPoints&&function(t,e){let n,r,i,o,a,s=Oc(t[0],e);for(n=0,r=t.length;n<r;++n)a=o,o=s,s=n<r-1&&Oc(t[n+1],e),o&&(i=t[n],a&&(i.cp1x=fu(i.cp1x,e.left,e.right),i.cp1y=fu(i.cp1y,e.top,e.bottom)),s&&(i.cp2x=fu(i.cp2x,e.left,e.right),i.cp2y=fu(i.cp2y,e.top,e.bottom)))}(t,n)}function gu(){return"undefined"!=typeof window&&"undefined"!=typeof document}function vu(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function yu(t,e,n){let r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}const bu=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);const xu=["top","right","bottom","left"];function _u(t,e,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=xu[i];r[o]=parseFloat(t[e+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function wu(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:r}=e,i=bu(n),o="border-box"===i.boxSizing,a=_u(i,"padding"),s=_u(i,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,r=n&&n.length?n[0]:t,{offsetX:i,offsetY:o}=r;let a,s,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(i,o,t.target))a=i,s=o;else{const t=e.getBoundingClientRect();a=r.clientX-t.left,s=r.clientY-t.top,l=!0}return{x:a,y:s,box:l}}(t,n),d=a.left+(u&&s.left),h=a.top+(u&&s.top);let{width:p,height:f}=e;return o&&(p-=a.width+s.width,f-=a.height+s.height),{x:Math.round((l-d)/p*n.width/r),y:Math.round((c-h)/f*n.height/r)}}const Su=t=>Math.round(10*t)/10;function ku(t,e,n,r){const i=bu(t),o=_u(i,"margin"),a=yu(i.maxWidth,t,"clientWidth")||Cl,s=yu(i.maxHeight,t,"clientHeight")||Cl,l=function(t,e,n){let r,i;if(void 0===e||void 0===n){const o=t&&vu(t);if(o){const t=o.getBoundingClientRect(),a=bu(o),s=_u(a,"border","width"),l=_u(a,"padding");e=t.width-l.width-s.width,n=t.height-l.height-s.height,r=yu(a.maxWidth,o,"clientWidth"),i=yu(a.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||Cl,maxHeight:i||Cl}}(t,e,n);let{width:c,height:u}=l;if("content-box"===i.boxSizing){const t=_u(i,"border","width"),e=_u(i,"padding");c-=e.width+t.width,u-=e.height+t.height}c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=Su(Math.min(c,a,l.maxWidth)),u=Su(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Su(c/2));return(void 0!==e||void 0!==n)&&r&&l.height&&u>l.height&&(u=l.height,c=Su(Math.floor(u*r))),{width:c,height:u}}function Cu(t,e,n){const r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const a=t.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==i||a.width!==o)&&(t.currentDevicePixelRatio=r,a.height=i,a.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0)}const Eu=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};gu()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Mu(t,e){const n=function(t,e){return bu(t).getPropertyValue(e)}(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Pu(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function Ou(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function Tu(t,e,n,r){const i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},a=Pu(t,i,n),s=Pu(i,o,n),l=Pu(o,e,n),c=Pu(a,s,n),u=Pu(s,l,n);return Pu(c,u,n)}function Nu(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Au(t,e){let n,r;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function Du(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Lu(t){return"angle"===t?{between:Wl,compare:Bl,normalize:Hl}:{between:Yl,compare:(t,e)=>t-e,normalize:t=>t}}function Iu({start:t,end:e,count:n,loop:r,style:i}){return{start:t%n,end:e%n,loop:r&&(e-t+1)%n==0,style:i}}function zu(t,e,n){if(!n)return[t];const{property:r,start:i,end:o}=n,a=e.length,{compare:s,between:l,normalize:c}=Lu(r),{start:u,end:d,loop:h,style:p}=function(t,e,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=Lu(r),l=e.length;let c,u,{start:d,end:h,loop:p}=t;if(p){for(d+=l,h+=l,c=0,u=l;c<u&&a(s(e[d%l][r]),i,o);++c)d--,h--;d%=l,h%=l}return h<d&&(h+=l),{start:d,end:h,loop:p,style:t.style}}(t,e,n),f=[];let m,g,v,y=!1,b=null;const x=()=>y||l(i,v,m)&&0!==s(i,v),_=()=>!y||0===s(o,m)||l(o,v,m);for(let t=u,n=u;t<=d;++t)g=e[t%a],g.skip||(m=c(g[r]),m!==v&&(y=l(m,i,o),null===b&&x()&&(b=0===s(m,i)?t:n),null!==b&&_()&&(f.push(Iu({start:b,end:t,loop:h,count:a,style:p})),b=null),n=t,v=m));return null!==b&&f.push(Iu({start:b,end:d,loop:h,count:a,style:p})),f}function Ru(t,e){const n=[],r=t.segments;for(let i=0;i<r.length;i++){const o=zu(r[i],t.points,e);o.length&&n.push(...o)}return n}function Fu(t,e,n,r){return r&&r.setContext&&n?function(t,e,n,r){const i=t._chart.getContext(),o=$u(t.options),{_datasetIndex:a,options:{spanGaps:s}}=t,l=n.length,c=[];let u=o,d=e[0].start,h=d;function p(t,e,r,i){const o=s?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=o;for(;n[e%l].skip;)e+=o;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:r,style:i}),u=i,d=e%l)}}for(const t of e){d=s?d:t.start;let e,o=n[d%l];for(h=d+1;h<=t.end;h++){const s=n[h%l];e=$u(r.setContext(Uc(i,{type:"segment",p0:o,p1:s,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:a}))),ju(e,u)&&p(d,h-1,t.loop,u),o=s,u=e}d<h-1&&p(d,h-1,t.loop,u)}return c}(t,e,n,r):e}function $u(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ju(t,e){if(!e)return!1;const n=[],r=function(t,e){return lc(e)?(n.includes(e)||n.push(e),n.indexOf(e)):e};return JSON.stringify(t,r)!==JSON.stringify(e,r)}
|
|
44
|
-
/*!
|
|
45
|
-
* Chart.js v4.4.7
|
|
46
|
-
* https://www.chartjs.org
|
|
47
|
-
* (c) 2024 Chart.js Contributors
|
|
48
|
-
* Released under the MIT License
|
|
49
|
-
*/class Bu{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,r){const i=e.listeners[r],o=e.duration;i.forEach((r=>r({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=Jl.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,r)=>{if(!n.running||!n.items.length)return;const i=n.items;let o,a=i.length-1,s=!1;for(;a>=0;--a)o=i[a],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),s=!0):(i[a]=i[i.length-1],i.pop());s&&(r.draw(),this._notify(r,n,t,"progress")),i.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),e+=i.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let r=n.length-1;for(;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Hu=new Bu;const Wu="transparent",Vu={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const r=cc(t||Wu),i=r.valid&&cc(e||Wu);return i&&i.valid?i.mix(r,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Yu{constructor(t,e,n,r){const i=e[n];r=Xc([t.to,r,i,t.from]);const o=Xc([t.from,i,r]);this._active=!0,this._fn=t.fn||Vu[t.type||typeof o],this._easing=sc[t.easing]||sc.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const r=this._target[this._prop],i=n-this._start,o=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=Xc([t.to,e,r,t.from]),this._from=Xc([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,r=this._prop,i=this._from,o=this._loop,a=this._to;let s;if(this._active=i!==a&&(o||e<n),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=i:(s=e/n%2,s=o&&s>1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[r]=this._fn(i,a,s))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class qu{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!nl(t))return;const e=Object.keys(wc.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((r=>{const i=t[r];if(!nl(i))return;const o={};for(const t of e)o[t]=i[t];(el(i.properties)&&i.properties||[r]).forEach((t=>{t!==r&&n.has(t)||n.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,r=function(t,e){if(!e)return;let n=t.options;if(!n)return void(t.options=e);n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(t,n);if(!r)return[];const i=this._createAnimations(r,n);return n.$shared&&function(t,e){const n=[],r=Object.keys(e);for(let e=0;e<r.length;e++){const i=t[r[e]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),i}_createAnimations(t,e){const n=this._properties,r=[],i=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let s;for(s=o.length-1;s>=0;--s){const l=o[s];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(t,e));continue}const c=e[l];let u=i[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,a);continue}u.cancel()}d&&d.duration?(i[l]=u=new Yu(d,t,l,c),r.push(u)):t[l]=c}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Hu.add(this._chart,n),!0):void 0}}function Xu(t,e){const n=t&&t.options||{},r=n.reverse,i=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:r?o:i,end:r?i:o}}function Uu(t,e){const n=[],r=t._getSortedDatasetMetas(e);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function Zu(t,e,n,r={}){const i=t.keys,o="single"===r.mode;let a,s,l,c;if(null===e)return;let u=!1;for(a=0,s=i.length;a<s;++a){if(l=+i[a],l===n){if(u=!0,r.all)continue;break}c=t.values[l],rl(c)&&(o||0===e||Nl(e)===Nl(c))&&(e+=c)}return u||r.all?e:0}function Gu(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Ku(t,e,n){const r=t[e]||(t[e]={});return r[n]||(r[n]={})}function Ju(t,e,n,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const e=t[i.index];if(n&&e>0||!n&&e<0)return i.index}return null}function Qu(t,e){const{chart:n,_cachedMeta:r}=t,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,a,r),d=e.length;let h;for(let t=0;t<d;++t){const n=e[t],{[l]:o,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Ku(i,u,o),h[s]=d,h._top=Ju(h,a,!0,r.type),h._bottom=Ju(h,a,!1,r.type);(h._visualValues||(h._visualValues={}))[s]=d}}function td(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function ed(t,e){const n=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[r]||void 0===e[r][n])return;delete e[r][n],void 0!==e[r]._visualValues&&void 0!==e[r]._visualValues[n]&&delete e[r]._visualValues[n]}}}const nd=t=>"reset"===t||"none"===t,rd=(t,e)=>e?t:Object.assign({},t);class id{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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 t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Gu(t.vScale,t),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(t){this.index!==t&&ed(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),r=(t,e,n,r)=>"x"===t?e:"r"===t?r:n,i=e.xAxisID=ol(n.xAxisID,td(t,"x")),o=e.yAxisID=ol(n.yAxisID,td(t,"y")),a=e.rAxisID=ol(n.rAxisID,td(t,"r")),s=e.indexAxis,l=e.iAxisID=r(s,i,o,a),c=e.vAxisID=r(s,o,i,a);e.xScale=this.getScaleForId(i),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Gl(this._data,this),t._stacked&&ed(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(nl(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:r}=e,i="x"===n.axis?"x":"y",o="x"===r.axis?"x":"y",a=Object.keys(t),s=new Array(a.length);let l,c,u;for(l=0,c=a.length;l<c;++l)u=a[l],s[l]={[i]:u,[o]:t[u]};return s}(e,t)}else if(n!==e){if(n){Gl(n,this);const t=this._cachedMeta;ed(t),t._parsed=[]}e&&Object.isExtensible(e)&&function(t,e){t._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Zl.forEach((e=>{const n="_onData"+yl(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){const i=r.apply(this,e);return t._chartjs.listeners.forEach((t=>{"function"==typeof t[n]&&t[n](...e)})),i}})})))}(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let r=!1;this._dataCheck();const i=e._stacked;e._stacked=Gu(e.vScale,e),e.stack!==n.stack&&(r=!0,ed(e),e.stack=n.stack),this._resyncElements(t),(r||i!==e._stacked)&&(Qu(this,e._parsed),e._stacked=Gu(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:r}=this,{iScale:i,_stacked:o}=n,a=i.axis;let s,l,c,u=0===t&&e===r.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=r,n._sorted=!0,c=r;else{c=el(r[t])?this.parseArrayData(n,r,t,e):nl(r[t])?this.parseObjectData(n,r,t,e):this.parsePrimitiveData(n,r,t,e);const i=()=>null===l[a]||d&&l[a]<d[a];for(s=0;s<e;++s)n._parsed[s+t]=l=c[s],u&&(i()&&(u=!1),d=l);n._sorted=u}o&&Qu(this,c)}parsePrimitiveData(t,e,n,r){const{iScale:i,vScale:o}=t,a=i.axis,s=o.axis,l=i.getLabels(),c=i===o,u=new Array(r);let d,h,p;for(d=0,h=r;d<h;++d)p=d+n,u[d]={[a]:c||i.parse(l[p],p),[s]:o.parse(e[p],p)};return u}parseArrayData(t,e,n,r){const{xScale:i,yScale:o}=t,a=new Array(r);let s,l,c,u;for(s=0,l=r;s<l;++s)c=s+n,u=e[c],a[s]={x:i.parse(u[0],c),y:o.parse(u[1],c)};return a}parseObjectData(t,e,n,r){const{xScale:i,yScale:o}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l=new Array(r);let c,u,d,h;for(c=0,u=r;c<u;++c)d=c+n,h=e[d],l[c]={x:i.parse(vl(h,a),d),y:o.parse(vl(h,s),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const r=this.chart,i=this._cachedMeta,o=e[t.axis];return Zu({keys:Uu(r,!0),values:e._stacks[t.axis]._visualValues},o,i.index,{mode:n})}updateRangeFromParsed(t,e,n,r){const i=n[e.axis];let o=null===i?NaN:i;const a=r&&n._stacks[e.axis];r&&a&&(r.values=a,o=Zu(r,i,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,r=n._parsed,i=n._sorted&&t===n.iScale,o=r.length,a=this._getOtherScale(t),s=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Uu(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:r,maxDefined:i}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}(a);let d,h;function p(){h=r[d];const e=h[a.axis];return!rl(h[t.axis])||c>e||u<e}for(d=0;d<o&&(p()||(this.updateRangeFromParsed(l,t,h,s),!i));++d);if(i)for(d=o-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,t,h,s);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let r,i,o;for(r=0,i=e.length;r<i;++r)o=e[r][t.axis],rl(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,r=e.vScale,i=this.getParsed(t);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,r,i;return nl(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i,disabled:!1===t}}(ol(this.options.clip,function(t,e,n){if(!1===n)return!1;const r=Xu(t,n),i=Xu(e,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,r=n.data||[],i=e.chartArea,o=[],a=this._drawStart||0,s=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,i,a,s),c=a;c<a+s;++c){const e=r[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,i))}for(c=0;c<o.length;++c)o[c].draw(t,i)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const r=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];i=e.$context||(e.$context=function(t,e,n){return Uc(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),i.parsed=this.getParsed(t),i.raw=r.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=function(t,e){return Uc(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),i.dataset=r,i.index=i.datasetIndex=this.index;return i.active=!!e,i.mode=n,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const r="active"===e,i=this._cachedDataOpts,o=t+"-"+e,a=i[o],s=this.enableOptionSharing&&bl(n);if(a)return rd(a,s);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=r?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(wc.elements[t]),p=l.resolveNamedOptions(d,h,(()=>this.getContext(n,r,e)),u);return p.$shared&&(p.$shared=s,i[o]=Object.freeze(rd(p,s))),p}_resolveAnimations(t,e,n){const r=this.chart,i=this._cachedDataOpts,o=`animation-${e}`,a=i[o];if(a)return a;let s;if(!1!==r.options.animation){const r=this.chart.config,i=r.datasetAnimationScopeKeys(this._type,e),o=r.getOptionScopes(this.getDataset(),i);s=r.createResolver(o,this.getContext(t,n,e))}const l=new qu(r,s&&s.animations);return s&&s._cacheable&&(i[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||nd(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,i=this.getSharedOptions(n),o=this.includeOptions(e,i)||i!==r;return this.updateSharedOptions(i,e,n),{sharedOptions:i,includeOptions:o}}updateElement(t,e,n,r){nd(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}updateSharedOptions(t,e,n){t&&!nd(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,r){t.active=r;const i=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const r=n.length,i=e.length,o=Math.min(i,r);o&&this.parse(0,o),i>r?this._insertElements(r,i-r,t):i<r&&this._removeElements(i,r-i)}_insertElements(t,e,n=!0){const r=this._cachedMeta,i=r.data,o=t+e;let a;const s=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(s(i),a=t;a<o;++a)i[a]=new this.dataElementType;this._parsing&&s(r._parsed),this.parse(t,e),n&&this.updateElements(i,t,e,"reset")}updateElements(t,e,n,r){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const r=n._parsed.splice(t,e);n._stacked&&ed(n,r)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,r]=t;this[e](n,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function od(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let r=[];for(let e=0,i=n.length;e<i;e++)r=r.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=Kl(r.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let r,i,o,a,s=e._length;const l=()=>{32767!==o&&-32768!==o&&(bl(a)&&(s=Math.min(s,Math.abs(o-a)||s)),a=o)};for(r=0,i=n.length;r<i;++r)o=e.getPixelForValue(n[r]),l();for(a=void 0,r=0,i=e.ticks.length;r<i;++r)o=e.getPixelForTick(r),l();return s}function ad(t,e,n,r){return el(t)?function(t,e,n,r){const i=n.parse(t[0],r),o=n.parse(t[1],r),a=Math.min(i,o),s=Math.max(i,o);let l=a,c=s;Math.abs(a)>Math.abs(s)&&(l=s,c=a),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:i,end:o,min:a,max:s}}(t,e,n,r):e[n.axis]=n.parse(t,r),e}function sd(t,e,n,r){const i=t.iScale,o=t.vScale,a=i.getLabels(),s=i===o,l=[];let c,u,d,h;for(c=n,u=n+r;c<u;++c)h=e[c],d={},d[i.axis]=s||i.parse(a[c],c),l.push(ad(h,d,o,c));return l}function ld(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function cd(t,e,n,r){let i=e.borderSkipped;const o={};if(!i)return void(t.borderSkipped=o);if(!0===i)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:s,reverse:l,top:c,bottom:u}=function(t){let e,n,r,i,o;return t.horizontal?(e=t.base>t.x,n="left",r="right"):(e=t.base<t.y,n="bottom",r="top"),e?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:e,top:i,bottom:o}}(t);"middle"===i&&n&&(t.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=u:(o[ud(u,a,s,l)]=!0,i=c)),o[ud(i,a,s,l)]=!0,t.borderSkipped=o}function ud(t,e,n,r){var i,o,a;return r?(a=n,t=dd(t=(i=t)===(o=e)?a:i===a?o:i,n,e)):t=dd(t,e,n),t}function dd(t,e,n){return"start"===t?e:"end"===t?n:t}function hd(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class pd extends id{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(t,e,n,r){return sd(t,e,n,r)}parseArrayData(t,e,n,r){return sd(t,e,n,r)}parseObjectData(t,e,n,r){const{iScale:i,vScale:o}=t,{xAxisKey:a="x",yAxisKey:s="y"}=this._parsing,l="x"===i.axis?a:s,c="x"===o.axis?a:s,u=[];let d,h,p,f;for(d=n,h=n+r;d<h;++d)f=e[d],p={},p[i.axis]=i.parse(vl(f,l),d),u.push(ad(vl(f,c),p,o,d));return u}updateRangeFromParsed(t,e,n,r){super.updateRangeFromParsed(t,e,n,r);const i=n._custom;i&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:r}=e,i=this.getParsed(t),o=i._custom,a=ld(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,r){const i="reset"===r,{index:o,_cachedMeta:{vScale:a}}=this,s=a.getBasePixel(),l=a.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,r);for(let h=e;h<e+n;h++){const e=this.getParsed(h),n=i||tl(e[a.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,c),f=(e._stacks||{})[a.axis],m={horizontal:l,base:n.base,enableBorderRadius:!f||ld(e._custom)||o===f._top||o===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};d&&(m.options=u||this.resolveDataElementOptions(h,t[h].active?"active":r));const g=m.options||t[h].options;cd(m,g,f,o),hd(m,g,c.ratio),this.updateElement(t[h],h,m,r)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),i=n.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(e),s=a&&a[n.axis],l=t=>{const e=t._parsed.find((t=>t[n.axis]===s)),r=e&&e[t.vScale.axis];if(tl(r)||isNaN(r))return!0};for(const n of r)if((void 0===e||!l(n))&&((!1===i||-1===o.indexOf(n.stack)||void 0===i&&void 0===n.stack)&&o.push(n.stack),n.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const r=this._getStacks(t,n),i=void 0!==e?r.indexOf(e):-1;return-1===i?r.length-1:i}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,r=[];let i,o;for(i=0,o=e.data.length;i<o;++i)r.push(n.getPixelForValue(this.getParsed(i)[n.axis],i));const a=t.barThickness;return{min:a||od(e),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:r},options:{base:i,minBarLength:o}}=this,a=i||0,s=this.getParsed(t),l=s._custom,c=ld(l);let u,d,h=s[e.axis],p=0,f=n?this.applyStack(e,s,n):h;f!==h&&(p=f-h,f=h),c&&(h=l.barStart,f=l.barEnd-l.barStart,0!==h&&Nl(h)!==Nl(l.barEnd)&&(p=0),p+=h);const m=tl(i)||c?p:i;let g=e.getPixelForValue(m);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):g,d=u-g,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Nl(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,a)*o,h===a&&(g-=d/2);const t=e.getPixelForDecimal(0),i=e.getPixelForDecimal(1),l=Math.min(t,i),p=Math.max(t,i);g=Math.max(Math.min(g,p),l),u=g+d,n&&!c&&(s._stacks[e.axis]._visualValues[r]=e.getValueForPixel(u)-e.getValueForPixel(g))}if(g===e.getPixelForValue(a)){const t=Nl(d)*e.getLineWidthForValue(a)/2;g+=t,d-=t}return{size:d,base:g,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,r=this.options,i=r.skipNull,o=ol(r.maxBarThickness,1/0);let a,s;if(e.grouped){const n=i?this._getStackCount(t):e.stackCount,l="flex"===r.barThickness?function(t,e,n,r){const i=e.pixels,o=i[t];let a=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null;const l=n.categoryPercentage;null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a);const c=o-(o-Math.min(a,s))/2*l;return{chunk:Math.abs(s-a)/2*l/r,ratio:n.barPercentage,start:c}}(t,e,r,n):function(t,e,n,r){const i=n.barThickness;let o,a;return tl(i)?(o=e.min*n.categoryPercentage,a=n.barPercentage):(o=i*r,a=1),{chunk:o/r,ratio:a,start:e.pixels[t]-o/2}}(t,e,r,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0);a=l.start+l.chunk*c+l.chunk/2,s=Math.min(o,l.chunk*l.ratio)}else a=n.getPixelForValue(this.getParsed(t)[n.axis],t),s=Math.min(o,e.min*e.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,r=n.length;let i=0;for(;i<r;++i)null===this.getParsed(i)[e.axis]||n[i].hidden||n[i].draw(this._ctx)}}class fd extends id{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:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return e.labels.map(((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{let i,o,a=t=>+n[t];if(nl(n[t])){const{key:t="value"}=this._parsing;a=e=>+vl(n[e],t)}for(i=t,o=t+e;i<o;++i)r._parsed[i]=a(i)}}_getRotation(){return zl(this.options.rotation-90)}_getCircumference(){return zl(this.options.circumference)}_getRotationExtents(){let t=Sl,e=-Sl;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),o=r._getCircumference();t=Math.min(t,i),e=Math.max(e,i+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,r=this._cachedMeta,i=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,a=Math.max((Math.min(n.width,n.height)-o)/2,0),s=Math.min((l=this.options.cutout,c=a,"string"==typeof l&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const u=this._getRingWeight(this.index),{circumference:d,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:f,offsetX:m,offsetY:g}=function(t,e,n){let r=1,i=1,o=0,a=0;if(e<Sl){const s=t,l=s+e,c=Math.cos(s),u=Math.sin(s),d=Math.cos(l),h=Math.sin(l),p=(t,e,r)=>Wl(t,s,l,!0)?1:Math.max(e,e*n,r,r*n),f=(t,e,r)=>Wl(t,s,l,!0)?-1:Math.min(e,e*n,r,r*n),m=p(0,c,d),g=p(Ml,u,h),v=f(wl,c,d),y=f(wl+Ml,u,h);r=(m-v)/2,i=(g-y)/2,o=-(m+v)/2,a=-(g+y)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:a}}(h,d,s),v=(n.width-o)/p,y=(n.height-o)/f,b=Math.max(Math.min(v,y)/2,0),x=al(this.options.radius,b),_=(x-Math.max(x*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*x,this.offsetY=g*x,r.total=this.calculateTotal(),this.outerRadius=x-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*u,0),this.updateElements(i,0,i.length,t)}_circumference(t,e){const n=this.options,r=this._cachedMeta,i=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*i/Sl)}updateElements(t,e,n,r){const i="reset"===r,o=this.chart,a=o.chartArea,s=o.options.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=i&&s.animateScale,d=u?0:this.innerRadius,h=u?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,r);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,i);for(m=e;m<e+n;++m){const e=this._circumference(m,i),n=t[m],o={x:l+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:h,innerRadius:d};f&&(o.options=p||this.resolveDataElementOptions(m,n.active?"active":r)),g+=e,this.updateElement(n,m,o,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,r=0;for(n=0;n<e.length;n++){const i=t._parsed[n];null===i||isNaN(i)||!this.chart.getDataVisibility(n)||e[n].hidden||(r+=Math.abs(i))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?Sl*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=fc(e._parsed[t],n.options.locale);return{label:r[t]||"",value:i}}getMaxBorderWidth(t){let e=0;const n=this.chart;let r,i,o,a,s;if(!t)for(r=0,i=n.data.datasets.length;r<i;++r)if(n.isDatasetVisible(r)){o=n.getDatasetMeta(r),t=o.data,a=o.controller;break}if(!t)return 0;for(r=0,i=t.length;r<i;++r)s=a.resolveDataElementOptions(r),"inner"!==s.borderAlign&&(e=Math.max(e,s.borderWidth||0,s.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,r=t.length;n<r;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(ol(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class md extends id{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n,color:r}}=t.legend.options;return e.labels.map(((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=fc(e._parsed[t].r,n.options.locale);return{label:r[t]||"",value:i}}parseObjectData(t,e,n,r){return lu.bind(this)(t,e,n,r)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,n)=>{const r=this.getParsed(n).r;!isNaN(r)&&this.chart.getDataVisibility(n)&&(r<e.min&&(e.min=r),r>e.max&&(e.max=r))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),i=Math.max(r/2,0),o=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=i-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,n,r){const i="reset"===r,o=this.chart,a=o.options.animation,s=this._cachedMeta.rScale,l=s.xCenter,c=s.yCenter,u=s.getIndexAngle(0)-.5*wl;let d,h=u;const p=360/this.countVisibleElements();for(d=0;d<e;++d)h+=this._computeAngle(d,r,p);for(d=e;d<e+n;d++){const e=t[d];let n=h,f=h+this._computeAngle(d,r,p),m=o.getDataVisibility(d)?s.getDistanceFromCenterForValue(this.getParsed(d).r):0;h=f,i&&(a.animateScale&&(m=0),a.animateRotate&&(n=f=u));const g={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:f,options:this.resolveDataElementOptions(d,e.active?"active":r)};this.updateElement(e,d,g,r)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?zl(this.resolveDataElementOptions(t,e).angle||n):0}}var gd=Object.freeze({__proto__:null,BarController:pd,BubbleController:class extends id{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,r){const i=super.parsePrimitiveData(t,e,n,r);for(let t=0;t<i.length;t++)i[t]._custom=this.resolveDataElementOptions(t+n).radius;return i}parseArrayData(t,e,n,r){const i=super.parseArrayData(t,e,n,r);for(let t=0;t<i.length;t++){const r=e[n+t];i[t]._custom=ol(r[2],this.resolveDataElementOptions(t+n).radius)}return i}parseObjectData(t,e,n,r){const i=super.parseObjectData(t,e,n,r);for(let t=0;t<i.length;t++){const r=e[n+t];i[t]._custom=ol(r&&r.r&&+r.r,this.resolveDataElementOptions(t+n).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),s=i.getLabelForValue(o.y),l=o._custom;return{label:n[t]||"",value:"("+a+", "+s+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,r){const i="reset"===r,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:s,includeOptions:l}=this._getSharedOptions(e,r),c=o.axis,u=a.axis;for(let d=e;d<e+n;d++){const e=t[d],n=!i&&this.getParsed(d),h={},p=h[c]=i?o.getPixelForDecimal(.5):o.getPixelForValue(n[c]),f=h[u]=i?a.getBasePixel():a.getPixelForValue(n[u]);h.skip=isNaN(p)||isNaN(f),l&&(h.options=s||this.resolveDataElementOptions(d,e.active?"active":r),i&&(h.options.radius=0)),this.updateElement(e,d,h,r)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const i=r.radius;return"active"!==e&&(r.radius=0),r.radius+=ol(n&&n._custom,i),r}},DoughnutController:fd,LineController:class extends id{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:r=[],_dataset:i}=e,o=this.chart._animationsDisabled;let{start:a,count:s}=nc(e,r,o);this._drawStart=a,this._drawCount=s,rc(e)&&(a=0,s=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!i._decimated,n.points=r;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:l},t),this.updateElements(r,a,s,t)}updateElements(t,e,n,r){const i="reset"===r,{iScale:o,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:u}=this._getSharedOptions(e,r),d=o.axis,h=a.axis,{spanGaps:p,segment:f}=this.options,m=Ll(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||i||"none"===r,v=e+n,y=t.length;let b=e>0&&this.getParsed(e-1);for(let n=0;n<y;++n){const p=t[n],y=g?p:{};if(n<e||n>=v){y.skip=!0;continue}const x=this.getParsed(n),_=tl(x[h]),w=y[d]=o.getPixelForValue(x[d],n),S=y[h]=i||_?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,x,s):x[h],n);y.skip=isNaN(w)||isNaN(S)||_,y.stop=n>0&&Math.abs(x[d]-b[d])>m,f&&(y.parsed=x,y.raw=l.data[n]),u&&(y.options=c||this.resolveDataElementOptions(n,p.active?"active":r)),g||this.updateElement(p,n,y,r),b=x}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return n;const i=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends fd{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:md,RadarController:class extends id{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,r){return lu.bind(this)(t,e,n,r)}update(t){const e=this._cachedMeta,n=e.dataset,r=e.data||[],i=e.iScale.getLabels();if(n.points=r,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const o={_loop:!0,_fullLoop:i.length===r.length,options:e};this.updateElement(n,void 0,o,t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,n,r){const i=this._cachedMeta.rScale,o="reset"===r;for(let a=e;a<e+n;a++){const e=t[a],n=this.resolveDataElementOptions(a,e.active?"active":r),s=i.getPointPositionForValue(a,this.getParsed(a).r),l=o?i.xCenter:s.x,c=o?i.yCenter:s.y,u={x:l,y:c,angle:s.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,a,u,r)}}},ScatterController:class extends id{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:i}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),s=i.getLabelForValue(o.y);return{label:n[t]||"",value:"("+a+", "+s+")"}}update(t){const e=this._cachedMeta,{data:n=[]}=e,r=this.chart._animationsDisabled;let{start:i,count:o}=nc(e,n,r);if(this._drawStart=i,this._drawCount=o,rc(e)&&(i=0,o=n.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:i,_dataset:o}=e;i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=n;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:a},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(n,i,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,n,r){const i="reset"===r,{iScale:o,vScale:a,_stacked:s,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,r),u=this.getSharedOptions(c),d=this.includeOptions(r,u),h=o.axis,p=a.axis,{spanGaps:f,segment:m}=this.options,g=Ll(f)?f:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||i||"none"===r;let y=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),f=v?e:{},b=tl(n[p]),x=f[h]=o.getPixelForValue(n[h],c),_=f[p]=i||b?a.getBasePixel():a.getPixelForValue(s?this.applyStack(a,n,s):n[p],c);f.skip=isNaN(x)||isNaN(_)||b,f.stop=c>0&&Math.abs(n[h]-y[h])>g,m&&(f.parsed=n,f.raw=l.data[c]),d&&(f.options=u||this.resolveDataElementOptions(c,e.active?"active":r)),v||this.updateElement(e,c,f,r),y=n}this.updateSharedOptions(u,r,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,r=n.options&&n.options.borderWidth||0;if(!e.length)return r;const i=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,i,o)/2}}});function vd(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class yd{static override(t){Object.assign(yd.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return vd()}parse(){return vd()}format(){return vd()}add(){return vd()}diff(){return vd()}startOf(){return vd()}endOf(){return vd()}}var bd={_date:yd};function xd(t,e,n,r){const{controller:i,data:o,_sorted:a}=t,s=i._cachedMeta.iScale;if(s&&e===s.axis&&"r"!==e&&a&&o.length){const t=s._reversePixels?Ul:Xl;if(!r)return t(o,e,n);if(i._sharedOptions){const r=o[0],i="function"==typeof r.getRange&&r.getRange(e);if(i){const r=t(o,e,n-i),a=t(o,e,n+i);return{lo:r.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function _d(t,e,n,r,i){const o=t.getSortedVisibleDatasetMetas(),a=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:s}=o[t],{lo:l,hi:c}=xd(o[t],e,a,i);for(let t=l;t<=c;++t){const e=s[t];e.skip||r(e,n,t)}}}function wd(t,e,n,r,i){const o=[];if(!i&&!t.isPointInArea(e))return o;return _d(t,n,e,(function(n,a,s){(i||Oc(n,t.chartArea,0))&&n.inRange(e.x,e.y,r)&&o.push({element:n,datasetIndex:a,index:s})}),!0),o}function Sd(t,e,n,r,i,o){let a=[];const s=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){const i=e?Math.abs(t.x-r.x):0,o=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return _d(t,n,e,(function(n,c,u){const d=n.inRange(e.x,e.y,i);if(r&&!d)return;const h=n.getCenterPoint(i);if(!(!!o||t.isPointInArea(h))&&!d)return;const p=s(e,h);p<l?(a=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&a.push({element:n,datasetIndex:c,index:u})})),a}function kd(t,e,n,r,i,o){return o||t.isPointInArea(e)?"r"!==n||r?Sd(t,e,n,r,i,o):function(t,e,n,r){let i=[];return _d(t,n,e,(function(t,n,o){const{startAngle:a,endAngle:s}=t.getProps(["startAngle","endAngle"],r),{angle:l}=$l(t,{x:e.x,y:e.y});Wl(l,a,s)&&i.push({element:t,datasetIndex:n,index:o})})),i}(t,e,n,i):[]}function Cd(t,e,n,r,i){const o=[],a="x"===n?"inXRange":"inYRange";let s=!1;return _d(t,n,e,((t,r,l)=>{t[a]&&t[a](e[n],i)&&(o.push({element:t,datasetIndex:r,index:l}),s=s||t.inRange(e.x,e.y,i))})),r&&!s?[]:o}var Ed={evaluateInteractionItems:_d,modes:{index(t,e,n,r){const i=wu(e,t),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?wd(t,i,o,r,a):kd(t,i,o,!1,r,a),l=[];return s.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=s[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,r){const i=wu(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?wd(t,i,o,r,a):kd(t,i,o,!1,r,a);if(s.length>0){const e=s[0].datasetIndex,n=t.getDatasetMeta(e).data;s=[];for(let t=0;t<n.length;++t)s.push({element:n[t],datasetIndex:e,index:t})}return s},point:(t,e,n,r)=>wd(t,wu(e,t),n.axis||"xy",r,n.includeInvisible||!1),nearest(t,e,n,r){const i=wu(e,t),o=n.axis||"xy",a=n.includeInvisible||!1;return kd(t,i,o,n.intersect,r,a)},x:(t,e,n,r)=>Cd(t,wu(e,t),"x",n.intersect,r),y:(t,e,n,r)=>Cd(t,wu(e,t),"y",n.intersect,r)}};const Md=["left","top","right","bottom"];function Pd(t,e){return t.filter((t=>t.pos===e))}function Od(t,e){return t.filter((t=>-1===Md.indexOf(t.pos)&&t.box.axis===e))}function Td(t,e){return t.sort(((t,n)=>{const r=e?n:t,i=e?t:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function Nd(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:r,stackWeight:i}=n;if(!t||!Md.includes(r))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=i}return e}(t),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let o,a,s;for(o=0,a=t.length;o<a;++o){s=t[o];const{fullSize:a}=s.box,l=n[s.stack],c=l&&s.stackWeight/l.weight;s.horizontal?(s.width=c?c*r:a&&e.availableWidth,s.height=i):(s.width=r,s.height=c?c*i:a&&e.availableHeight)}return n}function Ad(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function Dd(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ld(t,e,n,r){const{pos:i,box:o}=n,a=t.maxPadding;if(!nl(i)){n.size&&(t[i]-=n.size);const e=r[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?o.height:o.width),n.size=e.size/e.count,t[i]+=n.size}o.getPadding&&Dd(a,o.getPadding());const s=Math.max(0,e.outerWidth-Ad(a,t,"left","right")),l=Math.max(0,e.outerHeight-Ad(a,t,"top","bottom")),c=s!==t.w,u=l!==t.h;return t.w=s,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Id(t,e){const n=e.maxPadding;function r(t){const r={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{r[t]=Math.max(e[t],n[t])})),r}return r(t?["left","right"]:["top","bottom"])}function zd(t,e,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=t.length,c=0;o<a;++o){s=t[o],l=s.box,l.update(s.width||e.w,s.height||e.h,Id(s.horizontal,e));const{same:a,other:d}=Ld(e,n,s,r);c|=a&&i.length,u=u||d,l.fullSize||i.push(s)}return c&&zd(i,e,n,r)||u}function Rd(t,e,n,r,i){t.top=n,t.left=e,t.right=e+r,t.bottom=n+i,t.width=r,t.height=i}function Fd(t,e,n,r){const i=n.padding;let{x:o,y:a}=e;for(const s of t){const t=s.box,l=r[s.stack]||{count:1,placed:0,weight:1},c=s.stackWeight/l.weight||1;if(s.horizontal){const r=e.w*c,o=l.size||t.height;bl(l.start)&&(a=l.start),t.fullSize?Rd(t,i.left,a,n.outerWidth-i.right-i.left,o):Rd(t,e.left+l.placed,a,r,o),l.start=a,l.placed+=r,a=t.bottom}else{const r=e.h*c,a=l.size||t.width;bl(l.start)&&(o=l.start),t.fullSize?Rd(t,o,i.top,a,n.outerHeight-i.bottom-i.top):Rd(t,o,e.top+l.placed,a,r),l.start=o,l.placed+=r,o=t.right}}e.x=o,e.y=a}var $d={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,r){if(!t)return;const i=Yc(t.options.layout.padding),o=Math.max(e-i.width,0),a=Math.max(n-i.height,0),s=function(t){const e=function(t){const e=[];let n,r,i,o,a,s;for(n=0,r=(t||[]).length;n<r;++n)i=t[n],({position:o,options:{stack:a,stackWeight:s=1}}=i),e.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:a&&o+a,stackWeight:s});return e}(t),n=Td(e.filter((t=>t.box.fullSize)),!0),r=Td(Pd(e,"left"),!0),i=Td(Pd(e,"right")),o=Td(Pd(e,"top"),!0),a=Td(Pd(e,"bottom")),s=Od(e,"x"),l=Od(e,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:Pd(e,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}(t.boxes),l=s.vertical,c=s.horizontal;ll(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),h=Object.assign({},i);Dd(h,Yc(r));const p=Object.assign({maxPadding:h,w:o,h:a,x:i.left,y:i.top},i),f=Nd(l.concat(c),d);zd(s.fullSize,p,d,f),zd(l,p,d,f),zd(c,p,d,f)&&zd(l,p,d,f),function(t){const e=t.maxPadding;function n(n){const r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Fd(s.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,Fd(s.rightAndBottom,p,d,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},ll(s.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class jd{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,r){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):n)}}isAttached(t){return!0}updateConfig(t){}}class Bd extends jd{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Hd="$chartjs",Wd={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vd=t=>null===t||""===t;const Yd=!!Eu&&{passive:!0};function qd(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Yd)}function Xd(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Ud(t,e,n){const r=t.canvas,i=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Xd(n.addedNodes,r),e=e&&!Xd(n.removedNodes,r);e&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function Zd(t,e,n){const r=t.canvas,i=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||Xd(n.removedNodes,r),e=e&&!Xd(n.addedNodes,r);e&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}const Gd=new Map;let Kd=0;function Jd(){const t=window.devicePixelRatio;t!==Kd&&(Kd=t,Gd.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Qd(t,e,n){const r=t.canvas,i=r&&vu(r);if(!i)return;const o=Ql(((t,e)=>{const r=i.clientWidth;n(t,e),r<i.clientWidth&&n()}),window),a=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,r=e.contentRect.height;0===n&&0===r||o(n,r)}));return a.observe(i),function(t,e){Gd.size||window.addEventListener("resize",Jd),Gd.set(t,e)}(t,o),a}function th(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Gd.delete(t),Gd.size||window.removeEventListener("resize",Jd)}(t)}function eh(t,e,n){const r=t.canvas,i=Ql((e=>{null!==t.ctx&&n(function(t,e){const n=Wd[t.type]||t.type,{x:r,y:i}=wu(t,e);return{type:n,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==i?i:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,Yd)}(r,e,i),i}class nh extends jd{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[Hd]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Vd(i)){const e=Mu(t,"width");void 0!==e&&(t.width=e)}if(Vd(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Mu(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Hd])return!1;const n=e[Hd].initial;["height","width"].forEach((t=>{const r=n[t];tl(r)?e.removeAttribute(t):e.setAttribute(t,r)}));const r=n.style||{};return Object.keys(r).forEach((t=>{e.style[t]=r[t]})),e.width=e.width,delete e[Hd],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),i={attach:Ud,detach:Zd,resize:Qd}[e]||eh;r[e]=i(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),r=n[e];if(!r)return;({attach:th,detach:th,resize:th}[e]||qd)(t,e,r),n[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,r){return ku(t,e,n,r)}isAttached(t){const e=t&&vu(t);return!(!e||!e.isConnected)}}class rh{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return Ll(this.x)&&Ll(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const r={};return t.forEach((t=>{r[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),r}}function ih(t,e){const n=t.options.ticks,r=function(t){const e=t.options.offset,n=t._tickSize(),r=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(r,i))}(t),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?function(t){const e=[];let n,r;for(n=0,r=t.length;n<r;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return function(t,e,n,r){let i,o=0,a=n[0];for(r=Math.ceil(r),i=0;i<t.length;i++)i===a&&(e.push(t[i]),o++,a=n[o*r])}(e,c,o,a/i),c;const u=function(t,e,n){const r=function(t){const e=t.length;let n,r;if(e<2)return!1;for(r=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==r)return!1;return r}(t),i=e.length/n;if(!r)return Math.max(i,1);const o=function(t){const e=[],n=Math.sqrt(t);let r;for(r=1;r<n;r++)t%r==0&&(e.push(r),e.push(t/r));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(r);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>i)return e}return Math.max(i,1)}(o,e,i);if(a>0){let t,n;const r=a>1?Math.round((l-s)/(a-1)):null;for(oh(e,c,u,tl(r)?0:s-r,s),t=0,n=a-1;t<n;t++)oh(e,c,u,o[t],o[t+1]);return oh(e,c,u,l,tl(r)?e.length:l+r),c}return oh(e,c,u),c}function oh(t,e,n,r,i){const o=ol(r,0),a=Math.min(ol(i,t.length),t.length);let s,l,c,u=0;for(n=Math.ceil(n),i&&(s=i-r,n=s/Math.floor(s/n)),c=o;c<0;)u++,c=Math.round(o+u*n);for(l=Math.max(o,0);l<a;l++)l===c&&(e.push(t[l]),u++,c=Math.round(o+u*n))}const ah=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,sh=(t,e)=>Math.min(e||t,t);function lh(t,e){const n=[],r=t.length/e,i=t.length;let o=0;for(;o<i;o+=r)n.push(t[Math.floor(o)]);return n}function ch(t,e,n){const r=t.ticks.length,i=Math.min(e,r-1),o=t._startPixel,a=t._endPixel,s=1e-6;let l,c=t.getPixelForTick(i);if(!(n&&(l=1===r?Math.max(c-o,a-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(i-1))/2,c+=i<e?l:-l,c<o-s||c>a+s)))return c}function uh(t){return t.drawTicks?t.tickLength:0}function dh(t,e){if(!t.display)return 0;const n=qc(t.font,e),r=Yc(t.padding);return(el(t.text)?t.text.length:1)*n.lineHeight+r.height}function hh(t,e,n){let r=tc(t);return(n&&"right"!==e||!n&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class ph extends rh{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.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(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:r}=this;return t=il(t,Number.POSITIVE_INFINITY),e=il(e,Number.NEGATIVE_INFINITY),n=il(n,Number.POSITIVE_INFINITY),r=il(r,Number.NEGATIVE_INFINITY),{min:il(t,n),max:il(e,r),minDefined:rl(t),maxDefined:rl(e)}}getMinMax(t){let e,{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds();if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let s=0,l=a.length;s<l;++s)e=a[s].controller.getMinMax(this,t),i||(n=Math.min(n,e.min)),o||(r=Math.max(r,e.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:il(n,il(r,n)),max:il(r,il(n,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 t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){sl(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:r,grace:i,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,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(t,e,n){const{min:r,max:i}=t,o=al(e,(i-r)/2),a=(t,e)=>n&&0===t?0:t+e;return{min:a(r,-Math.abs(o)),max:a(i,o)}}(this,i,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a<this.ticks.length;this._convertTicksToLabels(s?lh(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=ih(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),s&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){sl(this.options.afterUpdate,[this])}beforeSetDimensions(){sl(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(){sl(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),sl(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){sl(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,r,i;for(n=0,r=t.length;n<r;n++)i=t[n],i.label=sl(e.callback,[i.value,n,t],this)}afterTickToLabelConversion(){sl(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){sl(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=sh(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,i=e.maxRotation;let o,a,s,l=r;if(!this._isVisible()||!e.display||r>=i||n<=1||!this.isHorizontal())return void(this.labelRotation=r);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=Vl(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:h/(n-1),u+6>o&&(o=h/(n-(t.offset?.5:1)),a=this.maxHeight-uh(t.grid)-e.padding-dh(t.title,this.chart.options.font),s=Math.sqrt(u*u+d*d),l=Rl(Math.min(Math.asin(Vl((c.highest.height+6)/o,-1,1)),Math.asin(Vl(a/s,-1,1))-Math.asin(Vl(d/s,-1,1)))),l=Math.max(r,Math.min(i,l))),this.labelRotation=l}afterCalculateLabelRotation(){sl(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){sl(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:r,grid:i}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=dh(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=uh(i)+o):(t.height=this.maxHeight,t.width=uh(i)+o),n.display&&this.ticks.length){const{first:e,last:r,widest:i,highest:o}=this._getLabelSizes(),s=2*n.padding,l=zl(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(a){const e=n.mirror?0:u*i.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+s)}else{const e=n.mirror?0:c*i.width+u*o.height;t.width=Math.min(this.maxWidth,t.width+e+s)}this._calculatePadding(e,r,u,c)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,r){const{ticks:{align:i,padding:o},position:a}=this.options,s=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;s?l?(u=r*t.width,d=n*e.height):(u=n*t.height,d=r*e.width):"start"===i?d=e.width:"end"===i?u=t.width:"inner"!==i&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let n=e.height/2,r=t.height/2;"start"===i?(n=0,r=t.height):"end"===i&&(n=e.height,r=0),this.paddingTop=n+o,this.paddingBottom=r+o}}_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(){sl(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)tl(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=lh(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:r,_longestTextCache:i}=this,o=[],a=[],s=Math.floor(e/sh(e,n));let l,c,u,d,h,p,f,m,g,v,y,b=0,x=0;for(l=0;l<e;l+=s){if(d=t[l].label,h=this._resolveTickFontOptions(l),r.font=p=h.string,f=i[p]=i[p]||{data:{},gc:[]},m=h.lineHeight,g=v=0,tl(d)||el(d)){if(el(d))for(c=0,u=d.length;c<u;++c)y=d[c],tl(y)||el(y)||(g=Sc(r,f.data,f.gc,g,y),v+=m)}else g=Sc(r,f.data,f.gc,g,d),v=m;o.push(g),a.push(v),b=Math.max(g,b),x=Math.max(v,x)}!function(t,e){ll(t,(t=>{const n=t.gc,r=n.length/2;let i;if(r>e){for(i=0;i<r;++i)delete t.data[n[i]];n.splice(0,r)}}))}(i,e);const _=o.indexOf(b),w=a.indexOf(x),S=t=>({width:o[t]||0,height:a[t]||0});return{first:S(0),last:S(e-1),widest:S(_),highest:S(w),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return Vl(this._alignToPixels?Cc(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return Uc(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Uc(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=zl(this.labelRotation),n=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),i=this._getLabelSizes(),o=t.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,r=this.options,{grid:i,position:o,border:a}=r,s=i.offset,l=this.isHorizontal(),c=this.ticks.length+(s?1:0),u=uh(i),d=[],h=a.setContext(this.getContext()),p=h.display?h.width:0,f=p/2,m=function(t){return Cc(n,t,p)};let g,v,y,b,x,_,w,S,k,C,E,M;if("top"===o)g=m(this.bottom),_=this.bottom-u,S=g-f,C=m(t.top)+f,M=t.bottom;else if("bottom"===o)g=m(this.top),C=t.top,M=m(t.bottom)-f,_=g+f,S=this.top+u;else if("left"===o)g=m(this.right),x=this.right-u,w=g-f,k=m(t.left)+f,E=t.right;else if("right"===o)g=m(this.left),k=t.left,E=m(t.right)-f,x=g+f,w=this.left+u;else if("x"===e){if("center"===o)g=m((t.top+t.bottom)/2+.5);else if(nl(o)){const t=Object.keys(o)[0],e=o[t];g=m(this.chart.scales[t].getPixelForValue(e))}C=t.top,M=t.bottom,_=g+f,S=_+u}else if("y"===e){if("center"===o)g=m((t.left+t.right)/2);else if(nl(o)){const t=Object.keys(o)[0],e=o[t];g=m(this.chart.scales[t].getPixelForValue(e))}x=g-f,w=x-u,k=t.left,E=t.right}const P=ol(r.ticks.maxTicksLimit,c),O=Math.max(1,Math.ceil(c/P));for(v=0;v<c;v+=O){const t=this.getContext(v),e=i.setContext(t),r=a.setContext(t),o=e.lineWidth,c=e.color,u=r.dash||[],h=r.dashOffset,p=e.tickWidth,f=e.tickColor,m=e.tickBorderDash||[],g=e.tickBorderDashOffset;y=ch(this,v,s),void 0!==y&&(b=Cc(n,y,o),l?x=w=k=E=b:_=S=C=M=b,d.push({tx1:x,ty1:_,tx2:w,ty2:S,x1:k,y1:C,x2:E,y2:M,width:o,color:c,borderDash:u,borderDashOffset:h,tickWidth:p,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=c,this._borderValue=g,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:r,ticks:i}=n,o=this.isHorizontal(),a=this.ticks,{align:s,crossAlign:l,padding:c,mirror:u}=i,d=uh(n.grid),h=d+c,p=u?-c:h,f=-zl(this.labelRotation),m=[];let g,v,y,b,x,_,w,S,k,C,E,M,P="middle";if("top"===r)_=this.bottom-p,w=this._getXAxisLabelAlignment();else if("bottom"===r)_=this.top+p,w=this._getXAxisLabelAlignment();else if("left"===r){const t=this._getYAxisLabelAlignment(d);w=t.textAlign,x=t.x}else if("right"===r){const t=this._getYAxisLabelAlignment(d);w=t.textAlign,x=t.x}else if("x"===e){if("center"===r)_=(t.top+t.bottom)/2+h;else if(nl(r)){const t=Object.keys(r)[0],e=r[t];_=this.chart.scales[t].getPixelForValue(e)+h}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)x=(t.left+t.right)/2-h;else if(nl(r)){const t=Object.keys(r)[0],e=r[t];x=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===s?P="top":"end"===s&&(P="bottom"));const O=this._getLabelSizes();for(g=0,v=a.length;g<v;++g){y=a[g],b=y.label;const t=i.setContext(this.getContext(g));S=this.getPixelForTick(g)+i.labelOffset,k=this._resolveTickFontOptions(g),C=k.lineHeight,E=el(b)?b.length:1;const e=E/2,n=t.color,s=t.textStrokeColor,c=t.textStrokeWidth;let d,h=w;if(o?(x=S,"inner"===w&&(h=g===v-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),M="top"===r?"near"===l||0!==f?-E*C+C/2:"center"===l?-O.highest.height/2-e*C+C:-O.highest.height+C/2:"near"===l||0!==f?C/2:"center"===l?O.highest.height/2-e*C:O.highest.height-E*C,u&&(M*=-1),0===f||t.showLabelBackdrop||(x+=C/2*Math.sin(f))):(_=S,M=(1-E)*C/2),t.showLabelBackdrop){const e=Yc(t.backdropPadding),n=O.heights[g],r=O.widths[g];let i=M-e.top,o=0-e.left;switch(P){case"middle":i-=n/2;break;case"bottom":i-=n}switch(w){case"center":o-=r/2;break;case"right":o-=r;break;case"inner":g===v-1?o-=r:g>0&&(o-=r/2)}d={left:o,top:i,width:r+e.width,height:n+e.height,color:t.backdropColor}}m.push({label:b,font:k,textOffset:M,options:{rotation:f,color:n,strokeColor:s,strokeWidth:c,textAlign:h,textBaseline:P,translation:[x,_],backdrop:d}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-zl(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:r,padding:i}}=this.options,o=t+i,a=this._getLabelSizes().widest.width;let s,l;return"left"===e?r?(l=this.right+i,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l+=a)):(l=this.right-o,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l=this.left)):"right"===e?r?(l=this.left+i,"near"===n?s="right":"center"===n?(s="center",l-=a/2):(s="left",l-=a)):(l=this.left+o,"near"===n?s="left":"center"===n?(s="center",l+=a/2):(s="right",l=this.right)):s="right",{textAlign:s,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:r,width:i,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,r,i,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));if(n>=0){return e.setContext(this.getContext(n)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,o;const a=(t,e,r)=>{r.width&&r.color&&(n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.setLineDash(r.borderDash||[]),n.lineDashOffset=r.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(i=0,o=r.length;i<o;++i){const t=r[i];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:r}}=this,i=n.setContext(this.getContext()),o=n.display?i.width:0;if(!o)return;const a=r.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Cc(t,this.left,o)-o/2,c=Cc(t,this.right,a)+a/2,u=d=s):(u=Cc(t,this.top,o)-o/2,d=Cc(t,this.bottom,a)+a/2,l=c=s),e.save(),e.lineWidth=i.width,e.strokeStyle=i.color,e.beginPath(),e.moveTo(l,u),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&Tc(e,n);const r=this.getLabelItems(t);for(const t of r){const n=t.options,r=t.font;zc(e,t.label,0,t.textOffset,r,n)}n&&Nc(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:r}}=this;if(!n.display)return;const i=qc(n.font),o=Yc(n.padding),a=n.align;let s=i.lineHeight/2;"bottom"===e||"center"===e||nl(e)?(s+=o.bottom,el(n.text)&&(s+=i.lineHeight*(n.text.length-1))):s+=o.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(t,e,n,r){const{top:i,left:o,bottom:a,right:s,chart:l}=t,{chartArea:c,scales:u}=l;let d,h,p,f=0;const m=a-i,g=s-o;if(t.isHorizontal()){if(h=ec(r,o,s),nl(n)){const t=Object.keys(n)[0],r=n[t];p=u[t].getPixelForValue(r)+m-e}else p="center"===n?(c.bottom+c.top)/2+m-e:ah(t,n,e);d=s-o}else{if(nl(n)){const t=Object.keys(n)[0],r=n[t];h=u[t].getPixelForValue(r)-g+e}else h="center"===n?(c.left+c.right)/2-g+e:ah(t,n,e);p=ec(r,a,i),f="left"===n?-Ml:Ml}return{titleX:h,titleY:p,maxWidth:d,rotation:f}}(this,s,e,a);zc(t,n.text,0,0,i,{color:n.color,maxWidth:u,rotation:d,textAlign:hh(a,e,r),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=ol(t.grid&&t.grid.z,-1),r=ol(t.border&&t.border.z,0);return this._isVisible()&&this.draw===ph.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];o[n]!==this.id||t&&o.type!==t||r.push(o)}return r}_resolveTickFontOptions(t){return qc(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class fh{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const r=this.items,i=t.id,o=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in r||(r[i]=t,function(t,e,n){const r=pl(Object.create(null),[n?wc.get(n):{},wc.get(e),t.defaults]);wc.set(e,r),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const r=n.split("."),i=r.pop(),o=[t].concat(r).join("."),a=e[n].split("."),s=a.pop(),l=a.join(".");wc.route(o,i,l,s)}))}(e,t.defaultRoutes);t.descriptors&&wc.describe(e,t.descriptors)}(t,o,n),this.override&&wc.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,r=this.scope;n in e&&delete e[n],r&&n in wc[r]&&(delete wc[r][n],this.override&&delete vc[n])}}class mh{constructor(){this.controllers=new fh(id,"datasets",!0),this.elements=new fh(rh,"elements"),this.plugins=new fh(Object,"plugins"),this.scales=new fh(ph,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const r=n||this._getRegistryForType(e);n||r.isForType(e)||r===this.plugins&&e.id?this._exec(t,r,e):ll(e,(e=>{const r=n||this._getRegistryForType(e);this._exec(t,r,e)}))}))}_exec(t,e,n){const r=yl(t);sl(n["before"+r],[],n),e[t](n),sl(n["after"+r],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+n+".");return r}}var gh=new mh;class vh{constructor(){this._init=[]}notify(t,e,n,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(i,t,e,n);return"afterDestroy"===e&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,r){r=r||{};for(const i of t){const t=i.plugin;if(!1===sl(t[n],[e,r,i.options],t)&&r.cancelable)return!1}return!0}invalidate(){tl(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,r=ol(n.options&&n.options.plugins,{}),i=function(t){const e={},n=[],r=Object.keys(gh.plugins.items);for(let t=0;t<r.length;t++)n.push(gh.getPlugin(r[t]));const i=t.plugins||[];for(let t=0;t<i.length;t++){const r=i[t];-1===n.indexOf(r)&&(n.push(r),e[r.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==r||e?function(t,{plugins:e,localIds:n},r,i){const o=[],a=t.getContext();for(const s of e){const e=s.id,l=yh(r[e],i);null!==l&&o.push({plugin:s,options:bh(t.config,{plugin:s,local:n[e]},l,a)})}return o}(t,i,r,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,r=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(r(e,n),t,"stop"),this._notify(r(n,e),t,"start")}}function yh(t,e){return e||!1!==t?!0===t?{}:t:null}function bh(t,{plugin:e,local:n},r,i){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(r,o);return n&&e.defaults&&a.push(e.defaults),t.createResolver(a,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function xh(t,e){const n=wc.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function _h(t){if("x"===t||"y"===t||"r"===t)return t}function wh(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function Sh(t,...e){if(_h(t))return t;for(const n of e){const e=n.axis||wh(n.position)||t.length>1&&_h(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function kh(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function Ch(t,e){const n=vc[t.type]||{scales:{}},r=e.scales||{},i=xh(t.type,e),o=Object.create(null);return Object.keys(r).forEach((e=>{const a=r[e];if(!nl(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const s=Sh(e,a,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return kh(t,"x",n[0])||kh(t,"y",n[0])}return{}}(e,t),wc.scales[a.type]),l=function(t,e){return t===e?"_index_":"_value_"}(s,i),c=n.scales||{};o[e]=fl(Object.create(null),[{axis:s},a,c[s],c[l]])})),t.data.datasets.forEach((n=>{const i=n.type||t.type,a=n.indexAxis||xh(i,e),s=(vc[i]||{}).scales||{};Object.keys(s).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,a),i=n[e+"AxisID"]||e;o[i]=o[i]||Object.create(null),fl(o[i],[{axis:e},r[i],s[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];fl(e,[wc.scales[e.type],wc.scale])})),o}function Eh(t){const e=t.options||(t.options={});e.plugins=ol(e.plugins,{}),e.scales=Ch(t,e)}function Mh(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ph=new Map,Oh=new Set;function Th(t,e){let n=Ph.get(t);return n||(n=e(),Ph.set(t,n),Oh.add(n)),n}const Nh=(t,e,n)=>{const r=vl(e,n);void 0!==r&&t.add(r)};class Ah{constructor(t){this._config=function(t){return(t=t||{}).data=Mh(t.data),Eh(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Mh(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Eh(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Th(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Th(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Th(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Th(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let r=n.get(t);return r&&!e||(r=new Map,n.set(t,r)),r}getOptionScopes(t,e,n){const{options:r,type:i}=this,o=this._cachedScopes(t,n),a=o.get(e);if(a)return a;const s=new Set;e.forEach((e=>{t&&(s.add(t),e.forEach((e=>Nh(s,t,e)))),e.forEach((t=>Nh(s,r,t))),e.forEach((t=>Nh(s,vc[i]||{},t))),e.forEach((t=>Nh(s,wc,t))),e.forEach((t=>Nh(s,yc,t)))}));const l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Oh.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,vc[e]||{},wc.datasets[e]||{},{type:e},wc,yc]}resolveNamedOptions(t,e,n,r=[""]){const i={$shared:!0},{resolver:o,subPrefixes:a}=Dh(this._resolverCache,t,r);let s=o;if(function(t,e){const{isScriptable:n,isIndexable:r}=Kc(t);for(const i of e){const e=n(i),o=r(i),a=(o||e)&&t[i];if(e&&(xl(a)||Lh(a))||o&&el(a))return!0}return!1}(o,e)){i.$shared=!1;s=Gc(o,n=xl(n)?n():n,this.createResolver(t,n,a))}for(const t of e)i[t]=s[t];return i}createResolver(t,e,n=[""],r){const{resolver:i}=Dh(this._resolverCache,t,n);return nl(e)?Gc(i,e,void 0,r):i}}function Dh(t,e,n){let r=t.get(e);r||(r=new Map,t.set(e,r));const i=n.join();let o=r.get(i);if(!o){o={resolver:Zc(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},r.set(i,o)}return o}const Lh=t=>nl(t)&&Object.getOwnPropertyNames(t).some((e=>xl(t[e])));const Ih=["top","bottom","left","right","chartArea"];function zh(t,e){return"top"===t||"bottom"===t||-1===Ih.indexOf(t)&&"x"===e}function Rh(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function Fh(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),sl(n&&n.onComplete,[t],e)}function $h(t){const e=t.chart,n=e.options.animation;sl(n&&n.onProgress,[t],e)}function jh(t){return gu()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Bh={},Hh=t=>{const e=jh(t);return Object.values(Bh).filter((t=>t.canvas===e)).pop()};function Wh(t,e,n){const r=Object.keys(t);for(const i of r){const r=+i;if(r>=e){const o=t[i];delete t[i],(n>0||r>e)&&(t[r+n]=o)}}}function Vh(t,e,n){return t.options.clip?t[n]:e[n]}class Yh{static defaults=wc;static instances=Bh;static overrides=vc;static registry=gh;static version="4.4.7";static getChart=Hh;static register(...t){gh.add(...t),qh()}static unregister(...t){gh.remove(...t),qh()}constructor(t,e){const n=this.config=new Ah(e),r=jh(t),i=Hh(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!gu()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Bd:nh}(r)),this.platform.updateConfig(n);const a=this.platform.acquireContext(r,o.aspectRatio),s=a&&a.canvas,l=s&&s.height,c=s&&s.width;this.id=Qs(),this.ctx=a,this.canvas=s,this.width=c,this.height=l,this._options=o,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 vh,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...r){return e?(clearTimeout(n),n=setTimeout(t,e,r)):t.apply(this,r),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],Bh[this.id]=this,a&&s?(Hu.listen(this,"complete",Fh),Hu.listen(this,"progress",$h),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:t,maintainAspectRatio:e},width:n,height:r,_aspectRatio:i}=this;return tl(t)?e&&i?i:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return gh}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Cu(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ec(this.canvas,this.ctx),this}stop(){return Hu.stop(this),this}resize(t,e){Hu.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,e,i),a=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Cu(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),sl(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){ll(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,r=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let i=[];e&&(i=i.concat(Object.keys(e).map((t=>{const n=e[t],r=Sh(t,n),i="r"===r,o="x"===r;return{options:n,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}})))),ll(i,(e=>{const i=e.options,o=i.id,a=Sh(o,i),s=ol(i.type,e.dtype);void 0!==i.position&&zh(i.position,a)===zh(e.dposition)||(i.position=e.dposition),r[o]=!0;let l=null;if(o in n&&n[o].type===s)l=n[o];else{l=new(gh.getScale(s))({id:o,type:s,ctx:this.ctx,chart:this}),n[l.id]=l}l.init(i,t)})),ll(r,((t,e)=>{t||delete n[e]})),ll(n,(t=>{$d.configure(this,t,t.options),$d.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(Rh("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=e.length;n<r;n++){const r=e[n];let i=this.getDatasetMeta(n);const o=r.type||this.config.type;if(i.type&&i.type!==o&&(this._destroyDatasetMeta(n),i=this.getDatasetMeta(n)),i.type=o,i.indexAxis=r.indexAxis||xh(o,this.options),i.order=r.order||0,i.index=n,i.label=""+r.label,i.visible=this.isDatasetVisible(n),i.controller)i.controller.updateIndex(n),i.controller.linkScales();else{const e=gh.getController(o),{datasetElementType:r,dataElementType:a}=wc.datasets[o];Object.assign(e,{dataElementType:gh.getElement(a),datasetElementType:r&&gh.getElement(r)}),i.controller=new e(this,n),t.push(i.controller)}}return this._updateMetasets(),t}_resetElements(){ll(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!r&&-1===i.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),r||ll(i,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Rh("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){ll(this.scales,(t=>{$d.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);_l(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of e){Wh(t,r,"_removeElements"===n?-i:i)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),r=n(0);for(let t=1;t<e;t++)if(!_l(r,n(t)))return;return Array.from(r).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;$d.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],ll(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,xl(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),r={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Hu.has(this)?this.attached&&!Hu.running(this)&&Hu.start(this):(this.draw(),Fh({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let r,i;for(r=0,i=e.length;r<i;++r){const i=e[r];t&&!i.visible||n.push(i)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,r=!n.disabled,i=function(t,e){const{xScale:n,yScale:r}=t;return n&&r?{left:Vh(n,e,"left"),right:Vh(n,e,"right"),top:Vh(r,e,"top"),bottom:Vh(r,e,"bottom")}:e}(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(r&&Tc(e,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),t.controller.draw(),r&&Nc(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Oc(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,r){const i=Ed.modes[e];return"function"==typeof i?i(this,t,n,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let r=n.filter((t=>t&&t._dataset===e)).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=Uc(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const r=n?"show":"hide",i=this.getDatasetMeta(t),o=i.controller._resolveAnimations(void 0,r);bl(e)?(i.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(i,{visible:n}),this.update((e=>e.datasetIndex===t?r:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Hu.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Ec(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Bh[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};ll(this.options.events,(t=>n(t,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,r)=>{e.addEventListener(this,n,r),t[n]=r},r=(n,r)=>{t[n]&&(e.removeEventListener(this,n,r),delete t[n])},i=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),n("resize",i),n("detach",o)};o=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){ll(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},ll(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const r=n?"set":"remove";let i,o,a,s;for("dataset"===e&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),a=0,s=t.length;a<s;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!cl(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const r=this.options.hover,i=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=i(e,t),a=n?t:i(t,e);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,r))return;const i=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:r=[],options:i}=this,o=e,a=this._getActiveElements(t,r,n,o),s=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,r){return n&&"mouseout"!==t.type?r?e:t:null}(t,this._lastEvent,n,s);n&&(this._lastEvent=null,sl(i.onHover,[t,a,this],this),s&&sl(i.onClick,[t,a,this],this));const c=!cl(a,r);return(c||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,r){if("mouseout"===t.type)return[];if(!n)return e;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,r)}}function qh(){return ll(Yh.instances,(t=>t._plugins.invalidate()))}function Xh(t,e,n,r){const i=Hc(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const o=(n-e)/2,a=Math.min(o,r*e/2),s=t=>{const e=(n-Math.min(o,t))*r/2;return Vl(t,0,Math.min(o,e))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:Vl(i.innerStart,0,a),innerEnd:Vl(i.innerEnd,0,a)}}function Uh(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function Zh(t,e,n,r,i,o){const{x:a,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+r+n-c,0),h=u>0?u+r+n+c:0;let p=0;const f=i-l;if(r){const t=((u>0?u-r:0)+(d>0?d-r:0))/2;p=(f-(0!==t?f*t/(t+r):f))/2}const m=(f-Math.max(.001,f*d-n/wl)/d)/2,g=l+m+p,v=i-m-p,{outerStart:y,outerEnd:b,innerStart:x,innerEnd:_}=Xh(e,h,d,v-g),w=d-y,S=d-b,k=g+y/w,C=v-b/S,E=h+x,M=h+_,P=g+x/E,O=v-_/M;if(t.beginPath(),o){const e=(k+C)/2;if(t.arc(a,s,d,k,e),t.arc(a,s,d,e,C),b>0){const e=Uh(S,C,a,s);t.arc(e.x,e.y,b,C,v+Ml)}const n=Uh(M,v,a,s);if(t.lineTo(n.x,n.y),_>0){const e=Uh(M,O,a,s);t.arc(e.x,e.y,_,v+Ml,O+Math.PI)}const r=(v-_/h+(g+x/h))/2;if(t.arc(a,s,h,v-_/h,r,!0),t.arc(a,s,h,r,g+x/h,!0),x>0){const e=Uh(E,P,a,s);t.arc(e.x,e.y,x,P+Math.PI,g-Ml)}const i=Uh(w,g,a,s);if(t.lineTo(i.x,i.y),y>0){const e=Uh(w,k,a,s);t.arc(e.x,e.y,y,g-Ml,k)}}else{t.moveTo(a,s);const e=Math.cos(k)*d+a,n=Math.sin(k)*d+s;t.lineTo(e,n);const r=Math.cos(C)*d+a,i=Math.sin(C)*d+s;t.lineTo(r,i)}t.closePath()}function Gh(t,e,n,r,i){const{fullCircles:o,startAngle:a,circumference:s,options:l}=e,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:h}=l,p="inner"===l.borderAlign;if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=h,p?(t.lineWidth=2*c,t.lineJoin=u||"round"):(t.lineWidth=c,t.lineJoin=u||"bevel");let f=e.endAngle;if(o){Zh(t,e,n,r,f,i);for(let e=0;e<o;++e)t.stroke();isNaN(s)||(f=a+(s%Sl||Sl))}p&&function(t,e,n){const{startAngle:r,pixelMargin:i,x:o,y:a,outerRadius:s,innerRadius:l}=e;let c=i/s;t.beginPath(),t.arc(o,a,s,r-c,n+c),l>i?(c=i/l,t.arc(o,a,l,n+c,r-c,!0)):t.arc(o,a,i,n+Ml,r-Ml),t.closePath(),t.clip()}(t,e,f),o||(Zh(t,e,n,r,f,i),t.stroke())}function Kh(t,e,n=e){t.lineCap=ol(n.borderCapStyle,e.borderCapStyle),t.setLineDash(ol(n.borderDash,e.borderDash)),t.lineDashOffset=ol(n.borderDashOffset,e.borderDashOffset),t.lineJoin=ol(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=ol(n.borderWidth,e.borderWidth),t.strokeStyle=ol(n.borderColor,e.borderColor)}function Jh(t,e,n){t.lineTo(n.x,n.y)}function Qh(t,e,n={}){const r=t.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=e,l=Math.max(i,a),c=Math.min(o,s),u=i<a&&o<a||i>s&&o>s;return{count:r,start:l,loop:e.loop,ilen:c<l&&!u?r+c-l:c-l}}function tp(t,e,n,r){const{points:i,options:o}=e,{count:a,start:s,loop:l,ilen:c}=Qh(i,n,r),u=function(t){return t.stepped?Ac:t.tension||"monotone"===t.cubicInterpolationMode?Dc:Jh}(o);let d,h,p,{move:f=!0,reverse:m}=r||{};for(d=0;d<=c;++d)h=i[(s+(m?c-d:d))%a],h.skip||(f?(t.moveTo(h.x,h.y),f=!1):u(t,p,h,m,o.stepped),p=h);return l&&(h=i[(s+(m?c:0))%a],u(t,p,h,m,o.stepped)),!!l}function ep(t,e,n,r){const i=e.points,{count:o,start:a,ilen:s}=Qh(i,n,r),{move:l=!0,reverse:c}=r||{};let u,d,h,p,f,m,g=0,v=0;const y=t=>(a+(c?s-t:t))%o,b=()=>{p!==f&&(t.lineTo(g,f),t.lineTo(g,p),t.lineTo(g,m))};for(l&&(d=i[y(0)],t.moveTo(d.x,d.y)),u=0;u<=s;++u){if(d=i[y(u)],d.skip)continue;const e=d.x,n=d.y,r=0|e;r===h?(n<p?p=n:n>f&&(f=n),g=(v*g+e)/++v):(b(),t.lineTo(e,n),h=r,v=0,p=f=n),m=n}b()}function np(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n)?ep:tp}const rp="function"==typeof Path2D;function ip(t,e,n,r){rp&&!e.options.segment?function(t,e,n,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,r)&&i.closePath()),Kh(t,e.options),t.stroke(i)}(t,e,n,r):function(t,e,n,r){const{segments:i,options:o}=e,a=np(e);for(const s of i)Kh(t,o,s.style),t.beginPath(),a(t,e,s,{start:n,end:n+r-1})&&t.closePath(),t.stroke()}(t,e,n,r)}class op extends rh{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const r=n.spanGaps?this._loop:this._fullLoop;mu(this._points,n,t,r,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const n=t.points,r=t.options.spanGaps,i=n.length;if(!i)return[];const o=!!t._loop,{start:a,end:s}=function(t,e,n,r){let i=0,o=e-1;if(n&&!r)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(o+=i);o>i&&t[o%e].skip;)o--;return o%=e,{start:i,end:o}}(n,i,o,r);return Fu(t,!0===r?[{start:a,end:s,loop:o}]:function(t,e,n,r){const i=t.length,o=[];let a,s=e,l=t[e];for(a=e+1;a<=n;++a){const n=t[a%i];n.skip||n.stop?l.skip||(r=!1,o.push({start:e%i,end:(a-1)%i,loop:r}),e=s=n.stop?a:null):(s=a,l.skip&&(e=a)),l=n}return null!==s&&o.push({start:e%i,end:s%i,loop:r}),o}(n,a,s<a?s+i:s,!!t._fullLoop&&0===a&&s===i-1),n,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,r=t[e],i=this.points,o=Ru(this,{property:e,start:r,end:r});if(!o.length)return;const a=[],s=function(t){return t.stepped?Ou:t.tension||"monotone"===t.cubicInterpolationMode?Tu:Pu}(n);let l,c;for(l=0,c=o.length;l<c;++l){const{start:c,end:u}=o[l],d=i[c],h=i[u];if(d===h){a.push(d);continue}const p=s(d,h,Math.abs((r-d[e])/(h[e]-d[e])),n.stepped);p[e]=t[e],a.push(p)}return 1===a.length?a[0]:a}pathSegment(t,e,n){return np(this)(t,this,e,n)}path(t,e,n){const r=this.segments,i=np(this);let o=this._loop;e=e||0,n=n||this.points.length-e;for(const a of r)o&=i(t,this,a,{start:e,end:e+n-1});return!!o}draw(t,e,n,r){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),ip(t,this,n,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function ap(t,e,n,r){const i=t.options,{[n]:o}=t.getProps([n],r);return Math.abs(e-o)<i.radius+i.hitRadius}function sp(t,e){const{x:n,y:r,base:i,width:o,height:a}=t.getProps(["x","y","base","width","height"],e);let s,l,c,u,d;return t.horizontal?(d=a/2,s=Math.min(n,i),l=Math.max(n,i),c=r-d,u=r+d):(d=o/2,s=n-d,l=n+d,c=Math.min(r,i),u=Math.max(r,i)),{left:s,top:c,right:l,bottom:u}}function lp(t,e,n,r){return t?0:Vl(e,n,r)}function cp(t){const e=sp(t),n=e.right-e.left,r=e.bottom-e.top,i=function(t,e,n){const r=t.options.borderWidth,i=t.borderSkipped,o=Wc(r);return{t:lp(i.top,o.top,0,n),r:lp(i.right,o.right,0,e),b:lp(i.bottom,o.bottom,0,n),l:lp(i.left,o.left,0,e)}}(t,n/2,r/2),o=function(t,e,n){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),i=t.options.borderRadius,o=Vc(i),a=Math.min(e,n),s=t.borderSkipped,l=r||nl(i);return{topLeft:lp(!l||s.top||s.left,o.topLeft,0,a),topRight:lp(!l||s.top||s.right,o.topRight,0,a),bottomLeft:lp(!l||s.bottom||s.left,o.bottomLeft,0,a),bottomRight:lp(!l||s.bottom||s.right,o.bottomRight,0,a)}}(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r,radius:o},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function up(t,e,n,r){const i=null===e,o=null===n,a=t&&!(i&&o)&&sp(t,r);return a&&(i||Yl(e,a.left,a.right))&&(o||Yl(n,a.top,a.bottom))}function dp(t,e){t.rect(e.x,e.y,e.w,e.h)}function hp(t,e,n={}){const r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-r,a=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+r,y:t.y+i,w:t.w+o,h:t.h+a,radius:t.radius}}class pp extends rh{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){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,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:r}}=this,{inner:i,outer:o}=cp(this),a=(s=o.radius).topLeft||s.topRight||s.bottomLeft||s.bottomRight?Rc:dp;var s;t.save(),o.w===i.w&&o.h===i.h||(t.beginPath(),a(t,hp(o,e,i)),t.clip(),a(t,hp(i,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),a(t,hp(i,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,n){return up(this,t,e,n)}inXRange(t,e){return up(this,t,null,e)}inYRange(t,e){return up(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:r,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(e+r)/2:e,y:i?n:(n+r)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}var fp=Object.freeze({__proto__:null,ArcElement:class extends rh{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};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){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,t&&Object.assign(this,t)}inRange(t,e,n){const r=this.getProps(["x","y"],n),{angle:i,distance:o}=$l(r,{x:t,y:e}),{startAngle:a,endAngle:s,innerRadius:l,outerRadius:c,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),d=(this.options.spacing+this.options.borderWidth)/2,h=ol(u,s-a),p=Wl(i,a,s)&&a!==s,f=h>=Sl||p,m=Yl(o,l+d,c+d);return f&&m}getCenterPoint(t){const{x:e,y:n,startAngle:r,endAngle:i,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:s,spacing:l}=this.options,c=(r+i)/2,u=(o+a+l+s)/2;return{x:e+Math.cos(c)*u,y:n+Math.sin(c)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,r=(e.offset||0)/4,i=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Sl?Math.floor(n/Sl):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*r,Math.sin(a)*r);const s=r*(1-Math.sin(Math.min(wl,n||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,n,r,i){const{fullCircles:o,startAngle:a,circumference:s}=e;let l=e.endAngle;if(o){Zh(t,e,n,r,l,i);for(let e=0;e<o;++e)t.fill();isNaN(s)||(l=a+(s%Sl||Sl))}Zh(t,e,n,r,l,i),t.fill()}(t,this,s,i,o),Gh(t,this,s,i,o),t.restore()}},BarElement:pp,LineElement:op,PointElement:class extends rh{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,n){const r=this.options,{x:i,y:o}=this.getProps(["x","y"],n);return Math.pow(t-i,2)+Math.pow(e-o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,e){return ap(this,t,"x",e)}inYRange(t,e){return ap(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}size(t){let e=(t=t||this.options||{}).radius||0;e=Math.max(e,e&&t.hoverRadius||0);return 2*(e+(e&&t.borderWidth||0))}draw(t,e){const n=this.options;this.skip||n.radius<.1||!Oc(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,Mc(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}});const mp=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],gp=mp.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function vp(t){return mp[t%mp.length]}function yp(t){return gp[t%gp.length]}function bp(t){let e=0;return(n,r)=>{const i=t.getDatasetMeta(r).controller;i instanceof fd?e=function(t,e){return t.backgroundColor=t.data.map((()=>vp(e++))),e}(n,e):i instanceof md?e=function(t,e){return t.backgroundColor=t.data.map((()=>yp(e++))),e}(n,e):i&&(e=function(t,e){return t.borderColor=vp(e),t.backgroundColor=yp(e),++e}(n,e))}}function xp(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var _p={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=t.config,{elements:o}=i,a=xp(r)||(s=i)&&(s.borderColor||s.backgroundColor)||o&&xp(o)||"rgba(0,0,0,0.1)"!==wc.borderColor||"rgba(0,0,0,0.1)"!==wc.backgroundColor;var s;if(!n.forceOverride&&a)return;const l=bp(t);r.forEach(l)}};function wp(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Sp(t){t.data.datasets.forEach((t=>{wp(t)}))}var kp={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled)return void Sp(t);const r=t.width;t.data.datasets.forEach(((e,i)=>{const{_data:o,indexAxis:a}=e,s=t.getDatasetMeta(i),l=o||e.data;if("y"===Xc([a,t.options.indexAxis]))return;if(!s.controller.supportsDecimation)return;const c=t.scales[s.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:u,count:d}=function(t,e){const n=e.length;let r,i=0;const{iScale:o}=t,{min:a,max:s,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(i=Vl(Xl(e,o.axis,a).lo,0,n-1)),r=c?Vl(Xl(e,o.axis,s).hi+1,i,n)-i:n-i,{start:i,count:r}}(s,l);if(d<=(n.threshold||4*r))return void wp(e);let h;switch(tl(o)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":h=function(t,e,n,r,i){const o=i.samples||r;if(o>=n)return t.slice(e,e+n);const a=[],s=(n-2)/(o-2);let l=0;const c=e+n-1;let u,d,h,p,f,m=e;for(a[l++]=t[m],u=0;u<o-2;u++){let r,i=0,o=0;const c=Math.floor((u+1)*s)+1+e,g=Math.min(Math.floor((u+2)*s)+1,n)+e,v=g-c;for(r=c;r<g;r++)i+=t[r].x,o+=t[r].y;i/=v,o/=v;const y=Math.floor(u*s)+1+e,b=Math.min(Math.floor((u+1)*s)+1,n)+e,{x:x,y:_}=t[m];for(h=p=-1,r=y;r<b;r++)p=.5*Math.abs((x-i)*(t[r].y-_)-(x-t[r].x)*(o-_)),p>h&&(h=p,d=t[r],f=r);a[l++]=d,m=f}return a[l++]=t[c],a}(l,u,d,r,n);break;case"min-max":h=function(t,e,n,r){let i,o,a,s,l,c,u,d,h,p,f=0,m=0;const g=[],v=e+n-1,y=t[e].x,b=t[v].x-y;for(i=e;i<e+n;++i){o=t[i],a=(o.x-y)/b*r,s=o.y;const e=0|a;if(e===l)s<h?(h=s,c=i):s>p&&(p=s,u=i),f=(m*f+o.x)/++m;else{const n=i-1;if(!tl(c)&&!tl(u)){const e=Math.min(c,u),r=Math.max(c,u);e!==d&&e!==n&&g.push({...t[e],x:f}),r!==d&&r!==n&&g.push({...t[r],x:f})}i>0&&n!==d&&g.push(t[n]),g.push(o),l=e,m=0,h=p=s,c=u=d=i}}return g}(l,u,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}e._decimated=h}))},destroy(t){Sp(t)}};function Cp(t,e,n,r){if(r)return;let i=e[t],o=n[t];return"angle"===t&&(i=Hl(i),o=Hl(o)),{property:t,start:i,end:o}}function Ep(t,e,n){for(;e>t;e--){const t=n[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Mp(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function Pp(t,e){let n=[],r=!1;return el(t)?(r=!0,n=t):n=function(t,e){const{x:n=null,y:r=null}=t||{},i=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=Ep(t,e,i);const a=i[t],s=i[e];null!==r?(o.push({x:a.x,y:r}),o.push({x:s.x,y:r})):null!==n&&(o.push({x:n,y:a.y}),o.push({x:n,y:s.y}))})),o}(t,e),n.length?new op({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function Op(t){return t&&!1!==t.fill}function Tp(t,e,n){let r=t[e].fill;const i=[e];let o;if(!n)return r;for(;!1!==r&&-1===i.indexOf(r);){if(!rl(r))return r;if(o=t[r],!o)return!1;if(o.visible)return r;i.push(r),r=o.fill}return!1}function Np(t,e,n){const r=function(t){const e=t.options,n=e.fill;let r=ol(n&&n.target,n);void 0===r&&(r=!!e.backgroundColor);if(!1===r||null===r)return!1;if(!0===r)return"origin";return r}(t);if(nl(r))return!isNaN(r.value)&&r;let i=parseFloat(r);return rl(i)&&Math.floor(i)===i?function(t,e,n,r){"-"!==t&&"+"!==t||(n=e+n);if(n===e||n<0||n>=r)return!1;return n}(r[0],e,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Ap(t,e,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:a,last:s,point:l}=Dp(o,e,"x");if(!(!l||a&&s))if(a)r.unshift(l);else if(t.push(l),!s)break}t.push(...r)}function Dp(t,e,n){const r=t.interpolate(e,n);if(!r)return{};const i=r[n],o=t.segments,a=t.points;let s=!1,l=!1;for(let t=0;t<o.length;t++){const e=o[t],r=a[e.start][n],c=a[e.end][n];if(Yl(i,r,c)){s=i===r,l=i===c;break}}return{first:s,last:l,point:r}}class Lp{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,n){const{x:r,y:i,radius:o}=this;return e=e||{start:0,end:Sl},t.arc(r,i,o,e.end,e.start,!0),!n.bounds}interpolate(t){const{x:e,y:n,radius:r}=this,i=t.angle;return{x:e+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}function Ip(t){const{chart:e,fill:n,line:r}=t;if(rl(n))return function(t,e){const n=t.getDatasetMeta(e),r=n&&t.isDatasetVisible(e);return r?n.dataset:null}(e,n);if("stack"===n)return function(t){const{scale:e,index:n,line:r}=t,i=[],o=r.segments,a=r.points,s=function(t,e){const n=[],r=t.getMatchingVisibleMetas("line");for(let t=0;t<r.length;t++){const i=r[t];if(i.index===e)break;i.hidden||n.unshift(i.dataset)}return n}(e,n);s.push(Pp({x:null,y:e.bottom},r));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)Ap(i,a[t],s)}return new op({points:i,options:{}})}(t);if("shape"===n)return!0;const i=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:n}=t,r=e.options,i=e.getLabels().length,o=r.reverse?e.max:e.min,a=function(t,e,n){let r;return r="start"===t?n:"end"===t?e.options.reverse?e.min:e.max:nl(t)?t.value:e.getBaseValue(),r}(n,e,o),s=[];if(r.grid.circular){const t=e.getPointPositionForValue(0,o);return new Lp({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<i;++t)s.push(e.getPointPositionForValue(t,a));return s}(t);return function(t){const{scale:e={},fill:n}=t,r=function(t,e){let n=null;return"start"===t?n=e.bottom:"end"===t?n=e.top:nl(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}(n,e);if(rl(r)){const t=e.isHorizontal();return{x:t?r:null,y:t?null:r}}return null}(t)}(t);return i instanceof Lp?i:Pp(i,r)}function zp(t,e,n){const r=Ip(e),{line:i,scale:o,axis:a}=e,s=i.options,l=s.fill,c=s.backgroundColor,{above:u=c,below:d=c}=l||{};r&&i.points.length&&(Tc(t,n),function(t,e){const{line:n,target:r,above:i,below:o,area:a,scale:s}=e,l=n._loop?"angle":e.axis;t.save(),"x"===l&&o!==i&&(Rp(t,r,a.top),Fp(t,{line:n,target:r,color:i,scale:s,property:l}),t.restore(),t.save(),Rp(t,r,a.bottom));Fp(t,{line:n,target:r,color:o,scale:s,property:l}),t.restore()}(t,{line:i,target:r,above:u,below:d,area:n,scale:o,axis:a}),Nc(t))}function Rp(t,e,n){const{segments:r,points:i}=e;let o=!0,a=!1;t.beginPath();for(const s of r){const{start:r,end:l}=s,c=i[r],u=i[Ep(r,l,i)];o?(t.moveTo(c.x,c.y),o=!1):(t.lineTo(c.x,n),t.lineTo(c.x,c.y)),a=!!e.pathSegment(t,s,{move:a}),a?t.closePath():t.lineTo(u.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Fp(t,e){const{line:n,target:r,property:i,color:o,scale:a}=e,s=function(t,e,n){const r=t.segments,i=t.points,o=e.points,a=[];for(const t of r){let{start:r,end:s}=t;s=Ep(r,s,i);const l=Cp(n,i[r],i[s],t.loop);if(!e.segments){a.push({source:t,target:l,start:i[r],end:i[s]});continue}const c=Ru(e,l);for(const e of c){const r=Cp(n,o[e.start],o[e.end],e.loop),s=zu(t,i,r);for(const t of s)a.push({source:t,target:e,start:{[n]:Mp(l,r,"start",Math.max)},end:{[n]:Mp(l,r,"end",Math.min)}})}}return a}(n,r,i);for(const{source:e,target:l,start:c,end:u}of s){const{style:{backgroundColor:s=o}={}}=e,d=!0!==r;t.save(),t.fillStyle=s,$p(t,a,d&&Cp(i,c,u)),t.beginPath();const h=!!n.pathSegment(t,e);let p;if(d){h?t.closePath():jp(t,r,u,i);const e=!!r.pathSegment(t,l,{move:h,reverse:!0});p=h&&e,p||jp(t,r,c,i)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function $p(t,e,n){const{top:r,bottom:i}=e.chart.chartArea,{property:o,start:a,end:s}=n||{};"x"===o&&(t.beginPath(),t.rect(a,r,s-a,i-r),t.clip())}function jp(t,e,n,r){const i=e.interpolate(n,r);i&&t.lineTo(i.x,i.y)}var Bp={id:"filler",afterDatasetsUpdate(t,e,n){const r=(t.data.datasets||[]).length,i=[];let o,a,s,l;for(a=0;a<r;++a)o=t.getDatasetMeta(a),s=o.dataset,l=null,s&&s.options&&s instanceof op&&(l={visible:t.isDatasetVisible(a),index:a,fill:Np(s,a,r),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:s}),o.$filler=l,i.push(l);for(a=0;a<r;++a)l=i[a],l&&!1!==l.fill&&(l.fill=Tp(i,a,n.propagate))},beforeDraw(t,e,n){const r="beforeDraw"===n.drawTime,i=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=i.length-1;e>=0;--e){const n=i[e].$filler;n&&(n.line.updateControlPoints(o,n.axis),r&&n.fill&&zp(t.ctx,n,o))}},beforeDatasetsDraw(t,e,n){if("beforeDatasetsDraw"!==n.drawTime)return;const r=t.getSortedVisibleDatasetMetas();for(let e=r.length-1;e>=0;--e){const n=r[e].$filler;Op(n)&&zp(t.ctx,n,t.chartArea)}},beforeDatasetDraw(t,e,n){const r=e.meta.$filler;Op(r)&&"beforeDatasetDraw"===n.drawTime&&zp(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Hp=(t,e)=>{let{boxHeight:n=e,boxWidth:r=e}=t;return t.usePointStyle&&(n=Math.min(n,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(e,n)}};class Wp extends rh{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.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(t,e,n){this.maxWidth=t,this.maxHeight=e,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 t=this.options.labels||{};let e=sl(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const n=t.labels,r=qc(n.font),i=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:s}=Hp(n,i);let l,c;e.font=r.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(o,i,a,s)+10):(c=this.maxHeight,l=this._fitCols(o,r,a,s)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,r){const{ctx:i,maxWidth:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.lineWidths=[0],c=r+a;let u=t;i.textAlign="left",i.textBaseline="middle";let d=-1,h=-c;return this.legendItems.forEach(((t,p)=>{const f=n+e/2+i.measureText(t.text).width;(0===p||l[l.length-1]+f+2*a>o)&&(u+=c,l[l.length-(p>0?0:1)]=0,h+=c,d++),s[p]={left:0,top:h,row:d,width:f,height:r},l[l.length-1]+=f+a})),u}_fitCols(t,e,n,r){const{ctx:i,maxHeight:o,options:{labels:{padding:a}}}=this,s=this.legendHitBoxes=[],l=this.columnSizes=[],c=o-t;let u=a,d=0,h=0,p=0,f=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:m,itemHeight:g}=function(t,e,n,r,i){const o=function(t,e,n,r){let i=t.text;i&&"string"!=typeof i&&(i=i.reduce(((t,e)=>t.length>e.length?t:e)));return e+n.size/2+r.measureText(i).width}(r,t,e,n),a=function(t,e,n){let r=t;"string"!=typeof e.text&&(r=Vp(e,n));return r}(i,r,e.lineHeight);return{itemWidth:o,itemHeight:a}}(n,e,i,t,r);o>0&&h+g+2*a>c&&(u+=d+a,l.push({width:d,height:h}),p+=d+a,f++,d=h=0),s[o]={left:p,top:h,col:f,width:m,height:g},d=Math.max(d,m),h+=g+a})),u+=d,l.push({width:d,height:h}),u}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:r},rtl:i}}=this,o=Nu(i,this.left,this.width);if(this.isHorizontal()){let i=0,a=ec(n,this.left+r,this.right-this.lineWidths[i]);for(const s of e)i!==s.row&&(i=s.row,a=ec(n,this.left+r,this.right-this.lineWidths[i])),s.top+=this.top+t+r,s.left=o.leftForLtr(o.x(a),s.width),a+=s.width+r}else{let i=0,a=ec(n,this.top+t+r,this.bottom-this.columnSizes[i].height);for(const s of e)s.col!==i&&(i=s.col,a=ec(n,this.top+t+r,this.bottom-this.columnSizes[i].height)),s.top=a,s.left+=this.left+r,s.left=o.leftForLtr(o.x(s.left),s.width),a+=s.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Tc(t,this),this._draw(),Nc(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:r}=this,{align:i,labels:o}=t,a=wc.color,s=Nu(t.rtl,this.left,this.width),l=qc(o.font),{padding:c}=o,u=l.size,d=u/2;let h;this.drawTitle(),r.textAlign=s.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:p,boxHeight:f,itemHeight:m}=Hp(o,u),g=this.isHorizontal(),v=this._computeTitleHeight();h=g?{x:ec(i,this.left+c,this.right-n[0]),y:this.top+c+v,line:0}:{x:this.left+c,y:ec(i,this.top+v+c,this.bottom-e[0].height),line:0},Au(this.ctx,t.textDirection);const y=m+c;this.legendItems.forEach(((b,x)=>{r.strokeStyle=b.fontColor,r.fillStyle=b.fontColor;const _=r.measureText(b.text).width,w=s.textAlign(b.textAlign||(b.textAlign=o.textAlign)),S=p+d+_;let k=h.x,C=h.y;s.setWidth(this.width),g?x>0&&k+S+c>this.right&&(C=h.y+=y,h.line++,k=h.x=ec(i,this.left+c,this.right-n[h.line])):x>0&&C+y>this.bottom&&(k=h.x=k+e[h.line].width+c,h.line++,C=h.y=ec(i,this.top+v+c,this.bottom-e[h.line].height));if(function(t,e,n){if(isNaN(p)||p<=0||isNaN(f)||f<0)return;r.save();const i=ol(n.lineWidth,1);if(r.fillStyle=ol(n.fillStyle,a),r.lineCap=ol(n.lineCap,"butt"),r.lineDashOffset=ol(n.lineDashOffset,0),r.lineJoin=ol(n.lineJoin,"miter"),r.lineWidth=i,r.strokeStyle=ol(n.strokeStyle,a),r.setLineDash(ol(n.lineDash,[])),o.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:i},l=s.xPlus(t,p/2);Pc(r,a,l,e+d,o.pointStyleWidth&&p)}else{const o=e+Math.max((u-f)/2,0),a=s.leftForLtr(t,p),l=Vc(n.borderRadius);r.beginPath(),Object.values(l).some((t=>0!==t))?Rc(r,{x:a,y:o,w:p,h:f,radius:l}):r.rect(a,o,p,f),r.fill(),0!==i&&r.stroke()}r.restore()}(s.x(k),C,b),k=((t,e,n,r)=>t===(r?"left":"right")?n:"center"===t?(e+n)/2:e)(w,k+p+d,g?k+S:this.right,t.rtl),function(t,e,n){zc(r,n.text,t,e+m/2,l,{strikethrough:n.hidden,textAlign:s.textAlign(n.textAlign)})}(s.x(k),C,b),g)h.x+=S+c;else if("string"!=typeof b.text){const t=l.lineHeight;h.y+=Vp(b,t)+c}else h.y+=y})),Du(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=qc(e.font),r=Yc(e.padding);if(!e.display)return;const i=Nu(t.rtl,this.left,this.width),o=this.ctx,a=e.position,s=n.size/2,l=r.top+s;let c,u=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,u=ec(t.align,u,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+ec(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const h=ec(a,u,u+d);o.textAlign=i.textAlign(tc(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=n.string,zc(o,e.text,h,c,n)}_computeTitleHeight(){const t=this.options.title,e=qc(t.font),n=Yc(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,r,i;if(Yl(t,this.left,this.right)&&Yl(e,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(r=i[n],Yl(t,r.left,r.left+r.width)&&Yl(e,r.top,r.top+r.height))return this.legendItems[n];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,i=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(r,n);r&&!i&&sl(e.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!i&&sl(e.onHover,[t,n,this],this)}else n&&sl(e.onClick,[t,n,this],this)}}function Vp(t,e){return e*(t.text?t.text.length:0)}var Yp={id:"legend",_element:Wp,start(t,e,n){const r=t.legend=new Wp({ctx:t.ctx,options:n,chart:t});$d.configure(t,r,n),$d.addBox(t,r)},stop(t){$d.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const r=t.legend;$d.configure(t,r,n),r.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const r=e.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(n?0:void 0),c=Yc(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:o,hidden:!t.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:i||l.textAlign,borderRadius:a&&(s||l.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class qp extends rh{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,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.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const r=el(n.text)?n.text.length:1;this._padding=Yc(n.padding);const i=r*qc(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:r,right:i,options:o}=this,a=o.align;let s,l,c,u=0;return this.isHorizontal()?(l=ec(a,n,i),c=e+t,s=i-n):("left"===o.position?(l=n+t,c=ec(a,r,e),u=-.5*wl):(l=i-t,c=ec(a,e,r),u=.5*wl),s=r-e),{titleX:l,titleY:c,maxWidth:s,rotation:u}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=qc(e.font),r=n.lineHeight/2+this._padding.top,{titleX:i,titleY:o,maxWidth:a,rotation:s}=this._drawArgs(r);zc(t,e.text,0,0,n,{color:e.color,maxWidth:a,rotation:s,textAlign:tc(e.align),textBaseline:"middle",translation:[i,o]})}}var Xp={id:"title",_element:qp,start(t,e,n){!function(t,e){const n=new qp({ctx:t.ctx,options:e,chart:t});$d.configure(t,n,e),$d.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;$d.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const r=t.titleBlock;$d.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Up=new WeakMap;var Zp={id:"subtitle",start(t,e,n){const r=new qp({ctx:t.ctx,options:n,chart:t});$d.configure(t,r,n),$d.addBox(t,r),Up.set(t,r)},stop(t){$d.removeBox(t,Up.get(t)),Up.delete(t)},beforeUpdate(t,e,n){const r=Up.get(t);$d.configure(t,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Gp={average(t){if(!t.length)return!1;let e,n,r=new Set,i=0,o=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();r.add(t.x),i+=t.y,++o}}if(0===o||0===r.size)return!1;const a=[...r].reduce(((t,e)=>t+e))/r.size;return{x:a,y:i/o}},nearest(t,e){if(!t.length)return!1;let n,r,i,o=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){const r=t[n].element;if(r&&r.hasValue()){const t=jl(e,r.getCenterPoint());t<s&&(s=t,i=r)}}if(i){const t=i.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function Kp(t,e){return e&&(el(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Jp(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Qp(t,e){const{element:n,datasetIndex:r,index:i}=e,o=t.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:t,label:a,parsed:o.getParsed(i),raw:t.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function tf(t,e){const n=t.chart.ctx,{body:r,footer:i,title:o}=t,{boxWidth:a,boxHeight:s}=e,l=qc(e.bodyFont),c=qc(e.titleFont),u=qc(e.footerFont),d=o.length,h=i.length,p=r.length,f=Yc(e.padding);let m=f.height,g=0,v=r.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(v+=t.beforeBody.length+t.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),v){m+=p*(e.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(v-p)*l.lineHeight+(v-1)*e.bodySpacing}h&&(m+=e.footerMarginTop+h*u.lineHeight+(h-1)*e.footerSpacing);let y=0;const b=function(t){g=Math.max(g,n.measureText(t).width+y)};return n.save(),n.font=c.string,ll(t.title,b),n.font=l.string,ll(t.beforeBody.concat(t.afterBody),b),y=e.displayColors?a+2+e.boxPadding:0,ll(r,(t=>{ll(t.before,b),ll(t.lines,b),ll(t.after,b)})),y=0,n.font=u.string,ll(t.footer,b),n.restore(),g+=f.width,{width:g,height:m}}function ef(t,e,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=t;let c="center";return"center"===r?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),function(t,e,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;return"left"===t&&i+o+a>e.width||"right"===t&&i-o-a<0||void 0}(c,t,e,n)&&(c="center"),c}function nf(t,e,n){const r=n.yAlign||e.yAlign||function(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||ef(t,e,n,r),yAlign:r}}function rf(t,e,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=t,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=Vc(a);let f=function(t,e){let{x:n,width:r}=t;return"right"===e?n-=r:"center"===e&&(n-=r/2),n}(e,s);const m=function(t,e,n){let{y:r,height:i}=t;return"top"===e?r+=n:r-="bottom"===e?i+n:i/2,r}(e,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=Math.max(u,h)+i:"right"===s&&(f+=Math.max(d,p)+i),{x:Vl(f,0,r.width-e.width),y:Vl(m,0,r.height-e.height)}}function of(t,e,n){const r=Yc(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function af(t){return Kp([],Jp(t))}function sf(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const lf={beforeTitle:Js,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:Js,beforeBody:Js,beforeLabel:Js,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return tl(n)||(e+=n),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Js,afterBody:Js,beforeFooter:Js,footer:Js,afterFooter:Js};function cf(t,e,n,r){const i=t[e].call(n,r);return void 0===i?lf[e].call(n,r):i}class uf extends rh{static positioners=Gp;constructor(t){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=t.chart,this.options=t.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(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&e.options.animation&&n.animations,i=new qu(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,n=this._tooltipItems,Uc(t,{tooltip:e,tooltipItems:n,type:"tooltip"})));var t,e,n}getTitle(t,e){const{callbacks:n}=e,r=cf(n,"beforeTitle",this,t),i=cf(n,"title",this,t),o=cf(n,"afterTitle",this,t);let a=[];return a=Kp(a,Jp(r)),a=Kp(a,Jp(i)),a=Kp(a,Jp(o)),a}getBeforeBody(t,e){return af(cf(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:n}=e,r=[];return ll(t,(t=>{const e={before:[],lines:[],after:[]},i=sf(n,t);Kp(e.before,Jp(cf(i,"beforeLabel",this,t))),Kp(e.lines,cf(i,"label",this,t)),Kp(e.after,Jp(cf(i,"afterLabel",this,t))),r.push(e)})),r}getAfterBody(t,e){return af(cf(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:n}=e,r=cf(n,"beforeFooter",this,t),i=cf(n,"footer",this,t),o=cf(n,"afterFooter",this,t);let a=[];return a=Kp(a,Jp(r)),a=Kp(a,Jp(i)),a=Kp(a,Jp(o)),a}_createItems(t){const e=this._active,n=this.chart.data,r=[],i=[],o=[];let a,s,l=[];for(a=0,s=e.length;a<s;++a)l.push(Qp(this.chart,e[a]));return t.filter&&(l=l.filter(((e,r,i)=>t.filter(e,r,i,n)))),t.itemSort&&(l=l.sort(((e,r)=>t.itemSort(e,r,n)))),ll(l,(e=>{const n=sf(t.callbacks,e);r.push(cf(n,"labelColor",this,e)),i.push(cf(n,"labelPointStyle",this,e)),o.push(cf(n,"labelTextColor",this,e))})),this.labelColors=r,this.labelPointStyles=i,this.labelTextColors=o,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),r=this._active;let i,o=[];if(r.length){const t=Gp[n.position].call(this,r,this._eventPosition);o=this._createItems(n),this.title=this.getTitle(o,n),this.beforeBody=this.getBeforeBody(o,n),this.body=this.getBody(o,n),this.afterBody=this.getAfterBody(o,n),this.footer=this.getFooter(o,n);const e=this._size=tf(this,n),a=Object.assign({},t,e),s=nf(this.chart,n,a),l=rf(n,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,i={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(i={opacity:0});this._tooltipItems=o,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,r){const i=this.getCaretPosition(t,n,r);e.lineTo(i.x1,i.y1),e.lineTo(i.x2,i.y2),e.lineTo(i.x3,i.y3)}getCaretPosition(t,e,n){const{xAlign:r,yAlign:i}=this,{caretSize:o,cornerRadius:a}=n,{topLeft:s,topRight:l,bottomLeft:c,bottomRight:u}=Vc(a),{x:d,y:h}=t,{width:p,height:f}=e;let m,g,v,y,b,x;return"center"===i?(b=h+f/2,"left"===r?(m=d,g=m-o,y=b+o,x=b-o):(m=d+p,g=m+o,y=b-o,x=b+o),v=m):(g="left"===r?d+Math.max(s,c)+o:"right"===r?d+p-Math.max(l,u)-o:this.caretX,"top"===i?(y=h,b=y-o,m=g-o,v=g+o):(y=h+f,b=y+o,m=g+o,v=g-o),x=y),{x1:m,x2:g,x3:v,y1:y,y2:b,y3:x}}drawTitle(t,e,n){const r=this.title,i=r.length;let o,a,s;if(i){const l=Nu(n.rtl,this.x,this.width);for(t.x=of(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",o=qc(n.titleFont),a=n.titleSpacing,e.fillStyle=n.titleColor,e.font=o.string,s=0;s<i;++s)e.fillText(r[s],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,s+1===i&&(t.y+=n.titleMarginBottom-a)}}_drawColorBox(t,e,n,r,i){const o=this.labelColors[n],a=this.labelPointStyles[n],{boxHeight:s,boxWidth:l}=i,c=qc(i.bodyFont),u=of(this,"left",i),d=r.x(u),h=s<c.lineHeight?(c.lineHeight-s)/2:0,p=e.y+h;if(i.usePointStyle){const e={radius:Math.min(l,s)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},n=r.leftForLtr(d,l)+l/2,c=p+s/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Mc(t,e,n,c),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Mc(t,e,n,c)}else{t.lineWidth=nl(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=r.leftForLtr(d,l),n=r.leftForLtr(r.xPlus(d,1),l-2),a=Vc(o.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=i.multiKeyBackground,Rc(t,{x:e,y:p,w:l,h:s,radius:a}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Rc(t,{x:n,y:p+1,w:l-2,h:s-2,radius:a}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(e,p,l,s),t.strokeRect(e,p,l,s),t.fillStyle=o.backgroundColor,t.fillRect(n,p+1,l-2,s-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:r}=this,{bodySpacing:i,bodyAlign:o,displayColors:a,boxHeight:s,boxWidth:l,boxPadding:c}=n,u=qc(n.bodyFont);let d=u.lineHeight,h=0;const p=Nu(n.rtl,this.x,this.width),f=function(n){e.fillText(n,p.x(t.x+h),t.y+d/2),t.y+=d+i},m=p.textAlign(o);let g,v,y,b,x,_,w;for(e.textAlign=o,e.textBaseline="middle",e.font=u.string,t.x=of(this,m,n),e.fillStyle=n.bodyColor,ll(this.beforeBody,f),h=a&&"right"!==m?"center"===o?l/2+c:l+2+c:0,b=0,_=r.length;b<_;++b){for(g=r[b],v=this.labelTextColors[b],e.fillStyle=v,ll(g.before,f),y=g.lines,a&&y.length&&(this._drawColorBox(e,t,b,p,n),d=Math.max(u.lineHeight,s)),x=0,w=y.length;x<w;++x)f(y[x]),d=u.lineHeight;ll(g.after,f)}h=0,d=u.lineHeight,ll(this.afterBody,f),t.y-=i}drawFooter(t,e,n){const r=this.footer,i=r.length;let o,a;if(i){const s=Nu(n.rtl,this.x,this.width);for(t.x=of(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=s.textAlign(n.footerAlign),e.textBaseline="middle",o=qc(n.footerFont),e.fillStyle=n.footerColor,e.font=o.string,a=0;a<i;++a)e.fillText(r[a],s.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+n.footerSpacing}}drawBackground(t,e,n,r){const{xAlign:i,yAlign:o}=this,{x:a,y:s}=t,{width:l,height:c}=n,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:p}=Vc(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+u,s),"top"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+l-d,s),e.quadraticCurveTo(a+l,s,a+l,s+d),"center"===o&&"right"===i&&this.drawCaret(t,e,n,r),e.lineTo(a+l,s+c-p),e.quadraticCurveTo(a+l,s+c,a+l-p,s+c),"bottom"===o&&this.drawCaret(t,e,n,r),e.lineTo(a+h,s+c),e.quadraticCurveTo(a,s+c,a,s+c-h),"center"===o&&"left"===i&&this.drawCaret(t,e,n,r),e.lineTo(a,s+u),e.quadraticCurveTo(a,s,a+u,s),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){const n=Gp[t.position].call(this,this._active,this._eventPosition);if(!n)return;const o=this._size=tf(this,t),a=Object.assign({},n,this._size),s=nf(e,t,a),l=rf(t,a,s,e);r._to===l.x&&i._to===l.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=o.width,this.height=o.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const o=Yc(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=n,this.drawBackground(i,t,r,e),Au(t,e.textDirection),i.y+=o.top,this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),Du(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,r=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),i=!cl(n,r),o=this._positionChanged(r,e);(i||o)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,i=this._active||[],o=this._getActiveElements(t,i,e,n),a=this._positionChanged(o,t),s=e||!cl(o,i)||a;return s&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}_getActiveElements(t,e,n,r){const i=this.options;if("mouseout"===t.type)return[];if(!r)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const o=this.chart.getElementsAtEventForMode(t,i.mode,i,n);return i.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:n,caretY:r,options:i}=this,o=Gp[i.position].call(this,t,e);return!1!==o&&(n!==o.x||r!==o.y)}}var df={id:"tooltip",_element:uf,positioners:Gp,afterInit(t,e,n){n&&(t.tooltip=new uf({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.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:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.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:lf},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},hf=Object.freeze({__proto__:null,Colors:_p,Decimation:kp,Filler:Bp,Legend:Yp,SubTitle:Zp,Title:Xp,Tooltip:df});function pf(t,e,n,r){const i=t.indexOf(e);if(-1===i)return((t,e,n,r)=>("string"==typeof e?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,r);return i!==t.lastIndexOf(e)?n:i}function ff(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class mf extends ph{static id="category";static defaults={ticks:{callback:ff}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:r}of e)t[n]===r&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(tl(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:Vl(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:pf(n,t,ol(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,r=[];let i=this.getLabels();i=0===t&&e===i.length-1?i:i.slice(t,e+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)r.push({value:n});return r}getLabelForValue(t){return ff.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function gf(t,e){const n=[],{bounds:r,step:i,min:o,max:a,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=i||1,p=c-1,{min:f,max:m}=e,g=!tl(o),v=!tl(a),y=!tl(l),b=(m-f)/(u+1);let x,_,w,S,k=Dl((m-f)/p/h)*h;if(k<1e-14&&!g&&!v)return[{value:f},{value:m}];S=Math.ceil(m/k)-Math.floor(f/k),S>p&&(k=Dl(S*k/p/h)*h),tl(s)||(x=Math.pow(10,s),k=Math.ceil(k*x)/x),"ticks"===r?(_=Math.floor(f/k)*k,w=Math.ceil(m/k)*k):(_=f,w=m),g&&v&&i&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((a-o)/i,k/1e3)?(S=Math.round(Math.min((a-o)/k,c)),k=(a-o)/S,_=o,w=a):y?(_=g?o:_,w=v?a:w,S=l-1,k=(w-_)/S):(S=(w-_)/k,S=Al(S,Math.round(S),k/1e3)?Math.round(S):Math.ceil(S));const C=Math.max(Fl(k),Fl(_));x=Math.pow(10,tl(s)?C:s),_=Math.round(_*x)/x,w=Math.round(w*x)/x;let E=0;for(g&&(d&&_!==o?(n.push({value:o}),_<o&&E++,Al(Math.round((_+E*k)*x)/x,o,vf(o,b,t))&&E++):_<o&&E++);E<S;++E){const t=Math.round((_+E*k)*x)/x;if(v&&t>a)break;n.push({value:t})}return v&&d&&w!==a?n.length&&Al(n[n.length-1].value,a,vf(a,b,t))?n[n.length-1].value=a:n.push({value:a}):v&&w!==a||n.push({value:w}),n}function vf(t,e,{horizontal:n,minRotation:r}){const i=zl(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}class yf extends ph{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return tl(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this;const o=t=>r=e?r:t,a=t=>i=n?i:t;if(t){const t=Nl(r),e=Nl(i);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(r===i){let e=0===i?1:Math.abs(.05*i);a(i+e),t||o(r-e)}this.min=r,this.max=i}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:r}=t;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const r=gf({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Il(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const r=(n-e)/Math.max(t.length-1,1)/2;e-=r,n+=r}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return fc(t,this.chart.options.locale,this.options.ticks.format)}}class bf extends yf{static id="linear";static defaults={ticks:{callback:gc.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=rl(t)?t:0,this.max=rl(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=zl(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,i.lineHeight/r))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const xf=t=>Math.floor(Tl(t)),_f=(t,e)=>Math.pow(10,xf(t)+e);function wf(t){return 1===t/Math.pow(10,xf(t))}function Sf(t,e,n){const r=Math.pow(10,n),i=Math.floor(t/r);return Math.ceil(e/r)-i}function kf(t,{min:e,max:n}){e=il(t.min,e);const r=[],i=xf(e);let o=function(t,e){let n=xf(e-t);for(;Sf(t,e,n)>10;)n++;for(;Sf(t,e,n)<10;)n--;return Math.min(n,xf(t))}(e,n),a=o<0?Math.pow(10,Math.abs(o)):1;const s=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((e-l)*a)/a,u=Math.floor((e-l)/s/10)*s*10;let d=Math.floor((c-u)/Math.pow(10,o)),h=il(t.min,Math.round((l+u+d*Math.pow(10,o))*a)/a);for(;h<n;)r.push({value:h,major:wf(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,a=o>=0?1:a),h=Math.round((l+u+d*Math.pow(10,o))*a)/a;const p=il(t.max,h);return r.push({value:p,major:wf(p),significand:d}),r}class Cf extends ph{static id="logarithmic";static defaults={ticks:{callback:gc.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=yf.prototype.parse.apply(this,[t,e]);if(0!==n)return rl(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=rl(t)?Math.max(0,t):null,this.max=rl(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!rl(this._userMin)&&(this.min=t===_f(this.min,0)?_f(this.min,-1):_f(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,r=this.max;const i=e=>n=t?n:e,o=t=>r=e?r:t;n===r&&(n<=0?(i(1),o(10)):(i(_f(n,-1)),o(_f(r,1)))),n<=0&&i(_f(r,-1)),r<=0&&o(_f(n,1)),this.min=n,this.max=r}buildTicks(){const t=this.options,e=kf({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Il(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":fc(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Tl(t),this._valueRange=Tl(this.max)-Tl(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Tl(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Ef(t){const e=t.ticks;if(e.display&&t.display){const t=Yc(e.backdropPadding);return ol(e.font&&e.font.size,wc.font.size)+t.height}return 0}function Mf(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function Pf(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],i=[],o=t._pointLabels.length,a=t.options.pointLabels,s=a.centerPointLabels?wl/o:0;for(let d=0;d<o;d++){const o=a.setContext(t.getPointLabelContext(d));i[d]=o.padding;const h=t.getPointPosition(d,t.drawingArea+i[d],s),p=qc(o.font),f=(l=t.ctx,c=p,u=el(u=t._pointLabels[d])?u:[u],{w:kc(l,c.string,u),h:u.length*c.lineHeight});r[d]=f;const m=Hl(t.getIndexAngle(d)+s),g=Math.round(Rl(m));Of(n,e,m,Mf(g,h.x,f.w,0,180),Mf(g,h.y,f.h,90,270))}var l,c,u;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const r=[],i=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:s}=o.pointLabels,l={extra:Ef(o)/2,additionalAngle:a?wl/i:0};let c;for(let o=0;o<i;o++){l.padding=n[o],l.size=e[o];const i=Tf(t,o,l);r.push(i),"auto"===s&&(i.visible=Nf(i,c),i.visible&&(c=i))}return r}(t,r,i)}function Of(t,e,n,r,i){const o=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let s=0,l=0;r.start<e.l?(s=(e.l-r.start)/o,t.l=Math.min(t.l,e.l-s)):r.end>e.r&&(s=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+s)),i.start<e.t?(l=(e.t-i.start)/a,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function Tf(t,e,n){const r=t.drawingArea,{extra:i,additionalAngle:o,padding:a,size:s}=n,l=t.getPointPosition(e,r+i+a,o),c=Math.round(Rl(Hl(l.angle+Ml))),u=function(t,e,n){90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e);return t}(l.y,s.h,c),d=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(c),h=function(t,e,n){"right"===n?t-=e:"center"===n&&(t-=e/2);return t}(l.x,s.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+s.w,bottom:u+s.h}}function Nf(t,e){if(!e)return!0;const{left:n,top:r,right:i,bottom:o}=t;return!(Oc({x:n,y:r},e)||Oc({x:n,y:o},e)||Oc({x:i,y:r},e)||Oc({x:i,y:o},e))}function Af(t,e,n){const{left:r,top:i,right:o,bottom:a}=n,{backdropColor:s}=e;if(!tl(s)){const n=Vc(e.borderRadius),l=Yc(e.backdropPadding);t.fillStyle=s;const c=r-l.left,u=i-l.top,d=o-r+l.width,h=a-i+l.height;Object.values(n).some((t=>0!==t))?(t.beginPath(),Rc(t,{x:c,y:u,w:d,h:h,radius:n}),t.fill()):t.fillRect(c,u,d,h)}}function Df(t,e,n,r){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,Sl);else{let n=t.getPointPosition(0,e);i.moveTo(n.x,n.y);for(let o=1;o<r;o++)n=t.getPointPosition(o,e),i.lineTo(n.x,n.y)}}class Lf extends yf{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:gc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Yc(Ef(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=rl(t)&&!isNaN(t)?t:0,this.max=rl(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ef(this.options))}generateTickLabels(t){yf.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=sl(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?Pf(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,r))}getIndexAngle(t){return Hl(t*(Sl/(this._pointLabels.length||1))+zl(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(tl(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(tl(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const n=e[t];return function(t,e,n){return Uc(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const r=this.getIndexAngle(t)-Ml+n;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:n,right:r,bottom:i}=this._pointLabelItems[t];return{left:e,top:n,right:r,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),Df(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:r,border:i}=e,o=this._pointLabels.length;let a,s,l;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let i=e-1;i>=0;i--){const e=t._pointLabelItems[i];if(!e.visible)continue;const o=r.setContext(t.getPointLabelContext(i));Af(n,o,e);const a=qc(o.font),{x:s,y:l,textAlign:c}=e;zc(n,t._pointLabels[i],s,l+a.lineHeight/2,a,{color:o.color,textAlign:c,textBaseline:"middle"})}}(this,o),r.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){s=this.getDistanceFromCenterForValue(t.value);const n=this.getContext(e),a=r.setContext(n),l=i.setContext(n);!function(t,e,n,r,i){const o=t.ctx,a=e.circular,{color:s,lineWidth:l}=e;!a&&!r||!s||!l||n<0||(o.save(),o.strokeStyle=s,o.lineWidth=l,o.setLineDash(i.dash||[]),o.lineDashOffset=i.dashOffset,o.beginPath(),Df(t,n,a,r),o.closePath(),o.stroke(),o.restore())}(this,a,s,o,l)}})),n.display){for(t.save(),a=o-1;a>=0;a--){const r=n.setContext(this.getPointLabelContext(a)),{color:i,lineWidth:o}=r;o&&i&&(t.lineWidth=o,t.strokeStyle=i,t.setLineDash(r.borderDash),t.lineDashOffset=r.borderDashOffset,s=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),l=this.getPointPosition(a,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const r=this.getIndexAngle(0);let i,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((r,a)=>{if(0===a&&this.min>=0&&!e.reverse)return;const s=n.setContext(this.getContext(a)),l=qc(s.font);if(i=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){t.font=l.string,o=t.measureText(r.label).width,t.fillStyle=s.backdropColor;const e=Yc(s.backdropPadding);t.fillRect(-o/2-e.left,-i-l.size/2-e.top,o+e.width,l.size+e.height)}zc(t,r.label,0,-i,l,{color:s.color,strokeColor:s.textStrokeColor,strokeWidth:s.textStrokeWidth})})),t.restore()}drawTitle(){}}const If={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}},zf=Object.keys(If);function Rf(t,e){return t-e}function Ff(t,e){if(tl(e))return null;const n=t._adapter,{parser:r,round:i,isoWeekday:o}=t._parseOpts;let a=e;return"function"==typeof r&&(a=r(a)),rl(a)||(a="string"==typeof r?n.parse(a,r):n.parse(a)),null===a?null:(i&&(a="week"!==i||!Ll(o)&&!0!==o?n.startOf(a,i):n.startOf(a,"isoWeek",o)),+a)}function $f(t,e,n,r){const i=zf.length;for(let o=zf.indexOf(t);o<i-1;++o){const t=If[zf[o]],i=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(i*t.size))<=r)return zf[o]}return zf[i-1]}function jf(t,e,n){if(n){if(n.length){const{lo:r,hi:i}=ql(n,e);t[n[r]>=e?n[r]:n[i]]=!0}}else t[e]=!0}function Bf(t,e,n){const r=[],i={},o=e.length;let a,s;for(a=0;a<o;++a)s=e[a],i[s]=a,r.push({value:s,major:!1});return 0!==o&&n?function(t,e,n,r){const i=t._adapter,o=+i.startOf(e[0].value,r),a=e[e.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(e[l].major=!0);return e}(t,r,i,n):r}class Hf extends ph{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(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const n=t.time||(t.time={}),r=this._adapter=new bd._date(t.adapters.date);r.init(e),fl(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Ff(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:r,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();function s(t){o||isNaN(t.min)||(r=Math.min(r,t.min)),a||isNaN(t.max)||(i=Math.max(i,t.max))}o&&a||(s(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||s(this.getMinMax(!1))),r=rl(r)&&!isNaN(r)?r:+e.startOf(Date.now(),n),i=rl(i)&&!isNaN(i)?i:+e.endOf(Date.now(),n)+1,this.min=Math.min(r,i-1),this.max=Math.max(r+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const i=this.min,o=function(t,e,n){let r=0,i=t.length;for(;r<i&&t[r]<e;)r++;for(;i>r&&t[i-1]>n;)i--;return r>0||i<t.length?t.slice(r,i):t}(r,i,this.max);return this._unit=e.unit||(n.autoSkip?$f(e.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(t,e,n,r,i){for(let o=zf.length-1;o>=zf.indexOf(n);o--){const n=zf[o];if(If[n].common&&t._adapter.diff(i,r,n)>=e-1)return n}return zf[n?zf.indexOf(n):0]}(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=zf.indexOf(t)+1,n=zf.length;e<n;++e)if(If[zf[e]].common)return zf[e]}(this._unit):void 0,this.initOffsets(r),t.reverse&&o.reverse(),Bf(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,n,r=0,i=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),r=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),i=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;r=Vl(r,0,o),i=Vl(i,0,o),this._offsets={start:r,end:i,factor:1/(r+1+i)}}_generate(){const t=this._adapter,e=this.min,n=this.max,r=this.options,i=r.time,o=i.unit||$f(i.minUnit,e,n,this._getLabelCapacity(e)),a=ol(r.ticks.stepSize,1),s="week"===o&&i.isoWeekday,l=Ll(s)||!0===s,c={};let u,d,h=e;if(l&&(h=+t.startOf(h,"isoWeek",s)),h=+t.startOf(h,l?"day":o),t.diff(n,e,o)>1e5*a)throw new Error(e+" and "+n+" are too far apart with stepSize of "+a+" "+o);const p="data"===r.ticks.source&&this.getDataTimestamps();for(u=h,d=0;u<n;u=+t.add(u,a,o),d++)jf(c,u,p);return u!==n&&"ticks"!==r.bounds&&1!==d||jf(c,u,p),Object.keys(c).sort(Rf).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,r=this._unit,i=e||n[r];return this._adapter.format(t,i)}_tickFormatFunction(t,e,n,r){const i=this.options,o=i.ticks.callback;if(o)return sl(o,[t,e,n],this);const a=i.time.displayFormats,s=this._unit,l=this._majorUnit,c=s&&a[s],u=l&&a[l],d=n[e],h=l&&u&&d&&d.major;return this._adapter.format(t,r||(h?u:c))}generateTickLabels(t){let e,n,r;for(e=0,n=t.length;e<n;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,r=zl(this.isHorizontal()?e.maxRotation:e.minRotation),i=Math.cos(r),o=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:n*i+a*o,h:n*o+a*i}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,r=n[e.unit]||n.millisecond,i=this._tickFormatFunction(t,0,Bf(this,[t],this._majorUnit),r),o=this._getLabelSize(i),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t<e;++t)n=n.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const r=this.getLabels();for(e=0,n=r.length;e<n;++e)t.push(Ff(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Kl(t.sort(Rf))}}function Wf(t,e,n){let r,i,o,a,s=0,l=t.length-1;n?(e>=t[s].pos&&e<=t[l].pos&&({lo:s,hi:l}=Xl(t,"pos",e)),({pos:r,time:o}=t[s]),({pos:i,time:a}=t[l])):(e>=t[s].time&&e<=t[l].time&&({lo:s,hi:l}=Xl(t,"time",e)),({time:r,pos:o}=t[s]),({time:i,pos:a}=t[l]));const c=i-r;return c?o+(a-o)*(e-r)/c:o}var Vf=Object.freeze({__proto__:null,CategoryScale:mf,LinearScale:bf,LogarithmicScale:Cf,RadialLinearScale:Lf,TimeScale:Hf,TimeSeriesScale:class extends Hf{static id="timeseries";static defaults=Hf.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Wf(e,this.min),this._tableRange=Wf(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,r=[],i=[];let o,a,s,l,c;for(o=0,a=t.length;o<a;++o)l=t[o],l>=e&&l<=n&&r.push(l);if(r.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(o=0,a=r.length;o<a;++o)c=r[o+1],s=r[o-1],l=r[o],Math.round((c+s)/2)!==l&&i.push({time:l,pos:o/(a-1)});return i}_generate(){const t=this.min,e=this.max;let n=super.getDataTimestamps();return n.includes(t)&&n.length||n.splice(0,0,t),n.includes(e)&&1!==n.length||n.push(e),n.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Wf(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Wf(this._table,n*this._tableRange+this._minPos,!0)}}});const Yf=[gd,fp,hf,Vf];Yh.register(...Yf);const qf=({type:e,data:n,options:r,className:i,style:o,plugins:a})=>{const c=s(null),u=s(null);return l((()=>{if(!c.current)return;const t=c.current.getContext("2d");return t?(u.current&&u.current.destroy(),u.current=new Yh(t,{type:e,data:n,options:r||{},plugins:a||[]}),()=>{u.current&&(u.current.destroy(),u.current=null)}):void 0}),[e,n,r,a]),t("canvas",{ref:c,className:i,style:o})};var Xf="Checkbox-module_container__v4ouY",Uf="Checkbox-module_disabled__PAavY",Zf="Checkbox-module_checkbox__tiPi8",Gf="Checkbox-module_indeterminate__GxPm3";var Kf=a((({checked:n,disabled:r,label:i,indeterminate:o,labelProps:a,onChange:s,...l})=>{const[c,d]=u(n);return t(B,{...l,dimensionY:36,onClick:()=>{r||(d(!c),s?.(!c))},className:`${l.className} ${Xf} ${r&&Uf}`,prefix:{children:e("div",{className:`${Zf} ${o&&Gf}`,children:[t("input",{type:"checkbox",checked:c}),t("label",{htmlFor:"checkbox"})]}),...l.prefix},root:{children:t(W,{...a,children:i}),...l.root}})})),Jf={chip:"Chip-module_chip__DLgqh",outlined:"Chip-module_outlined__1seXI",filled:"Chip-module_filled__iKdFt",noButton:"Chip-module_noButton__nEh--",closeButton:"Chip-module_closeButton__83TVb"};var Qf=a((({label:e,variant:n="filled",icon:r,onDelete:i,suffixIcon:o,suffixOnClick:a,...s})=>t(B,{dimensionX:"hug",gap:8,prefix:{dimensionX:"hug",children:r?t(Ua,{name:r}):void 0,...s.prefix},root:{children:e,...s.root},suffix:(o||i)&&{dimensionX:"hug",alignment:"center",children:t(ys,{className:Jf.closeButton,shape:"circle",color:"transparent",onClick:o?a:i,children:t(Ua,{name:o||"close"})}),...s.suffix},...s,className:`${s.className} ${Jf.chip} ${Jf[n]} ${i||o?"":Jf.noButton}`}))),tm="Color-module_color__icl6l";var em=a((({value:e="#000000",prefixProps:n,rootProps:r,onChange:i,...o})=>t(B,{dimensionY:36,prefix:{children:t("input",{type:"color",value:e,onChange:t=>{i?.(t.target.value)}}),...n},root:{children:e&&t(W,{children:e}),...r},...o,className:`${o?.className} ${tm}`}))),nm={container:"DashboardItem-module_container__Cu2fp",settingButton:"DashboardItem-module_settingButton__EVb24",header:"DashboardItem-module_header__1Ltls",chartContainer:"DashboardItem-module_chartContainer__xibFh",chart:"DashboardItem-module_chart__a5kGE"},rm="Section-module_sectionContainer__qECl2",im="Section-module_header__1oDhY",om="Section-module_content__3PfOv",am="Section-module_footer__KPdum";const sm=a((({children:e,...n})=>t(j,{dimensionX:"fill",alignment:"leftTop",...n,className:`${im} ${n.className}`,children:e}))),lm=a((({children:e,...n})=>t(j,{dimensionX:"fill",alignment:"leftTop",...n,className:`${om} ${n.className}`,children:e}))),cm=a((({children:e,...n})=>t(j,{dimensionX:"fill",alignment:"leftTop",...n,className:`${am} ${n.className}`,children:e}))),um=a((({children:e,...n})=>t(j,{dimensionX:"fill",dimensionY:"fill",direction:"vertical",gap:0,...n,className:`${n.className} ${rm}`,children:e})));um.Header=sm,um.Content=lm,um.Footer=cm;const dm=({headerProps:n,chartProps:r})=>e(um,{className:nm.dashboardItem,children:[e(um.Header,{children:[t(W,{children:n?.content}),n?.suffix||t(ys,{color:"transparent",shape:"circle",className:nm.settingButton,children:t(Ua,{name:"cog",className:nm.settingIcon,size:"xs"})})]}),t(um.Content,{children:t(qf,{type:r?.type,data:r?.data,options:r?.options,className:nm.chart})})]});var hm,pm={exports:{}};
|
|
50
|
-
/*!
|
|
51
|
-
Copyright (c) 2018 Jed Watson.
|
|
52
|
-
Licensed under the MIT License (MIT), see
|
|
53
|
-
http://jedwatson.github.io/classnames
|
|
54
|
-
*/var fm=(hm||(hm=1,function(t){!function(){var e={}.hasOwnProperty;function n(){for(var t="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(t=i(t,r(n)))}return t}function r(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var r="";for(var o in t)e.call(t,o)&&t[o]&&(r=i(r,o));return r}function i(t,e){return e?t?t+" "+e:t+e:t}t.exports?(n.default=n,t.exports=n):window.classNames=n}()}(pm)),pm.exports),mm=vt(fm);function gm(){return gm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gm.apply(null,arguments)}function vm(t){return vm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vm(t)}var ym=Symbol.for("react.element"),bm=Symbol.for("react.transitional.element"),xm=Symbol.for("react.fragment");function _m(t){return t&&"object"===vm(t)&&(t.$$typeof===ym||t.$$typeof===bm)&&t.type===xm}function wm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return i.Children.forEach(t,(function(t){(null!=t||e.keepEmpty)&&(Array.isArray(t)?n=n.concat(wm(t)):_m(t)&&t.props?n=n.concat(wm(t.props.children,e)):n.push(t))})),n}var Sm={},km=[];function Cm(t,e){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var n=km.reduce((function(t,e){return e(null!=t?t:"","warning")}),e);n&&console.error("Warning: ".concat(n))}}function Em(t,e){if("production"!==process.env.NODE_ENV&&!t&&void 0!==console){var n=km.reduce((function(t,e){return e(null!=t?t:"","note")}),e);n&&console.warn("Note: ".concat(n))}}function Mm(){Sm={}}function Pm(t,e,n){e||Sm[n]||(t(!1,n),Sm[n]=!0)}function Om(t,e){Pm(Cm,t,e)}function Tm(t){return Tm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tm(t)}function Nm(t){var e=function(t,e){if("object"!=Tm(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Tm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Tm(e)?e:e+""}function Am(t,e,n){return(e=Nm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Dm(Object(n),!0).forEach((function(e){Am(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Im(t){return t instanceof HTMLElement||t instanceof SVGElement}function zm(t){var e,n=function(t){return t&&"object"===vm(t)&&Im(t.nativeElement)?t.nativeElement:Im(t)?t:null}(t);return n||(t instanceof i.Component?null===(e=E.findDOMNode)||void 0===e?void 0:e.call(E,t):null)}Om.preMessage=function(t){km.push(t)},Om.resetWarned=Mm,Om.noteOnce=function(t,e){Pm(Em,t,e)};var Rm,Fm={exports:{}},$m={};var jm,Bm,Hm={};
|
|
55
|
-
/**
|
|
56
|
-
* @license React
|
|
57
|
-
* react-is.development.js
|
|
58
|
-
*
|
|
59
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
60
|
-
*
|
|
61
|
-
* This source code is licensed under the MIT license found in the
|
|
62
|
-
* LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/var Wm=(Bm||(Bm=1,"production"===process.env.NODE_ENV?Fm.exports=function(){if(Rm)return $m;Rm=1;var t,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(t){if("object"==typeof t&&null!==t){var f=t.$$typeof;switch(f){case e:switch(t=t.type){case r:case o:case i:case u:case d:return t;default:switch(t=t&&t.$$typeof){case l:case s:case c:case p:case h:case a:return t;default:return f}}case n:return f}}}return t=Symbol.for("react.module.reference"),$m.ContextConsumer=s,$m.ContextProvider=a,$m.Element=e,$m.ForwardRef=c,$m.Fragment=r,$m.Lazy=p,$m.Memo=h,$m.Portal=n,$m.Profiler=o,$m.StrictMode=i,$m.Suspense=u,$m.SuspenseList=d,$m.isAsyncMode=function(){return!1},$m.isConcurrentMode=function(){return!1},$m.isContextConsumer=function(t){return m(t)===s},$m.isContextProvider=function(t){return m(t)===a},$m.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},$m.isForwardRef=function(t){return m(t)===c},$m.isFragment=function(t){return m(t)===r},$m.isLazy=function(t){return m(t)===p},$m.isMemo=function(t){return m(t)===h},$m.isPortal=function(t){return m(t)===n},$m.isProfiler=function(t){return m(t)===o},$m.isStrictMode=function(t){return m(t)===i},$m.isSuspense=function(t){return m(t)===u},$m.isSuspenseList=function(t){return m(t)===d},$m.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===i||e===u||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===t||void 0!==e.getModuleId)},$m.typeOf=m,$m}():Fm.exports=(jm||(jm=1,"production"!==process.env.NODE_ENV&&function(){var t,e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen");function m(t){if("object"==typeof t&&null!==t){var f=t.$$typeof;switch(f){case e:var m=t.type;switch(m){case r:case o:case i:case u:case d:return m;default:var g=m&&m.$$typeof;switch(g){case l:case s:case c:case p:case h:case a:return g;default:return f}}case n:return f}}}t=Symbol.for("react.module.reference");var g=s,v=a,y=e,b=c,x=r,_=p,w=h,S=n,k=o,C=i,E=u,M=d,P=!1,O=!1;Hm.ContextConsumer=g,Hm.ContextProvider=v,Hm.Element=y,Hm.ForwardRef=b,Hm.Fragment=x,Hm.Lazy=_,Hm.Memo=w,Hm.Portal=S,Hm.Profiler=k,Hm.StrictMode=C,Hm.Suspense=E,Hm.SuspenseList=M,Hm.isAsyncMode=function(t){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Hm.isConcurrentMode=function(t){return O||(O=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Hm.isContextConsumer=function(t){return m(t)===s},Hm.isContextProvider=function(t){return m(t)===a},Hm.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Hm.isForwardRef=function(t){return m(t)===c},Hm.isFragment=function(t){return m(t)===r},Hm.isLazy=function(t){return m(t)===p},Hm.isMemo=function(t){return m(t)===h},Hm.isPortal=function(t){return m(t)===n},Hm.isProfiler=function(t){return m(t)===o},Hm.isStrictMode=function(t){return m(t)===i},Hm.isSuspense=function(t){return m(t)===u},Hm.isSuspenseList=function(t){return m(t)===d},Hm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===i||e===u||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===t||void 0!==e.getModuleId)},Hm.typeOf=m}()),Hm)),Fm.exports);function Vm(t,e,n){var i=r.useRef({});return"value"in i.current&&!n(i.current.condition,e)||(i.current.value=t(),i.current.condition=e),i.current.value}var Ym=Number(f.split(".")[0]),qm=function(t,e){"function"==typeof t?t(e):"object"===vm(t)&&t&&"current"in t&&(t.current=e)},Xm=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter(Boolean);return r.length<=1?r[0]:function(t){e.forEach((function(e){qm(e,t)}))}},Um=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Vm((function(){return Xm.apply(void 0,e)}),e,(function(t,e){return t.length!==e.length||t.every((function(t,n){return t!==e[n]}))}))},Zm=function(t){var e,n;if(!t)return!1;if(Gm(t)&&Ym>=19)return!0;var r=Wm.isMemo(t)?t.type.type:t.type;return!!("function"!=typeof r||null!==(e=r.prototype)&&void 0!==e&&e.render||r.$$typeof===Wm.ForwardRef)&&!!("function"!=typeof t||null!==(n=t.prototype)&&void 0!==n&&n.render||t.$$typeof===Wm.ForwardRef)};function Gm(t){return m(t)&&!_m(t)}var Km=function(t){if(t&&Gm(t)){var e=t;return e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref}return null},Jm=r.createContext(null);var Qm=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),tg="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,eg="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ng="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(eg):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var rg=["top","right","bottom","left","width","height","size","weight"],ig="undefined"!=typeof MutationObserver,og=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&s()}function a(){ng(o)}function s(){var t=Date.now();if(n){if(t-i<2)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=t}return s}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){tg&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ig?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){tg&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;rg.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ag=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},sg=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||eg},lg=fg(0,0,0,0);function cg(t){return parseFloat(t)||0}function ug(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+cg(t["border-"+n+"-width"])}),0)}function dg(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return lg;var r=sg(t).getComputedStyle(t),i=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=t["padding-"+i];e[i]=cg(o)}return e}(r),o=i.left+i.right,a=i.top+i.bottom,s=cg(r.width),l=cg(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=ug(r,"left","right")+o),Math.round(l+a)!==n&&(l-=ug(r,"top","bottom")+a)),!function(t){return t===sg(t).document.documentElement}(t)){var c=Math.round(s+o)-e,u=Math.round(l+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return fg(i.left,i.top,s,l)}var hg="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof sg(t).SVGGraphicsElement}:function(t){return t instanceof sg(t).SVGElement&&"function"==typeof t.getBBox};function pg(t){return tg?hg(t)?function(t){var e=t.getBBox();return fg(0,0,e.width,e.height)}(t):dg(t):lg}function fg(t,e,n,r){return{x:t,y:e,width:n,height:r}}var mg=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fg(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=pg(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),gg=function(t,e){var n=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return ag(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}(e);ag(this,{target:t,contentRect:n})},vg=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new Qm,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof sg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new mg(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof sg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new gg(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),yg="undefined"!=typeof WeakMap?new WeakMap:new Qm,bg=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=og.getInstance(),r=new vg(e,n,this);yg.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){bg.prototype[t]=function(){var e;return(e=yg.get(this))[t].apply(e,arguments)}}));var xg=void 0!==eg.ResizeObserver?eg.ResizeObserver:bg,_g=Object.freeze({__proto__:null,default:xg}),wg=new Map;function Sg(t){t.forEach((function(t){var e,n=t.target;null===(e=wg.get(n))||void 0===e||e.forEach((function(t){return t(n)}))}))}var kg=new xg(Sg);function Cg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Eg(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Nm(r.key),r)}}function Mg(t,e,n){return e&&Eg(t.prototype,e),n&&Eg(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pg(t,e){return Pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Pg(t,e)}function Og(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pg(t,e)}function Tg(t){return Tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Tg(t)}function Ng(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ng=function(){return!!t})()}function Ag(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dg(t){var e=Ng();return function(){var n,r=Tg(t);if(e){var i=Tg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"==Tm(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ag(t)}(this,n)}}process.env.NODE_ENV,process.env.NODE_ENV;var Lg=function(){Og(e,r.Component);var t=Dg(e);function e(){return Cg(this,e),t.apply(this,arguments)}return Mg(e,[{key:"render",value:function(){return this.props.children}}]),e}();function Ig(t,e){var n=t.children,i=t.disabled,o=r.useRef(null),a=r.useRef(null),s=r.useContext(Jm),l="function"==typeof n,c=l?n(o):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&r.isValidElement(c)&&Zm(c),h=d?Km(c):null,p=Um(h,o),f=function(){var t;return zm(o.current)||(o.current&&"object"===Tm(o.current)?zm(null===(t=o.current)||void 0===t?void 0:t.nativeElement):null)||zm(a.current)};r.useImperativeHandle(e,(function(){return f()}));var m=r.useRef(t);m.current=t;var g=r.useCallback((function(t){var e=m.current,n=e.onResize,r=e.data,i=t.getBoundingClientRect(),o=i.width,a=i.height,l=t.offsetWidth,c=t.offsetHeight,d=Math.floor(o),h=Math.floor(a);if(u.current.width!==d||u.current.height!==h||u.current.offsetWidth!==l||u.current.offsetHeight!==c){var p={width:d,height:h,offsetWidth:l,offsetHeight:c};u.current=p;var f=l===Math.round(o)?o:l,g=c===Math.round(a)?a:c,v=Lm(Lm({},p),{},{offsetWidth:f,offsetHeight:g});null==s||s(v,t,r),n&&Promise.resolve().then((function(){n(v,t)}))}}),[]);return r.useEffect((function(){var t=f();return t&&!i&&function(t,e){wg.has(t)||(wg.set(t,new Set),kg.observe(t)),wg.get(t).add(e)}(t,g),function(){return function(t,e){wg.has(t)&&(wg.get(t).delete(e),wg.get(t).size||(kg.unobserve(t),wg.delete(t)))}(t,g)}}),[o.current,i]),r.createElement(Lg,{ref:a},d?r.cloneElement(c,{ref:p}):c)}var zg=r.forwardRef(Ig);"production"!==process.env.NODE_ENV&&(zg.displayName="SingleObserver");function Rg(t,e){var n=t.children,i="function"==typeof n?[n]:wm(n);return"production"!==process.env.NODE_ENV&&(i.length>1?Cm(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):0===i.length&&Cm(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),i.map((function(n,i){var o=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return r.createElement(zg,gm({},t,{key:o,ref:0===i?e:void 0}),n)}))}var Fg=r.forwardRef(Rg);function $g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}"production"!==process.env.NODE_ENV&&(Fg.displayName="ResizeObserver"),Fg.Collection=function(t){var e=t.children,n=t.onBatchResize,i=r.useRef(0),o=r.useRef([]),a=r.useContext(Jm),s=r.useCallback((function(t,e,r){i.current+=1;var s=i.current;o.current.push({size:t,element:e,data:r}),Promise.resolve().then((function(){s===i.current&&(null==n||n(o.current),o.current=[])})),null==a||a(t,e,r)}),[n,a]);return r.createElement(Jm.Provider,{value:s},e)};var jg=function(t){return+setTimeout(t,16)},Bg=function(t){return clearTimeout(t)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(jg=function(t){return window.requestAnimationFrame(t)},Bg=function(t){return window.cancelAnimationFrame(t)});var Hg=0,Wg=new Map;function Vg(t){Wg.delete(t)}var Yg=function(t){var e=Hg+=1;return function n(r){if(0===r)Vg(e),t();else{var i=jg((function(){n(r-1)}));Wg.set(e,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),e};function qg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Xg(t,e){if(t){if("string"==typeof t)return qg(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qg(t,e):void 0}}function Ug(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||Xg(t,e)||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 Zg(t){return function(t){if(Array.isArray(t))return qg(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Xg(t)||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 Gg(t){for(var e,n=0,r=0,i=t.length;i>=4;++r,i-=4)e=1540483477*(65535&(e=255&t.charCodeAt(r)|(255&t.charCodeAt(++r))<<8|(255&t.charCodeAt(++r))<<16|(255&t.charCodeAt(++r))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&t.charCodeAt(r+2))<<16;case 2:n^=(255&t.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function Kg(t){var e=function(t,e){if("object"!=vm(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=vm(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vm(e)?e:e+""}function Jg(t,e,n){return(e=Kg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qg(Object(n),!0).forEach((function(e){Jg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ev(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}Yg.cancel=function(t){var e=Wg.get(t);return Vg(t),Bg(e)},"production"!==process.env.NODE_ENV&&(Yg.ids=function(){return Wg});var nv="data-rc-order",rv="data-rc-priority",iv=new Map;function ov(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function av(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function sv(t){return Array.from((iv.get(t)||t).children).filter((function(t){return"STYLE"===t.tagName}))}function lv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ev())return null;var n=e.csp,r=e.prepend,i=e.priority,o=void 0===i?0:i,a=function(t){return"queue"===t?"prependQueue":t?"prepend":"append"}(r),s="prependQueue"===a,l=document.createElement("style");l.setAttribute(nv,a),s&&o&&l.setAttribute(rv,"".concat(o)),null!=n&&n.nonce&&(l.nonce=null==n?void 0:n.nonce),l.innerHTML=t;var c=av(e),u=c.firstChild;if(r){if(s){var d=(e.styles||sv(c)).filter((function(t){if(!["prepend","prependQueue"].includes(t.getAttribute(nv)))return!1;var e=Number(t.getAttribute(rv)||0);return o>=e}));if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function cv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=av(e);return(e.styles||sv(n)).find((function(n){return n.getAttribute(ov(e))===t}))}function uv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=cv(t,e);n&&av(e).removeChild(n)}function dv(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=av(n),i=sv(r),o=tv(tv({},n),{},{styles:i});!function(t,e){var n=iv.get(t);if(!n||!function(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}(document,n)){var r=lv("",e),i=r.parentNode;iv.set(t,i),t.removeChild(r)}}(r,o);var a=cv(e,o);if(a){var s,l,c;if(null!==(s=o.csp)&&void 0!==s&&s.nonce&&a.nonce!==(null===(l=o.csp)||void 0===l?void 0:l.nonce))a.nonce=null===(c=o.csp)||void 0===c?void 0:c.nonce;return a.innerHTML!==t&&(a.innerHTML=t),a}var u=lv(t,o);return u.setAttribute(ov(o),e),u}function hv(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}return n}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],-1===e.indexOf(n)&&{}.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function pv(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function t(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(e);if(Om(!a,"Warning: There may be circular references"),a)return!1;if(e===i)return!0;if(n&&o>1)return!1;r.add(e);var s=o+1;if(Array.isArray(e)){if(!Array.isArray(i)||e.length!==i.length)return!1;for(var l=0;l<e.length;l++)if(!t(e[l],i[l],s))return!1;return!0}if(e&&i&&"object"===vm(e)&&"object"===vm(i)){var c=Object.keys(e);return c.length===Object.keys(i).length&&c.every((function(n){return t(e[n],i[n],s)}))}return!1}(t,e)}function fv(t){return t.join("%")}var mv=function(){function t(e){Cg(this,t),Am(this,"instanceId",void 0),Am(this,"cache",new Map),this.instanceId=e}return Mg(t,[{key:"get",value:function(t){return this.opGet(fv(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,e){return this.opUpdate(fv(t),e)}},{key:"opUpdate",value:function(t,e){var n=e(this.cache.get(t));null===n?this.cache.delete(t):this.cache.set(t,n)}}]),t}(),gv="data-token-hash",vv="data-css-hash",yv="__cssinjs_instance__";var bv=r.createContext({hashPriority:"low",cache:function(){var t=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(vv,"]"))||[],n=document.head.firstChild;Array.from(e).forEach((function(e){e[yv]=e[yv]||t,e[yv]===t&&document.head.insertBefore(e,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(vv,"]"))).forEach((function(e){var n,i=e.getAttribute(vv);r[i]?e[yv]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e)):r[i]=!0}))}return new mv(t)}(),defaultCache:!0});var xv=function(){function t(){Cg(this,t),Am(this,"cache",void 0),Am(this,"keys",void 0),Am(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Mg(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={map:this.cache};return t.forEach((function(t){var e;i?i=null===(e=i)||void 0===e||null===(e=e.map)||void 0===e?void 0:e.get(t):i=void 0})),null!==(e=i)&&void 0!==e&&e.value&&r&&(i.value[1]=this.cacheCallTimes++),null===(n=i)||void 0===n?void 0:n.value}},{key:"get",value:function(t){var e;return null===(e=this.internalGet(t,!0))||void 0===e?void 0:e[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(e,n){var r=this;if(!this.has(e)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(t,e){var n=Ug(t,2)[1];return r.internalGet(e)[1]<n?[e,r.internalGet(e)[1]]:t}),[this.keys[0],this.cacheCallTimes]),o=Ug(i,1)[0];this.delete(o)}this.keys.push(e)}var a=this.cache;e.forEach((function(t,i){if(i===e.length-1)a.set(t,{value:[n,r.cacheCallTimes++]});else{var o=a.get(t);o?o.map||(o.map=new Map):a.set(t,{map:new Map}),a=a.get(t).map}}))}},{key:"deleteByPath",value:function(t,e){var n,r=t.get(e[0]);if(1===e.length)return r.map?t.set(e[0],{map:r.map}):t.delete(e[0]),null===(n=r.value)||void 0===n?void 0:n[0];var i=this.deleteByPath(r.map,e.slice(1));return r.map&&0!==r.map.size||r.value||t.delete(e[0]),i}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter((function(e){return!function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(e,t)})),this.deleteByPath(this.cache,t)}}]),t}();Am(xv,"MAX_CACHE_SIZE",20),Am(xv,"MAX_CACHE_OFFSET",5);var _v=0,wv=function(){function t(e){Cg(this,t),Am(this,"derivatives",void 0),Am(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=_v,0===e.length&&Cm(e.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),_v+=1}return Mg(t,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce((function(e,n){return n(t,e)}),void 0)}}]),t}(),Sv=new xv;function kv(t){var e=Array.isArray(t)?t:[t];return Sv.has(e)||Sv.set(e,new wv(e)),Sv.get(e)}var Cv=new WeakMap,Ev={};var Mv=new WeakMap;function Pv(t){var e=Mv.get(t)||"";return e||(Object.keys(t).forEach((function(n){var r=t[n];e+=n,r instanceof wv?e+=r.id:r&&"object"===Tm(r)?e+=Pv(r):e+=r})),e=Gg(e),Mv.set(t,e)),e}function Ov(t,e){return Gg("".concat(e,"_").concat(Pv(t)))}var Tv=ev();function Nv(t){return"number"==typeof t?"".concat(t,"px"):t}function Av(t,e,n){var r;if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return t;var i=Lm(Lm({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},(Am(r={},gv,e),Am(r,vv,n),r)),o=Object.keys(i).map((function(t){var e=i[t];return e?"".concat(t,'="').concat(e,'"'):null})).filter((function(t){return t})).join(" ");return"<style ".concat(o,">").concat(t,"</style>")}var Dv=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(e?"".concat(e,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Lv=function(t,e,n){return Object.keys(t).length?".".concat(e).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map((function(t){var e=Ug(t,2),n=e[0],r=e[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},Iv=function(t,e,n){var r={},i={};return Object.entries(t).forEach((function(t){var e,o,a=Ug(t,2),s=a[0],l=a[1];if(null!=n&&null!==(e=n.preserve)&&void 0!==e&&e[s])i[s]=l;else if(!("string"!=typeof l&&"number"!=typeof l||null!=n&&null!==(o=n.ignore)&&void 0!==o&&o[s])){var c,u=Dv(s,null==n?void 0:n.prefix);r[u]="number"!=typeof l||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[s]?String(l):"".concat(l,"px"),i[s]="var(".concat(u,")")}})),[i,Lv(r,e,{scope:null==n?void 0:n.scope})]},zv="test"!==process.env.NODE_ENV&&ev()?r.useLayoutEffect:r.useEffect,Rv=function(t,e){var n=r.useRef(!0);zv((function(){return t(n.current)}),e),zv((function(){return n.current=!1,function(){n.current=!0}}),[])},Fv=function(t,e){Rv((function(e){if(!e)return t()}),e)},$v=Lm({},r).useInsertionEffect,jv=$v?function(t,e,n){return $v((function(){return t(),e()}),n)}:function(t,e,n){r.useMemo(t,n),Rv((function(){return e(!0)}),n)},Bv=void 0!==Lm({},r).useInsertionEffect?function(t){var e=[],n=!1;return r.useEffect((function(){return n=!1,function(){n=!0,e.length&&e.forEach((function(t){return t()}))}}),t),function(t){n?"production"!==process.env.NODE_ENV&&Cm(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect."):e.push(t)}}:function(){return function(t){t()}};var Hv=!1;var Wv="production"===process.env.NODE_ENV?function(){return!1}:function(){return Hv};if("production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&module&&module.hot&&"undefined"!=typeof window){var Vv="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:null;if(Vv&&"function"==typeof Vv.webpackHotUpdate){var Yv=Vv.webpackHotUpdate;Vv.webpackHotUpdate=function(){return Hv=!0,setTimeout((function(){Hv=!1}),0),Yv.apply(void 0,arguments)}}}function qv(t,e,n,i,o){var a=r.useContext(bv).cache,s=fv([t].concat(Zg(e))),l=Bv([s]),c=Wv(),u=function(t){a.opUpdate(s,(function(e){var r=Ug(e||[void 0,void 0],2),o=r[0],a=void 0===o?0:o,s=r[1],l=s;"production"!==process.env.NODE_ENV&&s&&c&&(null==i||i(l,c),l=null);var u=[a,l||n()];return t?t(u):u}))};r.useMemo((function(){u()}),[s]);var d=a.opGet(s);"production"===process.env.NODE_ENV||d||(u(),d=a.opGet(s));var h=d[1];return jv((function(){null==o||o(h)}),(function(t){return u((function(e){var n=Ug(e,2),r=n[0],i=n[1];return t&&0===r&&(null==o||o(h)),[r+1,i]})),function(){a.opUpdate(s,(function(e){var n=Ug(e||[],2),r=n[0],o=void 0===r?0:r,c=n[1];return 0===o-1?(l((function(){!t&&a.opGet(s)||null==i||i(c,!1)})),null):[o-1,c]}))}}),[s]),h}var Xv={},Uv="production"!==process.env.NODE_ENV?"css-dev-only-do-not-override":"css",Zv=new Map;function Gv(t,e){Zv.set(t,(Zv.get(t)||0)-1);var n=Array.from(Zv.keys()),r=n.filter((function(t){return(Zv.get(t)||0)<=0}));n.length-r.length>0&&r.forEach((function(t){!function(t,e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(gv,'="').concat(t,'"]')).forEach((function(t){var n;t[yv]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t))}))}(t,e),Zv.delete(t)}))}var Kv="token";function Jv(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=p(bv),i=r.cache.instanceId,o=r.container,a=n.salt,s=void 0===a?"":a,l=n.override,c=void 0===l?Xv:l,u=n.formatToken,d=n.getComputedToken,h=n.cssVar,f=function(t,e){for(var n=Cv,r=0;r<e.length;r+=1){var i=e[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(Ev)||n.set(Ev,t()),n.get(Ev)}((function(){return Object.assign.apply(Object,[{}].concat(Zg(e)))}),e),m=Pv(f),g=Pv(c),v=h?Pv(h):"",y=qv(Kv,[s,t.id,m,g,v],(function(){var e,n=d?d(f,c,t):function(t,e,n,r){var i=Lm(Lm({},n.getDerivativeToken(t)),e);return r&&(i=r(i)),i}(f,c,t,u),r=Lm({},n),i="";if(h){var o=Ug(Iv(n,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),2);n=o[0],i=o[1]}var a=Ov(n,s);n._tokenKey=a,r._tokenKey=Ov(r,s);var l=null!==(e=null==h?void 0:h.key)&&void 0!==e?e:a;n._themeKey=l,function(t){Zv.set(t,(Zv.get(t)||0)+1)}(l);var p="".concat(Uv,"-").concat(Gg(a));return n._hashId=p,[n,p,r,i,(null==h?void 0:h.key)||""]}),(function(t){Gv(t[0]._themeKey,i)}),(function(t){var e=Ug(t,4),n=e[0],r=e[3];if(h&&r){var a=dv(r,Gg("css-variables-".concat(n._themeKey)),{mark:vv,prepend:"queue",attachTo:o,priority:-999});a[yv]=i,a.setAttribute(gv,n._themeKey)}}));return y}var Qv={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ty="comm",ey="rule",ny="decl",ry=Math.abs,iy=String.fromCharCode;function oy(t){return t.trim()}function ay(t,e,n){return t.replace(e,n)}function sy(t,e,n){return t.indexOf(e,n)}function ly(t,e){return 0|t.charCodeAt(e)}function cy(t,e,n){return t.slice(e,n)}function uy(t){return t.length}function dy(t,e){return e.push(t),t}var hy=1,py=1,fy=0,my=0,gy=0,vy="";function yy(t,e,n,r,i,o,a,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:hy,column:py,length:a,return:"",siblings:s}}function by(){return gy=my>0?ly(vy,--my):0,py--,10===gy&&(py=1,hy--),gy}function xy(){return gy=my<fy?ly(vy,my++):0,py++,10===gy&&(py=1,hy++),gy}function _y(){return ly(vy,my)}function wy(){return my}function Sy(t,e){return cy(vy,t,e)}function ky(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cy(t){return oy(Sy(my-1,Py(91===t?t+2:40===t?t+1:t)))}function Ey(t){for(;(gy=_y())&&gy<33;)xy();return ky(t)>2||ky(gy)>3?"":" "}function My(t,e){for(;--e&&xy()&&!(gy<48||gy>102||gy>57&&gy<65||gy>70&&gy<97););return Sy(t,wy()+(e<6&&32==_y()&&32==xy()))}function Py(t){for(;xy();)switch(gy){case t:return my;case 34:case 39:34!==t&&39!==t&&Py(gy);break;case 40:41===t&&Py(t);break;case 92:xy()}return my}function Oy(t,e){for(;xy()&&t+gy!==57&&(t+gy!==84||47!==_y()););return"/*"+Sy(e,my-1)+"*"+iy(47===t?t:xy())}function Ty(t){for(;!ky(_y());)xy();return Sy(t,my)}function Ny(t){return function(t){return vy="",t}(Ay("",null,null,null,[""],t=function(t){return hy=py=1,fy=uy(vy=t),my=0,[]}(t),0,[0],t))}function Ay(t,e,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,h=0,p=0,f=0,m=1,g=1,v=1,y=0,b="",x=i,_=o,w=r,S=b;g;)switch(f=y,y=xy()){case 40:if(108!=f&&58==ly(S,d-1)){-1!=sy(S+=ay(Cy(y),"&","&\f"),"&\f",ry(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Cy(y);break;case 9:case 10:case 13:case 32:S+=Ey(f);break;case 92:S+=My(wy()-1,7);continue;case 47:switch(_y()){case 42:case 47:dy(Ly(Oy(xy(),wy()),e,n,l),l),5!=ky(f||1)&&5!=ky(_y()||1)||!uy(S)||" "===cy(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*m:s[c++]=uy(S)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(S=ay(S,/\f/g,"")),p>0&&(uy(S)-d||0===m&&47===f)&&dy(p>32?Iy(S+";",r,n,d-1,l):Iy(ay(S," ","")+";",r,n,d-2,l),l);break;case 59:S+=";";default:if(dy(w=Dy(S,e,n,c,u,i,s,b,x=[],_=[],d,o),o),123===y)if(0===u)Ay(S,e,w,w,x,o,d,s,_);else{switch(h){case 99:if(110===ly(S,3))break;case 108:if(97===ly(S,2))break;default:u=0;case 100:case 109:case 115:}u?Ay(t,w,w,r&&dy(Dy(t,w,w,0,0,i,s,b,i,x=[],d,_),_),i,_,d,s,r?x:_):Ay(S,w,w,w,[""],_,0,s,_)}}c=u=p=0,m=v=1,b=S="",d=a;break;case 58:d=1+uy(S),p=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==by())continue;switch(S+=iy(y),y*m){case 38:v=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(uy(S)-1)*v,v=1;break;case 64:45===_y()&&(S+=Cy(xy())),h=_y(),u=d=uy(b=S+=Ty(wy())),y++;break;case 45:45===f&&2==uy(S)&&(m=0)}}return o}function Dy(t,e,n,r,i,o,a,s,l,c,u,d){for(var h=i-1,p=0===i?o:[""],f=function(t){return t.length}(p),m=0,g=0,v=0;m<r;++m)for(var y=0,b=cy(t,h+1,h=ry(g=a[m])),x=t;y<f;++y)(x=oy(g>0?p[y]+" "+b:ay(b,/&\f/g,p[y])))&&(l[v++]=x);return yy(t,e,n,0===i?ey:s,l,c,u,d)}function Ly(t,e,n,r){return yy(t,e,n,ty,iy(gy),cy(t,2,-2),0,r)}function Iy(t,e,n,r,i){return yy(t,e,n,ny,cy(t,0,r),cy(t,r+1,-1),r,i)}function zy(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function Ry(t,e,n,r){switch(t.type){case"@layer":if(t.children.length)break;case"@import":case"@namespace":case ny:return t.return=t.return||t.value;case ty:return"";case"@keyframes":return t.return=t.value+"{"+zy(t.children,r)+"}";case ey:if(!uy(t.value=t.props.join(",")))return""}return uy(n=zy(t.children,r))?t.return=t.value+"{"+n+"}":""}function Fy(t,e){var n=e.path,r=e.parentSelectors;Om(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(t).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var $y,jy=function(t,e,n){if("content"===t){("string"!=typeof e||-1===["normal","none","initial","inherit","unset"].indexOf(e)&&!/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||'"'!==e.charAt(0)&&"'"!==e.charAt(0)))&&Fy("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(e,"\"'`."),n)}},By=function(t,e,n){"animation"===t&&n.hashId&&"none"!==e&&Fy("You seem to be using hashed animation '".concat(e,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Hy="data-ant-cssinjs-cache-path",Wy="_FILE_STYLE__",Vy=!0;function Yy(t){return function(){if(!$y&&($y={},ev())){var t=document.createElement("div");t.className=Hy,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";(e=e.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(t){var e=Ug(t.split(":"),2),n=e[0],r=e[1];$y[n]=r}));var n,r=document.querySelector("style[".concat(Hy,"]"));r&&(Vy=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(t)}}(),!!$y[t]}var qy="_skip_check_",Xy="_multi_value_";function Uy(t){return zy(Ny(t),Ry).replace(/\{%%%\:[^;];}/g,";")}function Zy(t,e,n){if(!e)return t;var r=".".concat(e),i="low"===n?":where(".concat(r,")"):r,o=t.split(",").map((function(t){var e,n=t.trim().split(/\s+/),r=n[0]||"",o=(null===(e=r.match(/^\w+/))||void 0===e?void 0:e[0])||"";return[r="".concat(o).concat(i).concat(r.slice(o.length))].concat(Zg(n.slice(1))).join(" ")}));return o.join(",")}var Gy=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer,c=n.path,u=n.hashPriority,d=n.transformers,h=void 0===d?[]:d,p=n.linters,f=void 0===p?[]:p,m="",g={};function v(e){var r=e.getName(s);if(!g[r]){var i=Ug(t(e.style,n,{root:!1,parentSelectors:a}),1)[0];g[r]="@keyframes ".concat(e.getName(s)).concat(i)}}var y=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){Array.isArray(e)?t(e,n):e&&n.push(e)})),n}(Array.isArray(e)?e:[e]);return y.forEach((function(e){var r="string"!=typeof e||i?e:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)v(r);else{var l=h.reduce((function(t,e){var n;return(null==e||null===(n=e.visit)||void 0===n?void 0:n.call(e,t))||t}),r);Object.keys(l).forEach((function(e){var r=l[e];if("object"!==Tm(r)||!r||"animationName"===e&&r._keyframe||function(t){return"object"===Tm(t)&&t&&(qy in t||Xy in t)}(r)){var d;function S(t,e){"production"===process.env.NODE_ENV||"object"===Tm(r)&&null!=r&&r[qy]||[jy,By].concat(Zg(f)).forEach((function(n){return n(t,e,{path:c,hashId:s,parentSelectors:a})}));var n=t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())})),i=e;Qv[t]||"number"!=typeof i||0===i||(i="".concat(i,"px")),"animationName"===t&&null!=e&&e._keyframe&&(v(e),i=e.getName(s)),m+="".concat(n,":").concat(i,";")}var h=null!==(d=null==r?void 0:r.value)&&void 0!==d?d:r;"object"===Tm(r)&&null!=r&&r[Xy]&&Array.isArray(h)?h.forEach((function(t){S(e,t)})):S(e,h)}else{var p=!1,y=e.trim(),b=!1;(i||o)&&s?y.startsWith("@")?p=!0:y=Zy("&"===y?"":e,s,u):!i||s||"&"!==y&&""!==y||(y="",b=!0);var x=Ug(t(r,n,{root:b,injectHash:p,parentSelectors:[].concat(Zg(a),[y])}),2),_=x[0],w=x[1];g=Lm(Lm({},g),w),m+="".concat(y).concat(_)}}))}})),i?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map((function(t){return"@layer ".concat(t,", ").concat(l.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,g]};function Ky(t,e){return Gg("".concat(t.join("%")).concat(e))}function Jy(){return null}var Qy="style";function tb(t,e){var n=t.token,i=t.path,o=t.hashId,a=t.layer,s=t.nonce,l=t.clientOnly,c=t.order,u=void 0===c?0:c,d=r.useContext(bv),h=d.autoClear,p=d.mock,f=d.defaultCache,m=d.hashPriority,g=d.container,v=d.ssrInline,y=d.transformers,b=d.linters,x=d.cache,_=d.layer,w=n._tokenKey,S=[w];_&&S.push("layer"),S.push.apply(S,Zg(i));var k=Tv;"production"!==process.env.NODE_ENV&&void 0!==p&&(k="client"===p);var C=qv(Qy,S,(function(){var t=S.join("|");if(Yy(t)){var n=function(t){var e=$y[t],n=null;if(e&&ev())if(Vy)n=Wy;else{var r=document.querySelector("style[".concat(vv,'="').concat($y[t],'"]'));r?n=r.innerHTML:delete $y[t]}return[n,e]}(t),r=Ug(n,2),s=r[0],c=r[1];if(s)return[s,w,c,{},l,u]}var d=e(),h=Ug(Gy(d,{hashId:o,hashPriority:m,layer:_?a:void 0,path:i.join("-"),transformers:y,linters:b}),2),p=h[0],f=h[1],g=Uy(p),v=Ky(S,g);return[g,w,v,f,l,u]}),(function(t,e){var n=Ug(t,3)[2];(e||h)&&Tv&&uv(n,{mark:vv})}),(function(t){var e=Ug(t,4),n=e[0];e[1];var r=e[2],i=e[3];if(k&&n!==Wy){var o={mark:vv,prepend:!_&&"queue",attachTo:g,priority:u},a="function"==typeof s?s():s;a&&(o.csp={nonce:a});var l=[],c=[];Object.keys(i).forEach((function(t){t.startsWith("@layer")?l.push(t):c.push(t)})),l.forEach((function(t){dv(Uy(i[t]),"_layer-".concat(t),Lm(Lm({},o),{},{prepend:!0}))}));var d=dv(n,r,o);d[yv]=x.instanceId,d.setAttribute(gv,w),"production"!==process.env.NODE_ENV&&d.setAttribute("data-cache-path",S.join("|")),c.forEach((function(t){dv(Uy(i[t]),"_effect-".concat(t),o)}))}})),E=Ug(C,3),M=E[0],P=E[1],O=E[2];return function(t){var e,n;v&&!k&&f?e=r.createElement("style",gm({},(Am(n={},gv,P),Am(n,vv,O),n),{dangerouslySetInnerHTML:{__html:M}})):e=r.createElement(Jy,null);return r.createElement(r.Fragment,null,e,t)}}var eb,nb="cssVar";Am(eb={},Qy,(function(t,e,n){var r=Ug(t,6),i=r[0],o=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=(n||{}).plain;if(l)return null;var d=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=Av(i,o,a,h,u),s&&Object.keys(s).forEach((function(t){if(!e[t]){e[t]=!0;var n=Av(Uy(s[t]),o,"_effect-".concat(t),h,u);t.startsWith("@layer")?d=n+d:d+=n}})),[c,a,d]})),Am(eb,Kv,(function(t,e,n){var r=Ug(t,5),i=r[2],o=r[3],a=r[4],s=(n||{}).plain;if(!o)return null;var l=i._tokenKey;return[-999,l,Av(o,a,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]})),Am(eb,nb,(function(t,e,n){var r=Ug(t,4),i=r[1],o=r[2],a=r[3],s=(n||{}).plain;if(!i)return null;return[-999,o,Av(i,a,o,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s)]}));var rb=function(){function t(e,n){Cg(this,t),Am(this,"name",void 0),Am(this,"style",void 0),Am(this,"_keyframe",!0),this.name=e,this.style=n}return Mg(t,[{key:"getName",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),t}();function ib(t){return t.notSplit=!0,t}ib(["borderTop","borderBottom"]),ib(["borderTop"]),ib(["borderBottom"]),ib(["borderLeft","borderRight"]),ib(["borderLeft"]),ib(["borderRight"]);var ob=g({});function ab(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function sb(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function lb(t,e){if(t){if("string"==typeof t)return ab(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ab(t,e):void 0}}function cb(t){return function(t){if(Array.isArray(t))return ab(t)}(t)||sb(t)||lb(t)||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 ub(t){if(Array.isArray(t))return t}function db(){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 hb(t,e){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;n=n[e[r]]}return n}function pb(t,e,n,r){if(!e.length)return n;var i,o=function(t){return ub(t)||sb(t)||lb(t)||db()}(e),a=o[0],s=o.slice(1);return i=t||"number"!=typeof a?Array.isArray(t)?cb(t):tv({},t):[],r&&void 0===n&&1===s.length?delete i[a][s[0]]:i[a]=pb(i[a],s,n,r),i}function fb(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.length&&r&&void 0===n&&!hb(t,e.slice(0,-1))?t:pb(t,e,n,r)}function mb(t){return Array.isArray(t)?[]:{}}var gb="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function vb(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=mb(e[0]);return e.forEach((function(t){!function e(n,i){var o,a=new Set(i),s=hb(t,n),l=Array.isArray(s);if(l||"object"===vm(o=s)&&null!==o&&Object.getPrototypeOf(o)===Object.prototype){if(!a.has(s)){a.add(s);var c=hb(r,n);l?r=fb(r,n,[]):c&&"object"===vm(c)||(r=fb(r,n,mb(s))),gb(s).forEach((function(t){e([].concat(cb(n),[t]),a)}))}}else r=fb(r,n,s)}([])})),r}function yb(){}let bb=null;let xb=yb;"production"!==process.env.NODE_ENV&&(xb=(t,e,n)=>{Om(t,`[antd: ${e}] ${n}`),"test"===process.env.NODE_ENV&&(bb=null,Mm())});const _b=r.createContext({}),wb="production"!==process.env.NODE_ENV?t=>{const{strict:e}=r.useContext(_b),n=(n,r,i)=>{if(!n)if(!1===e&&"deprecated"===r){const e=bb;bb||(bb={}),bb[t]=bb[t]||[],bb[t].includes(i||"")||bb[t].push(i||""),e||console.warn("[antd] There exists deprecated usage in your code:",bb)}else"production"!==process.env.NODE_ENV&&xb(n,t,i)};return n.deprecated=(t,e,r,i)=>{n(t,"deprecated",`\`${e}\` is deprecated. Please use \`${r}\` instead.${i?` ${i}`:""}`)},n}:()=>{const t=()=>{};return t.deprecated=yb,t};var Sb=xb,kb=g(void 0),Cb=Lm(Lm({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});var Eb={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var Mb={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Cb),timePickerLocale:Object.assign({},Eb)};const Pb="${label} is not a valid ${type}";var Ob={locale:"en",Pagination:{items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},DatePicker:Mb,TimePicker:Eb,Calendar:Mb,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Pb,method:Pb,array:Pb,object:Pb,number:Pb,date:Pb,boolean:Pb,integer:Pb,float:Pb,regexp:Pb,email:Pb,url:Pb,hex:Pb},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Ob.Modal);let Tb=[];const Nb=()=>Tb.reduce(((t,e)=>Object.assign(Object.assign({},t),e)),Ob.Modal);var Ab=g(void 0);var Db=(t,e)=>{const n=r.useContext(Ab),i=r.useMemo((()=>{var r;const i=e||Ob[t],o=null!==(r=null==n?void 0:n[t])&&void 0!==r?r:{};return Object.assign(Object.assign({},"function"==typeof i?i():i),o||{})}),[t,e,n]);return[i,r.useMemo((()=>{const t=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!t?Ob.locale:t}),[n])]};const Lb="internalMark",Ib=t=>{const{locale:e={},children:n,_ANT_MARK__:i}=t;if("production"!==process.env.NODE_ENV){const t=wb("LocaleProvider");"production"!==process.env.NODE_ENV&&t(i===Lb,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}r.useEffect((()=>{const t=function(t){if(t){const e=Object.assign({},t);return Tb.push(e),Nb(),()=>{Tb=Tb.filter((t=>t!==e)),Nb()}}Object.assign({},Ob.Modal)}(null==e?void 0:e.Modal);return t}),[e]);const o=r.useMemo((()=>Object.assign(Object.assign({},e),{exist:!0})),[e]);return r.createElement(Ab.Provider,{value:o},n)};"production"!==process.env.NODE_ENV&&(Ib.displayName="LocaleProvider");var zb=Ib;const Rb={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"};var Fb=Object.assign(Object.assign({},Rb),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});const $b=Math.round;function jb(t,e){const n=t.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map((t=>parseFloat(t)));for(let t=0;t<3;t+=1)r[t]=e(r[t]||0,n[t]||"",t);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Bb=(t,e,n)=>0===n?t:t/100;function Hb(t,e){const n=e||255;return t>n?n:t<0?0:t}class Wb{constructor(t){function e(e){return e[0]in t&&e[1]in t&&e[2]in t}if(Am(this,"isValid",!0),Am(this,"r",0),Am(this,"g",0),Am(this,"b",0),Am(this,"a",1),Am(this,"_h",void 0),Am(this,"_s",void 0),Am(this,"_l",void 0),Am(this,"_v",void 0),Am(this,"_max",void 0),Am(this,"_min",void 0),Am(this,"_brightness",void 0),t)if("string"==typeof t){const n=t.trim();function r(t){return n.startsWith(t)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(t instanceof Wb)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(e("rgb"))this.r=Hb(t.r),this.g=Hb(t.g),this.b=Hb(t.b),this.a="number"==typeof t.a?Hb(t.a,1):1;else if(e("hsl"))this.fromHsl(t);else{if(!e("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t));this.fromHsv(t)}else;}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const e=this.toHsv();return e.h=t,this._c(e)}getLuminance(){function t(t){const e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}return.2126*t(this.r)+.7152*t(this.g)+.0722*t(this.b)}getHue(){if(void 0===this._h){const t=this.getMax()-this.getMin();this._h=0===t?0:$b(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(void 0===this._s){const t=this.getMax()-this.getMin();this._s=0===t?0:t/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(t=10){const e=this.getHue(),n=this.getSaturation();let r=this.getLightness()-t/100;return r<0&&(r=0),this._c({h:e,s:n,l:r,a:this.a})}lighten(t=10){const e=this.getHue(),n=this.getSaturation();let r=this.getLightness()+t/100;return r>1&&(r=1),this._c({h:e,s:n,l:r,a:this.a})}mix(t,e=50){const n=this._c(t),r=e/100,i=t=>(n[t]-this[t])*r+this[t],o={r:$b(i("r")),g:$b(i("g")),b:$b(i("b")),a:$b(100*i("a"))/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const e=this._c(t),n=this.a+e.a*(1-this.a),r=t=>$b((this[t]*this.a+e[t]*e.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const e=(this.r||0).toString(16);t+=2===e.length?e:"0"+e;const n=(this.g||0).toString(16);t+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(t+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const e=$b(255*this.a).toString(16);t+=2===e.length?e:"0"+e}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),e=$b(100*this.getSaturation()),n=$b(100*this.getLightness());return 1!==this.a?`hsla(${t},${e}%,${n}%,${this.a})`:`hsl(${t},${e}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,e,n){const r=this.clone();return r[t]=Hb(e,n),r}_c(t){return new this.constructor(t)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const e=t.replace("#","");function n(t,n){return parseInt(e[t]+e[n||t],16)}e.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=e[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=e[6]?n(6,7)/255:1)}fromHsl({h:t,s:e,l:n,a:r}){if(this._h=t%360,this._s=e,this._l=n,this.a="number"==typeof r?r:1,e<=0){const t=$b(255*n);this.r=t,this.g=t,this.b=t}let i=0,o=0,a=0;const s=t/60,l=(1-Math.abs(2*n-1))*e,c=l*(1-Math.abs(s%2-1));s>=0&&s<1?(i=l,o=c):s>=1&&s<2?(i=c,o=l):s>=2&&s<3?(o=l,a=c):s>=3&&s<4?(o=c,a=l):s>=4&&s<5?(i=c,a=l):s>=5&&s<6&&(i=l,a=c);const u=n-l/2;this.r=$b(255*(i+u)),this.g=$b(255*(o+u)),this.b=$b(255*(a+u))}fromHsv({h:t,s:e,v:n,a:r}){this._h=t%360,this._s=e,this._v=n,this.a="number"==typeof r?r:1;const i=$b(255*n);if(this.r=i,this.g=i,this.b=i,e<=0)return;const o=t/60,a=Math.floor(o),s=o-a,l=$b(n*(1-e)*255),c=$b(n*(1-e*s)*255),u=$b(n*(1-e*(1-s))*255);switch(a){case 0:this.g=u,this.b=l;break;case 1:this.r=c,this.b=l;break;case 2:this.r=l,this.b=u;break;case 3:this.r=l,this.g=c;break;case 4:this.r=u,this.g=l;break;default:this.g=l,this.b=c}}fromHsvString(t){const e=jb(t,Bb);this.fromHsv({h:e[0],s:e[1],v:e[2],a:e[3]})}fromHslString(t){const e=jb(t,Bb);this.fromHsl({h:e[0],s:e[1],l:e[2],a:e[3]})}fromRgbString(t){const e=jb(t,((t,e)=>e.includes("%")?$b(t/100*255):t));this.r=e[0],this.g=e[1],this.b=e[2],this.a=e[3]}}var Vb=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Yb(t,e,n){var r;return(r=Math.round(t.h)>=60&&Math.round(t.h)<=240?n?Math.round(t.h)-2*e:Math.round(t.h)+2*e:n?Math.round(t.h)+2*e:Math.round(t.h)-2*e)<0?r+=360:r>=360&&(r-=360),r}function qb(t,e,n){return 0===t.h&&0===t.s?t.s:((r=n?t.s-.16*e:4===e?t.s+.16:t.s+.05*e)>1&&(r=1),n&&5===e&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function Xb(t,e,n){var r;return r=n?t.v+.05*e:t.v-.15*e,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Ub(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new Wb(t),i=r.toHsv(),o=5;o>0;o-=1){var a=new Wb({h:Yb(i,o,!0),s:qb(i,o,!0),v:Xb(i,o,!0)});n.push(a)}n.push(r);for(var s=1;s<=4;s+=1){var l=new Wb({h:Yb(i,s),s:qb(i,s),v:Xb(i,s)});n.push(l)}return"dark"===e.theme?Vb.map((function(t){var r=t.index,i=t.amount;return new Wb(e.backgroundColor||"#141414").mix(n[r],i).toHexString()})):n.map((function(t){return t.toHexString()}))}var Zb={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Gb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Gb.primary=Gb[5];var Kb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Kb.primary=Kb[5];var Jb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Jb.primary=Jb[5];var Qb=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Qb.primary=Qb[5];var tx=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];tx.primary=tx[5];var ex=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ex.primary=ex[5];var nx=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];nx.primary=nx[5];var rx=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];rx.primary=rx[5];var ix=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ix.primary=ix[5];var ox=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ox.primary=ox[5];var ax=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ax.primary=ax[5];var sx=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];sx.primary=sx[5];var lx=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];lx.primary=lx[5];var cx={red:Gb,volcano:Kb,orange:Jb,gold:Qb,yellow:tx,lime:ex,green:nx,cyan:rx,blue:ix,geekblue:ox,purple:ax,magenta:sx,grey:lx};var ux=t=>{let e=t,n=t,r=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:i}};var dx=t=>{const{controlHeight:e}=t;return{controlHeightSM:.75*e,controlHeightXS:.5*e,controlHeightLG:1.25*e}};function hx(t){return(t+8)/t}var px=t=>{const e=function(t){const e=new Array(10).fill(null).map(((e,n)=>{const r=n-1,i=t*Math.pow(Math.E,r/5),o=n>1?Math.floor(i):Math.ceil(i);return 2*Math.floor(o/2)}));return e[1]=t,e.map((t=>({size:t,lineHeight:hx(t)})))}(t),n=e.map((t=>t.size)),r=e.map((t=>t.lineHeight)),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const fx=(t,e)=>new Wb(t).setA(e).toRgbString(),mx=(t,e)=>new Wb(t).darken(e).toHexString(),gx=t=>{const e=Ub(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},vx=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:fx(r,.88),colorTextSecondary:fx(r,.65),colorTextTertiary:fx(r,.45),colorTextQuaternary:fx(r,.25),colorFill:fx(r,.15),colorFillSecondary:fx(r,.06),colorFillTertiary:fx(r,.04),colorFillQuaternary:fx(r,.02),colorBgSolid:fx(r,1),colorBgSolidHover:fx(r,.75),colorBgSolidActive:fx(r,.95),colorBgLayout:mx(n,4),colorBgContainer:mx(n,0),colorBgElevated:mx(n,0),colorBgSpotlight:fx(r,.85),colorBgBlur:"transparent",colorBorder:mx(n,15),colorBorderSecondary:mx(n,6)}};const yx=kv((function(t){Zb.pink=Zb.magenta,cx.pink=cx.magenta;const e=Object.keys(Rb).map((e=>{const n=t[e]===Zb[e]?cx[e]:Ub(t[e]);return new Array(10).fill(1).reduce(((t,r,i)=>(t[`${e}-${i+1}`]=n[i],t[`${e}${i+1}`]=n[i],t)),{})})).reduce(((t,e)=>t=Object.assign(Object.assign({},t),e)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),e),function(t,e){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=e;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=t,d=n(l),h=n(i),p=n(o),f=n(a),m=n(s),g=r(c,u),v=n(t.colorLink||t.colorInfo),y=new Wb(f[1]).mix(new Wb(f[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:f[1],colorErrorBgHover:f[2],colorErrorBgFilledHover:y,colorErrorBgActive:f[3],colorErrorBorder:f[3],colorErrorBorderHover:f[4],colorErrorHover:f[5],colorError:f[6],colorErrorActive:f[7],colorErrorTextHover:f[8],colorErrorText:f[9],colorErrorTextActive:f[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:v[4],colorLink:v[6],colorLinkActive:v[7],colorBgMask:new Wb("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(t,{generateColorPalettes:gx,generateNeutralColorPalettes:vx})),px(t.fontSize)),function(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}(t)),dx(t)),function(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:i}=t;return Object.assign({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+2*e).toFixed(1)}s`,motionDurationSlow:`${(n+3*e).toFixed(1)}s`,lineWidthBold:i+1},ux(r))}(t))}));var bx=yx;const xx={token:Fb,override:{override:Fb},hashed:!0},_x=i.createContext(xx),wx="ant",Sx="anticon",kx=["outlined","borderless","filled","underlined"],Cx=r.createContext({getPrefixCls:(t,e)=>e||(t?`${wx}-${t}`:wx),iconPrefixCls:Sx}),Ex={};const Mx=`-ant-${Date.now()}-${Math.random()}`;function Px(t,e){const n=function(t,e){const n={},r=(t,e)=>{let n=t.clone();return n=(null==e?void 0:e(n))||n,n.toRgbString()},i=(t,e)=>{const i=new Wb(t),o=Ub(i.toRgbString());n[`${e}-color`]=r(i),n[`${e}-color-disabled`]=o[1],n[`${e}-color-hover`]=o[4],n[`${e}-color-active`]=o[6],n[`${e}-color-outline`]=i.clone().setA(.2).toRgbString(),n[`${e}-color-deprecated-bg`]=o[0],n[`${e}-color-deprecated-border`]=o[2]};if(e.primaryColor){i(e.primaryColor,"primary");const t=new Wb(e.primaryColor),o=Ub(t.toRgbString());o.forEach(((t,e)=>{n[`primary-${e+1}`]=t})),n["primary-color-deprecated-l-35"]=r(t,(t=>t.lighten(35))),n["primary-color-deprecated-l-20"]=r(t,(t=>t.lighten(20))),n["primary-color-deprecated-t-20"]=r(t,(t=>t.tint(20))),n["primary-color-deprecated-t-50"]=r(t,(t=>t.tint(50))),n["primary-color-deprecated-f-12"]=r(t,(t=>t.setA(.12*t.a)));const a=new Wb(o[0]);n["primary-color-active-deprecated-f-30"]=r(a,(t=>t.setA(.3*t.a))),n["primary-color-active-deprecated-d-02"]=r(a,(t=>t.darken(2)))}return e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info"),`\n :root {\n ${Object.keys(n).map((e=>`--${t}-${e}: ${n[e]};`)).join("\n")}\n }\n `.trim()}(t,e);ev()?dv(n,`${Mx}-dynamic-theme`):"production"!==process.env.NODE_ENV&&Sb(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Ox=r.createContext(!1),Tx=t=>{let{children:e,disabled:n}=t;const i=r.useContext(Ox);return r.createElement(Ox.Provider,{value:null!=n?n:i},e)};var Nx=Ox;const Ax=r.createContext(void 0),Dx=t=>{let{children:e,size:n}=t;const i=r.useContext(Ax);return r.createElement(Ax.Provider,{value:n||i},e)};var Lx=Ax;var Ix=Mg((function t(){Cg(this,t)})),zx="CALC_UNIT",Rx=new RegExp(zx,"g");function Fx(t){return"number"==typeof t?"".concat(t).concat(zx):t}var $x=function(){Og(e,Ix);var t=Dg(e);function e(n,r){var i;Cg(this,e),Am(Ag(i=t.call(this)),"result",""),Am(Ag(i),"unitlessCssVar",void 0),Am(Ag(i),"lowPriority",void 0);var o=Tm(n);return i.unitlessCssVar=r,n instanceof e?i.result="(".concat(n.result,")"):"number"===o?i.result=Fx(n):"string"===o&&(i.result=n),i}return Mg(e,[{key:"add",value:function(t){return t instanceof e?this.result="".concat(this.result," + ").concat(t.getResult()):"number"!=typeof t&&"string"!=typeof t||(this.result="".concat(this.result," + ").concat(Fx(t))),this.lowPriority=!0,this}},{key:"sub",value:function(t){return t instanceof e?this.result="".concat(this.result," - ").concat(t.getResult()):"number"!=typeof t&&"string"!=typeof t||(this.result="".concat(this.result," - ").concat(Fx(t))),this.lowPriority=!0,this}},{key:"mul",value:function(t){return this.lowPriority&&(this.result="(".concat(this.result,")")),t instanceof e?this.result="".concat(this.result," * ").concat(t.getResult(!0)):"number"!=typeof t&&"string"!=typeof t||(this.result="".concat(this.result," * ").concat(t)),this.lowPriority=!1,this}},{key:"div",value:function(t){return this.lowPriority&&(this.result="(".concat(this.result,")")),t instanceof e?this.result="".concat(this.result," / ").concat(t.getResult(!0)):"number"!=typeof t&&"string"!=typeof t||(this.result="".concat(this.result," / ").concat(t)),this.lowPriority=!1,this}},{key:"getResult",value:function(t){return this.lowPriority||t?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(t){var e=this,n=(t||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some((function(t){return e.result.includes(t)}))&&(r=!1),this.result=this.result.replace(Rx,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),e}(),jx=function(){Og(e,Ix);var t=Dg(e);function e(n){var r;return Cg(this,e),Am(Ag(r=t.call(this)),"result",0),n instanceof e?r.result=n.result:"number"==typeof n&&(r.result=n),r}return Mg(e,[{key:"add",value:function(t){return t instanceof e?this.result+=t.result:"number"==typeof t&&(this.result+=t),this}},{key:"sub",value:function(t){return t instanceof e?this.result-=t.result:"number"==typeof t&&(this.result-=t),this}},{key:"mul",value:function(t){return t instanceof e?this.result*=t.result:"number"==typeof t&&(this.result*=t),this}},{key:"div",value:function(t){return t instanceof e?this.result/=t.result:"number"==typeof t&&(this.result/=t),this}},{key:"equal",value:function(){return this.result}}]),e}(),Bx=function(t,e){return"".concat([e,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Hx(t){var e=r.useRef();e.current=t;var n=r.useCallback((function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(r))}),[]);return n}function Wx(t,e){return ub(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||lb(t,e)||db()}function Vx(t){var e=r.useRef(!1),n=Wx(r.useState(t),2),i=n[0],o=n[1];return r.useEffect((function(){return e.current=!1,function(){e.current=!0}}),[]),[i,function(t,n){n&&e.current||o(t)}]}function Yx(t){return void 0!==t}function qx(t,e){var n=e||{},r=n.defaultValue,i=n.value,o=n.onChange,a=n.postState,s=Wx(Vx((function(){return Yx(i)?i:Yx(r)?"function"==typeof r?r():r:"function"==typeof t?t():t})),2),l=s[0],c=s[1],u=void 0!==i?i:l,d=a?a(u):u,h=Hx(o),p=Wx(Vx([u]),2),f=p[0],m=p[1];return Fv((function(){var t=f[0];l!==t&&h(l,t)}),[f]),Fv((function(){Yx(i)||c(i)}),[i]),[d,Hx((function(t,e){c(t,e),m([u],e)}))]}function Xx(t,e,n,r){var i=Lm({},e[t]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach((function(e){var n,r=Ug(e,2),o=r[0],a=r[1];("production"!==process.env.NODE_ENV&&Om(!(null!=i&&i[o]),"Component Token `".concat(String(o),"` of ").concat(String(t)," is deprecated. Please use `").concat(String(a),"` instead.")),null!=i&&i[o]||null!=i&&i[a])&&(null!==(n=i[a])&&void 0!==n||(i[a]=null==i?void 0:i[o]))}));var o=Lm(Lm({},n),i);return Object.keys(o).forEach((function(t){o[t]===e[t]&&delete o[t]})),o}var Ux="production"!==process.env.NODE_ENV||"undefined"!=typeof CSSINJS_STATISTIC,Zx=!0;function Gx(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!Ux)return Object.assign.apply(Object,[{}].concat(e));Zx=!1;var r={};return e.forEach((function(t){"object"===Tm(t)&&Object.keys(t).forEach((function(e){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){return t[e]}})}))})),Zx=!0,r}var Kx={};function Jx(){}function Qx(t,e,n){var r;return"function"==typeof n?n(Gx(e,null!==(r=e[t])&&void 0!==r?r:{})):null!=n?n:{}}var t_=function(){function t(){Cg(this,t),Am(this,"map",new Map),Am(this,"objectIDMap",new WeakMap),Am(this,"nextID",0),Am(this,"lastAccessBeat",new Map),Am(this,"accessBeat",0)}return Mg(t,[{key:"set",value:function(t,e){this.clear();var n=this.getCompositeKey(t);this.map.set(n,e),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(t){var e=this.getCompositeKey(t),n=this.map.get(e);return this.lastAccessBeat.set(e,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(t){var e=this;return t.map((function(t){return t&&"object"===Tm(t)?"obj_".concat(e.getObjectID(t)):"".concat(Tm(t),"_").concat(t)})).join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var e=this.nextID;return this.objectIDMap.set(t,e),this.nextID+=1,e}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var e=Date.now();this.lastAccessBeat.forEach((function(n,r){e-n>6e5&&(t.map.delete(r),t.lastAccessBeat.delete(r))})),this.accessBeat=0}}}]),t}(),e_=new t_;var n_=function(){return{}};const r_=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function i_(t){return t>=0&&t<=255}function o_(t,e){const{r:n,g:r,b:i,a:o}=new Wb(t).toRgb();if(o<1)return t;const{r:a,g:s,b:l}=new Wb(e).toRgb();for(let t=.01;t<=1;t+=.01){const e=Math.round((n-a*(1-t))/t),o=Math.round((r-s*(1-t))/t),c=Math.round((i-l*(1-t))/t);if(i_(e)&&i_(o)&&i_(c))return new Wb({r:e,g:o,b:c,a:Math.round(100*t)/100}).toRgbString()}return new Wb({r:n,g:r,b:i,a:1}).toRgbString()}var a_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function s_(t){const{override:e}=t,n=a_(t,["override"]),r=Object.assign({},e);Object.keys(Fb).forEach((t=>{delete r[t]}));const i=Object.assign(Object.assign({},n),r),o=1200,a=1600;if(!1===i.motion){const t="0s";i.motionDurationFast=t,i.motionDurationMid=t,i.motionDurationSlow=t}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:o_(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:o_(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:o_(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:3*i.lineWidth,lineWidth:i.lineWidth,controlOutlineWidth:2*i.lineWidth,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:o_(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:o,screenXLMin:o,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Wb("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Wb("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Wb("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var l_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const c_={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},u_={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},d_={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},h_=(t,e,n)=>{const r=n.getDerivativeToken(t),{override:i}=e,o=l_(e,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=s_(a),o&&Object.entries(o).forEach((t=>{let[e,n]=t;const{theme:r}=n,i=l_(n,["theme"]);let o=i;r&&(o=h_(Object.assign(Object.assign({},a),i),{override:i},r)),a[e]=o})),a};function p_(){const{token:t,hashed:e,theme:n,override:r,cssVar:o}=i.useContext(_x),a=`5.24.0-${e||""}`,s=n||bx,[l,c,u]=Jv(s,[Fb,t],{salt:a,override:r,getComputedToken:h_,formatToken:s_,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:c_,ignore:u_,preserve:d_}});return[s,u,e?c:"",l,o]}const f_={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},m_=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:e?"inherit":t.fontFamily}},g_=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active, &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),v_=(t,e)=>({outline:`${Nv(t.lineWidthFocus)} solid ${t.colorPrimaryBorder}`,outlineOffset:null!=e?e:1,transition:"outline-offset 0s, outline 0s"}),y_=(t,e)=>({"&:focus-visible":Object.assign({},v_(t,e))}),b_=t=>({[`.${t}`]:Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{[`.${t} .${t}-icon`]:{display:"block"}})}),{genStyleHooks:x_,genComponentStyleHook:__,genSubStyleComponent:w_}=function(t){var e=t.useCSP,n=void 0===e?n_:e,r=t.useToken,o=t.usePrefix,a=t.getResetStyles,s=t.getCommonStyle,l=t.getCompUnitless;function c(e,l,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(e)?e:[e,e],h=Ug(d,1)[0],p=d.join("-"),f=t.layer||{name:"antd"};return function(t){var e,d,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,g=r(),v=g.theme,y=g.realToken,b=g.hashId,x=g.token,_=g.cssVar,w=o(),S=w.rootPrefixCls,k=w.iconPrefixCls,C=n(),E=_?"css":"js",M=(e=function(){var t=new Set;return _&&Object.keys(u.unitless||{}).forEach((function(e){t.add(Dv(e,_.prefix)),t.add(Dv(e,Bx(h,_.prefix)))})),function(t,e){var n="css"===t?$x:jx;return function(t){return new n(t,e)}}(E,t)},d=[E,h,null==_?void 0:_.prefix],i.useMemo((function(){var t=e_.get(d);if(t)return t;var n=e();return e_.set(d,n),n}),d)),P=function(t){return"js"===t?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return"max(".concat(e.map((function(t){return Nv(t)})).join(","),")")},min:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return"min(".concat(e.map((function(t){return Nv(t)})).join(","),")")}}}(E),O=P.max,T=P.min,N={theme:v,token:x,hashId:b,nonce:function(){return C.nonce},clientOnly:u.clientOnly,layer:f,order:u.order||-999};"function"==typeof a&&tb(Lm(Lm({},N),{},{clientOnly:!1,path:["Shared",S]}),(function(){return a(x,{prefix:{rootPrefixCls:S,iconPrefixCls:k},csp:C})}));var A=tb(Lm(Lm({},N),{},{path:[p,t,k]}),(function(){if(!1===u.injectStyle)return[];var e=function(t){var e,n=t,r=Jx;return Ux&&"undefined"!=typeof Proxy&&(e=new Set,n=new Proxy(t,{get:function(t,n){var r;return Zx&&(null===(r=e)||void 0===r||r.add(n)),t[n]}}),r=function(t,n){var r;Kx[t]={global:Array.from(e),component:Lm(Lm({},null===(r=Kx[t])||void 0===r?void 0:r.component),n)}}),{token:n,keys:e,flush:r}}(x),n=e.token,r=e.flush,i=Qx(h,y,c),o=".".concat(t),a=Xx(h,y,i,{deprecatedTokens:u.deprecatedTokens});_&&i&&"object"===Tm(i)&&Object.keys(i).forEach((function(t){i[t]="var(".concat(Dv(t,Bx(h,_.prefix)),")")}));var d=Gx(n,{componentCls:o,prefixCls:t,iconCls:".".concat(k),antCls:".".concat(S),calc:M,max:O,min:T},_?i:a),p=l(d,{hashId:b,prefixCls:t,rootPrefixCls:S,iconPrefixCls:k});r(h,a);var f="function"==typeof s?s(d,t,m,u.resetFont):null;return[!1===u.resetStyle?null:f,p]}));return[A,b]}}return{genStyleHooks:function(t,e,n,o){var a=Array.isArray(t)?t[0]:t;function s(t){return"".concat(String(a)).concat(t.slice(0,1).toUpperCase()).concat(t.slice(1))}var u=(null==o?void 0:o.unitless)||{},d=Lm(Lm({},"function"==typeof l?l(t):{}),{},Am({},s("zIndexPopup"),!0));Object.keys(u).forEach((function(t){d[s(t)]=u[t]}));var h=Lm(Lm({},o),{},{unitless:d,prefixToken:s}),f=c(t,e,n,h),m=function(t,e,n){var o=n.unitless,a=n.injectStyle,s=void 0===a||a,l=n.prefixToken,c=n.ignore,u=function(i){var a=i.rootCls,s=i.cssVar,u=void 0===s?{}:s,d=r().realToken;return function(t,e){var n=t.key,r=t.prefix,i=t.unitless,o=t.ignore,a=t.token,s=t.scope,l=void 0===s?"":s,c=p(bv),u=c.cache.instanceId,d=c.container,h=a._tokenKey,f=[].concat(Zg(t.path),[n,l,h]),m=qv(nb,f,(function(){var t=e(),a=Ug(Iv(t,n,{prefix:r,unitless:i,ignore:o,scope:l}),2),s=a[0],c=a[1];return[s,c,Ky(f,c),n]}),(function(t){var e=Ug(t,3)[2];Tv&&uv(e,{mark:vv})}),(function(t){var e=Ug(t,3),r=e[1],i=e[2];if(r){var o=dv(r,i,{mark:vv,prepend:"queue",attachTo:d,priority:-999});o[yv]=u,o.setAttribute(gv,n)}}))}({path:[t],prefix:u.prefix,key:u.key,unitless:o,ignore:c,token:d,scope:a},(function(){var r=Qx(t,d,e),i=Xx(t,d,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((function(t){i[l(t)]=i[t],delete i[t]})),i})),null},d=function(e){var n=r().cssVar;return[function(r){return s&&n?i.createElement(i.Fragment,null,i.createElement(u,{rootCls:e,cssVar:n,component:t}),r):r},null==n?void 0:n.key]};return d}(a,n,h);return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=Ug(f(t,e),2)[1],r=Ug(m(e),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(t,e,n){var r=c(t,e,n,Lm({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),i=function(t){var e=t.prefixCls,n=t.rootCls;return r(e,void 0===n?e:n),null};return"production"!==process.env.NODE_ENV&&(i.displayName="SubStyle_".concat(String(Array.isArray(t)?t.join("."):t))),i},genComponentStyleHook:c}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:e}=p(Cx);return{rootPrefixCls:t(),iconPrefixCls:e}},useToken:()=>{const[t,e,n,r,i]=p_();return{theme:t,realToken:e,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:t}=p(Cx);return null!=t?t:{}},getResetStyles:(t,e)=>{var n;return[{"&":g_(t)},b_(null!==(n=null==e?void 0:e.prefix.iconPrefixCls)&&void 0!==n?n:Sx)]},getCommonStyle:(t,e,n,r)=>{const i=`[class^="${e}"], [class*=" ${e}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return!1!==r&&(s={fontFamily:t.fontFamily,fontSize:t.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},getCompUnitless:()=>c_});var S_=(t,e)=>{const[n,r]=p_();return tb({theme:n,token:r,hashId:"",path:["ant-design-icons",t],nonce:()=>null==e?void 0:e.nonce,layer:{name:"antd"}},(()=>[b_(t)]))};const k_=Object.assign({},r),{useId:C_}=k_;var E_=void 0===C_?()=>"":C_;var M_=["children"],P_=r.createContext({});function O_(t){var e=t.children,n=hv(t,M_);return r.createElement(P_.Provider,{value:n},e)}var T_=function(){Og(e,r.Component);var t=Dg(e);function e(){return Cg(this,e),t.apply(this,arguments)}return Mg(e,[{key:"render",value:function(){return this.props.children}}]),e}();var N_="none",A_="appear",D_="enter",L_="leave",I_="none",z_="prepare",R_="start",F_="active",$_="end",j_="prepared";function B_(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}var H_=function(t,e){var n={animationend:B_("Animation","AnimationEnd"),transitionend:B_("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}(ev(),"undefined"!=typeof window?window:{}),W_={};if(ev()){var V_=document.createElement("div");W_=V_.style}var Y_={};function q_(t){if(Y_[t])return Y_[t];var e=H_[t];if(e)for(var n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(e,o)&&o in W_)return Y_[t]=e[o],Y_[t]}return""}var X_=q_("animationend"),U_=q_("transitionend"),Z_=!(!X_||!U_),G_=X_||"animationend",K_=U_||"transitionend";function J_(t,e){if(!t)return null;if("object"===Tm(t)){var n=e.replace(/-\w/g,(function(t){return t[1].toUpperCase()}));return t[n]}return"".concat(t,"-").concat(e)}var Q_=ev()?d:l,tw=[z_,R_,F_,$_],ew=[z_,j_],nw=!1;function rw(t){return t===F_||t===$_}var iw=function(t,e,n){var i=Ug(Vx(I_),2),o=i[0],a=i[1],s=function(){var t=r.useRef(null);function e(){Yg.cancel(t.current)}return r.useEffect((function(){return function(){e()}}),[]),[function n(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;e();var o=Yg((function(){i<=1?r({isCanceled:function(){return o!==t.current}}):n(r,i-1)}));t.current=o},e]}(),l=Ug(s,2),c=l[0],u=l[1];var d=e?ew:tw;return Q_((function(){if(o!==I_&&o!==$_){var t=d.indexOf(o),e=d[t+1],r=n(o);r===nw?a(e,!0):e&&c((function(t){function n(){t.isCanceled()||a(e,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[t,o]),r.useEffect((function(){return function(){u()}}),[]),[function(){a(z_,!0)},o]};function ow(t,e,n,i){var o,a,c,u,d=i.motionEnter,h=void 0===d||d,p=i.motionAppear,f=void 0===p||p,m=i.motionLeave,g=void 0===m||m,v=i.motionDeadline,y=i.motionLeaveImmediately,b=i.onAppearPrepare,x=i.onEnterPrepare,_=i.onLeavePrepare,w=i.onAppearStart,S=i.onEnterStart,k=i.onLeaveStart,C=i.onAppearActive,E=i.onEnterActive,M=i.onLeaveActive,P=i.onAppearEnd,O=i.onEnterEnd,T=i.onLeaveEnd,N=i.onVisibleChanged,A=Ug(Vx(),2),D=A[0],L=A[1],I=(o=N_,a=r.useReducer((function(t){return t+1}),0),c=Wx(a,2)[1],u=r.useRef(o),[Hx((function(){return u.current})),Hx((function(t){u.current="function"==typeof t?t(u.current):t,c()}))]),z=Ug(I,2),R=z[0],F=z[1],$=Ug(Vx(null),2),j=$[0],B=$[1],H=R(),W=s(!1),V=s(null);function Y(){return n()}var q=s(!1);function X(){F(N_),B(null,!0)}var U=Hx((function(t){var e=R();if(e!==N_){var n=Y();if(!t||t.deadline||t.target===n){var r,i=q.current;e===A_&&i?r=null==P?void 0:P(n,t):e===D_&&i?r=null==O?void 0:O(n,t):e===L_&&i&&(r=null==T?void 0:T(n,t)),i&&!1!==r&&X()}}})),Z=function(t){var e=s();function n(e){e&&(e.removeEventListener(K_,t),e.removeEventListener(G_,t))}return r.useEffect((function(){return function(){n(e.current)}}),[]),[function(r){e.current&&e.current!==r&&n(e.current),r&&r!==e.current&&(r.addEventListener(K_,t),r.addEventListener(G_,t),e.current=r)},n]}(U),G=Ug(Z,1)[0],K=function(t){switch(t){case A_:return Am(Am(Am({},z_,b),R_,w),F_,C);case D_:return Am(Am(Am({},z_,x),R_,S),F_,E);case L_:return Am(Am(Am({},z_,_),R_,k),F_,M);default:return{}}},J=r.useMemo((function(){return K(H)}),[H]),Q=Ug(iw(H,!t,(function(t){if(t===z_){var e=J[z_];return e?e(Y()):nw}var n;et in J&&B((null===(n=J[et])||void 0===n?void 0:n.call(J,Y(),null))||null);return et===F_&&H!==N_&&(G(Y()),v>0&&(clearTimeout(V.current),V.current=setTimeout((function(){U({deadline:!0})}),v))),et===j_&&X(),true})),2),tt=Q[0],et=Q[1],nt=rw(et);q.current=nt;var rt=s(null);Q_((function(){if(!W.current||rt.current!==e){L(e);var n,r=W.current;W.current=!0,!r&&e&&f&&(n=A_),r&&e&&h&&(n=D_),(r&&!e&&g||!r&&y&&!e&&g)&&(n=L_);var i=K(n);n&&(t||i[z_])?(F(n),tt()):F(N_),rt.current=e}}),[e]),l((function(){(H===A_&&!f||H===D_&&!h||H===L_&&!g)&&F(N_)}),[f,h,g]),l((function(){return function(){W.current=!1,clearTimeout(V.current)}}),[]);var it=r.useRef(!1);l((function(){D&&(it.current=!0),void 0!==D&&H===N_&&((it.current||D)&&(null==N||N(D)),it.current=!0)}),[D,H]);var ot=j;return J[z_]&&et===R_&&(ot=Lm({transition:"none"},ot)),[H,et,ot,null!=D?D:e]}var aw=function(t){var e=t;"object"===Tm(t)&&(e=t.transitionSupport);var n=r.forwardRef((function(t,n){var i=t.visible,o=void 0===i||i,a=t.removeOnLeave,l=void 0===a||a,c=t.forceRender,u=t.children,d=t.motionName,h=t.leavedClassName,p=t.eventProps,f=function(t,n){return!(!t.motionName||!e||!1===n)}(t,r.useContext(P_).motion),m=s(),g=s();var v=Ug(ow(f,o,(function(){try{return m.current instanceof HTMLElement?m.current:zm(g.current)}catch(t){return null}}),t),4),y=v[0],b=v[1],x=v[2],_=v[3],w=r.useRef(_);_&&(w.current=!0);var S,k=r.useCallback((function(t){m.current=t,qm(n,t)}),[n]),C=Lm(Lm({},p),{},{visible:o});if(u)if(y===N_)S=_?u(Lm({},C),k):!l&&w.current&&h?u(Lm(Lm({},C),{},{className:h}),k):c||!l&&!h?u(Lm(Lm({},C),{},{style:{display:"none"}}),k):null;else{var E;b===z_?E="prepare":rw(b)?E="active":b===R_&&(E="start");var M=J_(d,"".concat(y,"-").concat(E));S=u(Lm(Lm({},C),{},{className:mm(J_(d,y),Am(Am({},M,M&&E),d,"string"==typeof d)),style:x}),k)}else S=null;r.isValidElement(S)&&Zm(S)&&(Km(S)||(S=r.cloneElement(S,{ref:k})));return r.createElement(T_,{ref:g},S)}));return n.displayName="CSSMotion",n}(Z_),sw="add",lw="keep",cw="remove",uw="removed";function dw(t){var e;return Lm(Lm({},e=t&&"object"===Tm(t)&&"key"in t?t:{key:t}),{},{key:String(e.key)})}function hw(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(dw)}var pw=["component","children","onVisibleChanged","onAllRemoved"],fw=["status"],mw=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function gw(t){const{children:e}=t,[,n]=p_(),{motion:i}=n,o=r.useRef(!1);return o.current=o.current||!1===i,o.current?r.createElement(O_,{motion:i},e):e}!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:aw,n=function(){Og(n,r.Component);var t=Dg(n);function n(){var e;Cg(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Am(Ag(e=t.call.apply(t,[this].concat(i))),"state",{keyEntities:[]}),Am(Ag(e),"removeKey",(function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:Lm(Lm({},e),{},{status:uw})}))}}),(function(){0===e.state.keyEntities.filter((function(t){return t.status!==uw})).length&&e.props.onAllRemoved&&e.props.onAllRemoved()}))})),e}return Mg(n,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,i=this.props,o=i.component,a=i.children,s=i.onVisibleChanged;i.onAllRemoved;var l=hv(i,pw),c=o||r.Fragment,u={};return mw.forEach((function(t){u[t]=l[t],delete l[t]})),delete l.keys,r.createElement(c,l,n.map((function(n,i){var o=n.status,l=hv(n,fw),c=o===sw||o===lw;return r.createElement(e,gm({},u,{key:l.key,visible:c,eventProps:l,onVisibleChanged:function(e){null==s||s(e,{key:l.key}),e||t.removeKey(l.key)}}),(function(t,e){return a(Lm(Lm({},t),{},{index:i}),e)}))})))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n=t.keys,r=e.keyEntities,i=hw(n),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=e.length,o=hw(t),a=hw(e);o.forEach((function(t){for(var e=!1,o=r;o<i;o+=1){var s=a[o];if(s.key===t.key){r<o&&(n=n.concat(a.slice(r,o).map((function(t){return Lm(Lm({},t),{},{status:sw})}))),r=o),n.push(Lm(Lm({},s),{},{status:lw})),r+=1,e=!0;break}}e||n.push(Lm(Lm({},t),{},{status:cw}))})),r<i&&(n=n.concat(a.slice(r).map((function(t){return Lm(Lm({},t),{},{status:sw})}))));var s={};return n.forEach((function(t){var e=t.key;s[e]=(s[e]||0)+1})),Object.keys(s).filter((function(t){return s[t]>1})).forEach((function(t){(n=n.filter((function(e){var n=e.key,r=e.status;return n!==t||r!==cw}))).forEach((function(e){e.key===t&&(e.status=lw)}))})),n}(r,i);return{keyEntities:o.filter((function(t){var e=r.find((function(e){var n=e.key;return t.key===n}));return!e||e.status!==uw||t.status!==cw}))}}}]),n}();Am(n,"defaultProps",{component:"div"})}(Z_);const vw=r.memo((t=>{let{dropdownMatchSelectWidth:e}=t;return wb("ConfigProvider").deprecated(void 0===e,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null}));"production"!==process.env.NODE_ENV&&(vw.displayName="PropWarning");var yw="production"!==process.env.NODE_ENV?vw:()=>null,bw=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};let xw=!1;process.env.NODE_ENV;const _w=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let ww;const Sw=t=>{const{children:e,csp:n,autoInsertSpaceInButton:i,alert:o,anchor:a,form:s,locale:l,componentSize:c,direction:u,space:d,splitter:h,virtual:p,dropdownMatchSelectWidth:f,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:b,theme:x,componentDisabled:_,segmented:w,statistic:S,spin:k,calendar:C,carousel:E,cascader:M,collapse:P,typography:O,checkbox:T,descriptions:N,divider:A,drawer:D,skeleton:L,steps:I,image:z,layout:R,list:F,mentions:$,modal:j,progress:B,result:H,slider:W,breadcrumb:V,menu:Y,pagination:q,input:X,textArea:U,empty:Z,badge:G,radio:K,rate:J,switch:Q,transfer:tt,avatar:et,message:nt,tag:rt,table:it,card:ot,tabs:at,timeline:st,timePicker:lt,upload:ct,notification:ut,tree:dt,colorPicker:ht,datePicker:pt,rangePicker:ft,flex:mt,wave:gt,dropdown:vt,warning:yt,tour:bt,tooltip:xt,popover:_t,popconfirm:wt,floatButtonGroup:St,variant:kt,inputNumber:Ct,treeSelect:Et}=t,Mt=r.useCallback(((e,n)=>{const{prefixCls:r}=t;if(n)return n;const i=r||y.getPrefixCls("");return e?`${i}-${e}`:i}),[y.getPrefixCls,t.prefixCls]),Pt=b||y.iconPrefixCls||Sx,Ot=n||y.csp;S_(Pt,Ot);const Tt=function(t,e,n){var r,i;const o=wb("ConfigProvider"),a=t||{},s=!1!==a.inherit&&e?e:Object.assign(Object.assign({},xx),{hashed:null!==(r=null==e?void 0:e.hashed)&&void 0!==r?r:xx.hashed,cssVar:null==e?void 0:e.cssVar}),l=E_();if("production"!==process.env.NODE_ENV){const t=a.cssVar||s.cssVar,e=!!("object"==typeof a.cssVar&&(null===(i=a.cssVar)||void 0===i?void 0:i.key)||l);"production"!==process.env.NODE_ENV&&o(!t||e,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Vm((()=>{var r,i;if(!t)return e;const o=Object.assign({},s.components);Object.keys(t.components||{}).forEach((e=>{o[e]=Object.assign(Object.assign({},o[e]),t.components[e])}));const c=`css-var-${l.replace(/:/g,"")}`,u=(null!==(r=a.cssVar)&&void 0!==r?r:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof s.cssVar?s.cssVar:{}),"object"==typeof a.cssVar?a.cssVar:{}),{key:"object"==typeof a.cssVar&&(null===(i=a.cssVar)||void 0===i?void 0:i.key)||c});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:o,cssVar:u})}),[a,s],((t,e)=>t.some(((t,n)=>!pv(t,e[n],!0)))))}(x,y.theme,{prefixCls:Mt("")});"production"!==process.env.NODE_ENV&&(xw=xw||!!Tt);const Nt={csp:Ot,autoInsertSpaceInButton:i,alert:o,anchor:a,locale:l||v,direction:u,space:d,splitter:h,virtual:p,popupMatchSelectWidth:null!=m?m:f,popupOverflow:g,getPrefixCls:Mt,iconPrefixCls:Pt,theme:Tt,segmented:w,statistic:S,spin:k,calendar:C,carousel:E,cascader:M,collapse:P,typography:O,checkbox:T,descriptions:N,divider:A,drawer:D,skeleton:L,steps:I,image:z,input:X,textArea:U,layout:R,list:F,mentions:$,modal:j,progress:B,result:H,slider:W,breadcrumb:V,menu:Y,pagination:q,empty:Z,badge:G,radio:K,rate:J,switch:Q,transfer:tt,avatar:et,message:nt,tag:rt,table:it,card:ot,tabs:at,timeline:st,timePicker:lt,upload:ct,notification:ut,tree:dt,colorPicker:ht,datePicker:pt,rangePicker:ft,flex:mt,wave:gt,dropdown:vt,warning:yt,tour:bt,tooltip:xt,popover:_t,popconfirm:wt,floatButtonGroup:St,variant:kt,inputNumber:Ct,treeSelect:Et};if("production"!==process.env.NODE_ENV){wb("ConfigProvider")(!("autoInsertSpaceInButton"in t),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.")}const At=Object.assign({},y);Object.keys(Nt).forEach((t=>{void 0!==Nt[t]&&(At[t]=Nt[t])})),_w.forEach((e=>{const n=t[e];n&&(At[e]=n)})),void 0!==i&&(At.button=Object.assign({autoInsertSpace:i},At.button));const Dt=Vm((()=>At),At,((t,e)=>{const n=Object.keys(t),r=Object.keys(e);return n.length!==r.length||n.some((n=>t[n]!==e[n]))})),{layer:Lt}=r.useContext(bv),It=r.useMemo((()=>({prefixCls:Pt,csp:Ot,layer:Lt?"antd":void 0})),[Pt,Ot,Lt]);let zt=r.createElement(r.Fragment,null,r.createElement(yw,{dropdownMatchSelectWidth:f}),e);const Rt=r.useMemo((()=>{var t,e,n,r;return vb((null===(t=Ob.Form)||void 0===t?void 0:t.defaultValidateMessages)||{},(null===(n=null===(e=Dt.locale)||void 0===e?void 0:e.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=Dt.form)||void 0===r?void 0:r.validateMessages)||{},(null==s?void 0:s.validateMessages)||{})}),[Dt,null==s?void 0:s.validateMessages]);Object.keys(Rt).length>0&&(zt=r.createElement(kb.Provider,{value:Rt},zt)),l&&(zt=r.createElement(zb,{locale:l,_ANT_MARK__:Lb},zt)),(Pt||Ot)&&(zt=r.createElement(ob.Provider,{value:It},zt)),c&&(zt=r.createElement(Dx,{size:c},zt)),zt=r.createElement(gw,null,zt);const Ft=r.useMemo((()=>{const t=Tt||{},{algorithm:e,token:n,components:r,cssVar:i}=t,o=bw(t,["algorithm","token","components","cssVar"]),a=e&&(!Array.isArray(e)||e.length>0)?kv(e):bx,s={};Object.entries(r||{}).forEach((t=>{let[e,n]=t;const r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=kv(r.algorithm)),delete r.algorithm),s[e]=r}));const l=Object.assign(Object.assign({},Fb),n);return Object.assign(Object.assign({},o),{theme:a,token:l,components:s,override:Object.assign({override:l},s),cssVar:i})}),[Tt]);return x&&(zt=r.createElement(_x.Provider,{value:Ft},zt)),Dt.warning&&(zt=r.createElement(_b.Provider,{value:Dt.warning},zt)),void 0!==_&&(zt=r.createElement(Tx,{disabled:_},zt)),r.createElement(Cx.Provider,{value:Dt},zt)},kw=t=>{const e=r.useContext(Cx),n=r.useContext(Ab);return r.createElement(Sw,Object.assign({parentContext:e,legacyLocale:n},t))};kw.ConfigContext=Cx,kw.SizeContext=Lx,kw.config=t=>{const{prefixCls:e,iconPrefixCls:n,theme:r,holderRender:i}=t;void 0!==e&&(ww=e),r&&function(t){return Object.keys(t).some((t=>t.endsWith("Color")))}(r)&&("production"!==process.env.NODE_ENV&&Sb(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Px(ww||wx,r))},kw.useConfig=function(){return{componentDisabled:p(Nx),componentSize:p(Lx)}},Object.defineProperty(kw,"SizeContext",{get:()=>("production"!==process.env.NODE_ENV&&Sb(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Lx)}),"production"!==process.env.NODE_ENV&&(kw.displayName="ConfigProvider");var Cw=kw;function Ew(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}function Mw(t){return function(t){return Ew(t)instanceof ShadowRoot}(t)?Ew(t):null}function Pw(t){return"object"===Tm(t)&&"string"==typeof t.name&&"string"==typeof t.theme&&("object"===Tm(t.icon)||"function"==typeof t.icon)}function Ow(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(t).reduce((function(e,n){var r,i=t[n];if("class"===n)e.className=i,delete e.class;else delete e[n],e[(r=n,r.replace(/-(.)/g,(function(t,e){return e.toUpperCase()})))]=i;return e}),{})}function Tw(t,e,n){return n?i.createElement(t.tag,Lm(Lm({key:e},Ow(t.attrs)),n),(t.children||[]).map((function(n,r){return Tw(n,"".concat(e,"-").concat(t.tag,"-").concat(r))}))):i.createElement(t.tag,Lm({key:e},Ow(t.attrs)),(t.children||[]).map((function(n,r){return Tw(n,"".concat(e,"-").concat(t.tag,"-").concat(r))})))}function Nw(t){return Ub(t)[0]}function Aw(t){return t?Array.isArray(t)?t:[t]:[]}var Dw=["icon","className","onClick","style","primaryColor","secondaryColor"],Lw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Iw=function(t){var e,n,i,o,a,s,c=t.icon,u=t.className,d=t.onClick,h=t.style,f=t.primaryColor,m=t.secondaryColor,g=hv(t,Dw),v=r.useRef(),y=Lw;if(f&&(y={primaryColor:f,secondaryColor:m||Nw(f)}),e=v,n=p(ob),i=n.csp,o=n.prefixCls,a=n.layer,s="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(s=s.replace(/anticon/g,o)),a&&(s="@layer ".concat(a," {\n").concat(s,"\n}")),l((function(){var t=Mw(e.current);dv(s,"@ant-design-icons",{prepend:!a,csp:i,attachTo:t})}),[]),function(t,e){Om(t,"[@ant-design/icons] ".concat(e))}(Pw(c),"icon should be icon definiton, but got ".concat(c)),!Pw(c))return null;var b=c;return b&&"function"==typeof b.icon&&(b=Lm(Lm({},b),{},{icon:b.icon(y.primaryColor,y.secondaryColor)})),Tw(b.icon,"svg-".concat(b.name),Lm(Lm({className:u,onClick:d,style:h,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},g),{},{ref:v}))};Iw.displayName="IconReact",Iw.getTwoToneColors=function(){return Lm({},Lw)},Iw.setTwoToneColors=function(t){var e=t.primaryColor,n=t.secondaryColor;Lw.primaryColor=e,Lw.secondaryColor=n||Nw(e),Lw.calculated=!!n};var zw=Iw;function Rw(t){var e=Ug(Aw(t),2),n=e[0],r=e[1];return zw.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Fw=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Rw(ix.primary);var $w=r.forwardRef((function(t,e){var n=t.className,i=t.icon,o=t.spin,a=t.rotate,s=t.tabIndex,l=t.onClick,c=t.twoToneColor,u=hv(t,Fw),d=r.useContext(ob),h=d.prefixCls,p=void 0===h?"anticon":h,f=d.rootClassName,m=mm(f,p,Am(Am({},"".concat(p,"-").concat(i.name),!!i.name),"".concat(p,"-spin"),!!o||"loading"===i.name),n),g=s;void 0===g&&l&&(g=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,y=Ug(Aw(c),2),b=y[0],x=y[1];return r.createElement("span",gm({role:"img","aria-label":i.name},u,{ref:e,tabIndex:g,onClick:l,className:m}),r.createElement(zw,{icon:i,primaryColor:b,secondaryColor:x,style:v}))}));$w.displayName="AntdIcon",$w.getTwoToneColor=function(){var t=zw.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor},$w.setTwoToneColor=Rw;var jw=$w,Bw={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},Hw=function(t,e){return r.createElement(jw,gm({},t,{ref:e,icon:Bw}))},Ww=r.forwardRef(Hw);"production"!==process.env.NODE_ENV&&(Ww.displayName="CloseCircleFilled");var Vw=Ww,Yw={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},qw=function(t,e){return r.createElement(jw,gm({},t,{ref:e,icon:Yw}))},Xw=r.forwardRef(qw);"production"!==process.env.NODE_ENV&&(Xw.displayName="CloseOutlined");var Uw=Xw,Zw="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function Gw(t,e){return 0===t.indexOf(e)}function Kw(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:tv({},n);var r={};return Object.keys(t).forEach((function(n){(e.aria&&("role"===n||Gw(n,"aria-"))||e.data&&Gw(n,"data-")||e.attr&&Zw.includes(n))&&(r[n]=t[n])})),r}function Jw(t,e){return((t,e,n)=>i.isValidElement(t)?i.cloneElement(t,"function"==typeof n?n(t.props||{}):n):e)(t,t,e)}function Qw(t){return Qw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qw(t)}function tS(t){var e=function(t,e){if("object"!=Qw(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Qw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qw(e)?e:e+""}function eS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,tS(r.key),r)}}var nS=t=>{const[,,,,e]=p_();return e?`${t}-css-var`:""},rS={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},iS=function(t,e){return r.createElement(jw,gm({},t,{ref:e,icon:rS}))},oS=r.forwardRef(iS);"production"!==process.env.NODE_ENV&&(oS.displayName="LoadingOutlined");var aS=oS;const sS=i.createContext(void 0);"production"!==process.env.NODE_ENV&&(sS.displayName="zIndexContext");var lS=sS;const cS=100,uS={Modal:cS,Drawer:cS,Popover:cS,Popconfirm:cS,Tooltip:cS,Tour:cS,FloatButton:cS},dS={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const hS=(t,e)=>{const[,n]=p_(),r=i.useContext(lS),o=function(t){return t in uS}(t);let a;if(void 0!==e)a=[e,e];else{let i=null!=r?r:0;i+=o?(r?0:n.zIndexPopupBase)+uS[t]:dS[t],a=[void 0===r?e:i,i]}if("production"!==process.env.NODE_ENV){const r=wb(t),i=n.zIndexPopupBase+1100,o=a[0]||0;"production"!==process.env.NODE_ENV&&r(void 0!==e||o<=i,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a};function pS(){pS=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var x={};c(x,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(N([])));w&&w!==n&&r.call(w,a)&&(x=w);var S=b.prototype=v.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var l=d(t[i],t,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==vm(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=h;return function(o,a){if(i===f)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=M(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=f;var c=d(e,n,r);if("normal"===c.type){if(i=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=m,r.method="throw",r.arg=c.arg)}}}function M(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(vm(e)+" is not iterable")}return y.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function fS(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function mS(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){fS(o,r,i,a,s,"next",t)}function s(t){fS(o,r,i,a,s,"throw",t)}a(void 0)}))}}var gS,vS=tv({},C),yS=vS.version,bS=vS.render,xS=vS.unmountComponentAtNode;try{Number((yS||"").split(".")[0])>=18&&(gS=vS.createRoot)}catch(t){}function _S(t){var e=vS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&"object"===vm(e)&&(e.usingClientEntryPoint=t)}var wS="__rc_react_root__";function SS(t,e){gS?function(t,e){_S(!0);var n=e[wS]||gS(e);_S(!1),n.render(t),e[wS]=n}(t,e):function(t,e){null==bS||bS(t,e)}(t,e)}function kS(t){return CS.apply(this,arguments)}function CS(){return(CS=mS(pS().mark((function t(e){return pS().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve().then((function(){var t;null===(t=e[wS])||void 0===t||t.unmount(),delete e[wS]})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ES(t){xS(t)}function MS(){return(MS=mS(pS().mark((function t(e){return pS().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===gS){t.next=2;break}return t.abrupt("return",kS(e));case 2:ES(e);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}let PS=(t,e)=>{if("production"!==process.env.NODE_ENV){const t=parseInt(r.version.split(".")[0],10),e=Object.keys(C);"production"!==process.env.NODE_ENV&&Sb(t<19||e.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return SS(t,e),()=>function(t){return MS.apply(this,arguments)}(e)};function OS(t,e){var n=Object.assign({},t);return Array.isArray(e)&&e.forEach((function(t){delete n[t]})),n}var TS=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var e=t.getBBox(),n=e.width,r=e.height;if(n||r)return!0}if(t.getBoundingClientRect){var i=t.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1};const NS=t=>{const{componentCls:e,colorPrimary:n}=t;return{[e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${t.motionEaseOutCirc}`,`opacity 2s ${t.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${t.motionDurationSlow} ${t.motionEaseInOut}`,`opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`].join(",")}}}}};var AS=__("Wave",(t=>[NS(t)]));const DS=`${wx}-wave-target`;function LS(t){return t&&"#fff"!==t&&"#ffffff"!==t&&"rgb(255, 255, 255)"!==t&&"rgba(255, 255, 255, 1)"!==t&&!/rgba\((?:\d*, ){3}0\)/.test(t)&&"transparent"!==t}function IS(t){return Number.isNaN(t)?0:t}const zS=t=>{const{className:e,target:n,component:i,registerUnmount:o}=t,a=r.useRef(null),s=r.useRef(null);r.useEffect((()=>{s.current=o()}),[]);const[l,c]=r.useState(null),[u,d]=r.useState([]),[h,p]=r.useState(0),[f,m]=r.useState(0),[g,v]=r.useState(0),[y,b]=r.useState(0),[x,_]=r.useState(!1),w={left:h,top:f,width:g,height:y,borderRadius:u.map((t=>`${t}px`)).join(" ")};function S(){const t=getComputedStyle(n);c(function(t){const{borderTopColor:e,borderColor:n,backgroundColor:r}=getComputedStyle(t);return LS(e)?e:LS(n)?n:LS(r)?r:null}(n));const e="static"===t.position,{borderLeftWidth:r,borderTopWidth:i}=t;p(e?n.offsetLeft:IS(-parseFloat(r))),m(e?n.offsetTop:IS(-parseFloat(i))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:o,borderTopRightRadius:a,borderBottomLeftRadius:s,borderBottomRightRadius:l}=t;d([o,a,l,s].map((t=>IS(parseFloat(t)))))}if(l&&(w["--wave-color"]=l),r.useEffect((()=>{if(n){const t=Yg((()=>{S(),_(!0)}));let e;return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(S),e.observe(n)),()=>{Yg.cancel(t),null==e||e.disconnect()}}}),[]),!x)return null;const k=("Checkbox"===i||"Radio"===i)&&(null==n?void 0:n.classList.contains(DS));return r.createElement(aw,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(t,e)=>{var n,r;if(e.deadline||"opacity"===e.propertyName){const t=null===(n=a.current)||void 0===n?void 0:n.parentElement;null===(r=s.current)||void 0===r||r.call(s).then((()=>{null==t||t.remove()}))}return!1}},((t,n)=>{let{className:i}=t;return r.createElement("div",{ref:Xm(a,n),className:mm(e,i,{"wave-quick":k}),style:w})}))};var RS=(t,e)=>{var n;const{component:i}=e;if("Checkbox"===i&&!(null===(n=t.querySelector("input"))||void 0===n?void 0:n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==t||t.insertBefore(o,null==t?void 0:t.firstChild);let a=null;a=PS(r.createElement(zS,Object.assign({},e,{target:t,registerUnmount:function(){return a}})),o)};var FS=(t,e,n)=>{const{wave:i}=r.useContext(Cx),[,o,a]=p_(),s=Hx((r=>{const s=t.current;if((null==i?void 0:i.disabled)||!s)return;const l=s.querySelector(`.${DS}`)||s,{showEffect:c}=i||{};(c||RS)(l,{className:e,token:o,component:n,event:r,hashId:a})})),l=r.useRef(null);return t=>{Yg.cancel(l.current),l.current=Yg((()=>{s(t)}))}};const $S=t=>{const{children:e,disabled:n,component:r}=t,{getPrefixCls:o}=p(Cx),a=s(null),l=o("wave"),[,c]=AS(l),u=FS(a,mm(l,c),r);if(i.useEffect((()=>{const t=a.current;if(!t||1!==t.nodeType||n)return;const e=e=>{!TS(e.target)||!t.getAttribute||t.getAttribute("disabled")||t.disabled||t.className.includes("disabled")||t.className.includes("-leave")||u(e)};return t.addEventListener("click",e,!0),()=>{t.removeEventListener("click",e,!0)}}),[n]),!i.isValidElement(e))return null!=e?e:null;return Jw(e,{ref:Zm(e)?Xm(Km(e),a):a})};"production"!==process.env.NODE_ENV&&($S.displayName="Wave");var jS=$S;var BS=t=>{const e=i.useContext(Lx);return i.useMemo((()=>t?"string"==typeof t?null!=t?t:e:t instanceof Function?t(e):e:e),[t,e])};const HS=r.createContext(null),WS=(t,e)=>{const n=r.useContext(HS),i=r.useMemo((()=>{if(!n)return"";const{compactDirection:r,isFirstItem:i,isLastItem:o}=n,a="vertical"===r?"-vertical-":"-";return mm(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:i,[`${t}-compact${a}last-item`]:o,[`${t}-compact${a}item-rtl`]:"rtl"===e})}),[t,e,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:i}},VS=t=>{const{children:e}=t;return r.createElement(HS.Provider,{value:null},e)};var YS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const qS=r.createContext(void 0);var XS=t=>{const{getPrefixCls:e,direction:n}=r.useContext(Cx),{prefixCls:i,size:o,className:a}=t,s=YS(t,["prefixCls","size","className"]),l=e("btn-group",i),[,,c]=p_(),u=r.useMemo((()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}}),[o]);if("production"!==process.env.NODE_ENV){const t=wb("Button.Group");t.deprecated(!1,"Button.Group","Space.Compact"),"production"!==process.env.NODE_ENV&&t(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const d=mm(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:"rtl"===n},a,c);return r.createElement(qS.Provider,{value:o},r.createElement("div",Object.assign({},s,{className:d})))};const US=/^[\u4E00-\u9FA5]{2}$/,ZS=US.test.bind(US);function GS(t){return"string"==typeof t}function KS(t){return"text"===t||"link"===t}function JS(t,e){if(null==t)return;const n=e?" ":"";return"string"!=typeof t&&"number"!=typeof t&&GS(t.type)&&ZS(t.props.children)?Jw(t,{children:t.props.children.split("").join(n)}):GS(t)?ZS(t)?i.createElement("span",null,t.split("").join(n)):i.createElement("span",null,t):function(t){return t&&i.isValidElement(t)&&t.type===i.Fragment}(t)?i.createElement("span",null,t):t}["default","primary","danger"].concat(function(t){return function(t){if(Array.isArray(t))return $g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return $g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$g(t,e):void 0}}(t)||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.")}()}(r_));const QS=h(((t,e)=>{const{className:n,style:r,children:o,prefixCls:a}=t,s=mm(`${a}-icon`,n);return i.createElement("span",{ref:e,className:s,style:r},o)}));var tk=QS;const ek=h(((t,e)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=t,s=mm(`${n}-loading-icon`,r);return i.createElement(tk,{prefixCls:n,className:s,style:o,ref:e},i.createElement(aS,{className:a}))})),nk=()=>({width:0,opacity:0,transform:"scale(0)"}),rk=t=>({width:t.scrollWidth,opacity:1,transform:"scale(1)"});var ik=t=>{const{prefixCls:e,loading:n,existIcon:r,className:o,style:a,mount:s}=t,l=!!n;return r?i.createElement(ek,{prefixCls:e,className:o,style:a}):i.createElement(aw,{visible:l,motionName:`${e}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:nk,onAppearActive:rk,onEnterStart:nk,onEnterActive:rk,onLeaveStart:rk,onLeaveActive:nk},((t,n)=>{let{className:r,style:s}=t;const l=Object.assign(Object.assign({},a),s);return i.createElement(ek,{prefixCls:e,className:mm(o,r),style:l,ref:n})}))};const ok=(t,e)=>({[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}});var ak=t=>{const{componentCls:e,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=t;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:t.calc(r).mul(-1).equal(),[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:n}},ok(`${e}-primary`,i),ok(`${e}-danger`,o)]}},sk=["b"],lk=["v"],ck=function(t){return Math.round(Number(t||0))},uk=function(){Og(e,Wb);var t=Dg(e);function e(n){return Cg(this,e),t.call(this,function(t){if(t instanceof Wb)return t;if(t&&"object"===Tm(t)&&"h"in t&&"b"in t){var e=t,n=e.b;return Lm(Lm({},hv(e,sk)),{},{v:n})}return"string"==typeof t&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t}(n))}return Mg(e,[{key:"toHsbString",value:function(){var t=this.toHsb(),e=ck(100*t.s),n=ck(100*t.b),r=ck(t.h),i=t.a,o="hsb(".concat(r,", ").concat(e,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(e,"%, ").concat(n,"%, ").concat(i.toFixed(0===i?0:2),")");return 1===i?o:a}},{key:"toHsb",value:function(){var t=this.toHsv(),e=t.v;return Lm(Lm({},hv(t,lk)),{},{b:e,a:this.a})}}]),e}(),dk=function(t){return t instanceof uk?t:new uk(t)},hk=dk("#1677ff"),pk=function(t){var e=t.offset,n=t.targetRef,r=t.containerRef,i=t.color,o=t.type,a=r.current.getBoundingClientRect(),s=a.width,l=a.height,c=n.current.getBoundingClientRect(),u=c.width/2,d=c.height/2,h=(e.x+u)/s,p=1-(e.y+d)/l,f=i.toHsb(),m=h,g=(e.x+u)/s*360;if(o)switch(o){case"hue":return dk(Lm(Lm({},f),{},{h:g<=0?0:g}));case"alpha":return dk(Lm(Lm({},f),{},{a:m<=0?0:m}))}return dk({h:f.h,s:h<=0?0:h,b:p>=1?1:p,a:f.a})},fk=function(t,e){var n=t.toHsb();switch(e){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*t.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}},mk=function(t){var e=t.color,n=t.prefixCls,r=t.className,o=t.style,a=t.onClick,s="".concat(n,"-color-block");return i.createElement("div",{className:mm(s,r),style:o,onClick:a},i.createElement("div",{className:"".concat(s,"-inner"),style:{background:e}}))};function gk(t){var e=t.targetRef,n=t.containerRef,r=t.direction,i=t.onDragChange,o=t.onDragChangeComplete,a=t.calculate,c=t.color,d=t.disabledDrag,h=Ug(u({x:0,y:0}),2),p=h[0],f=h[1],m=s(null),g=s(null);l((function(){f(a())}),[c]),l((function(){return function(){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null}}),[]);var v=function(t){var o=function(t){var e="touches"in t?t.touches[0]:t,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:e.pageX-n,pageY:e.pageY-r}}(t),a=o.pageX,s=o.pageY,l=n.current.getBoundingClientRect(),c=l.x,u=l.y,d=l.width,h=l.height,f=e.current.getBoundingClientRect(),m=f.width,g=f.height,v=m/2,y=g/2,b=Math.max(0,Math.min(a-c,d))-v,x=Math.max(0,Math.min(s-u,h))-y,_={x:b,y:"x"===r?p.y:x};if(0===m&&0===g||m!==g)return!1;null==i||i(_)},y=function(t){t.preventDefault(),v(t)},b=function(t){t.preventDefault(),document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null,null==o||o()};return[p,function(t){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),d||(v(t),document.addEventListener("mousemove",y),document.addEventListener("mouseup",b),document.addEventListener("touchmove",y),document.addEventListener("touchend",b),m.current=y,g.current=b)}]}var vk=function(t){var e=t.size,n=void 0===e?"default":e,r=t.color,o=t.prefixCls;return i.createElement("div",{className:mm("".concat(o,"-handler"),Am({},"".concat(o,"-handler-sm"),"small"===n)),style:{backgroundColor:r}})},yk=function(t){var e=t.children,n=t.style,r=t.prefixCls;return i.createElement("div",{className:"".concat(r,"-palette"),style:Lm({position:"relative"},n)},e)},bk=h((function(t,e){var n=t.children,r=t.x,o=t.y;return i.createElement("div",{ref:e,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)})),xk=function(t){var e=t.color,n=t.onChange,r=t.prefixCls,o=t.onChangeComplete,a=t.disabled,l=s(),c=s(),u=s(e),d=Hx((function(t){var r=pk({offset:t,targetRef:c,containerRef:l,color:e});u.current=r,n(r)})),h=Ug(gk({color:e,containerRef:l,targetRef:c,calculate:function(){return fk(e)},onDragChange:d,onDragChangeComplete:function(){return null==o?void 0:o(u.current)},disabledDrag:a}),2),p=h[0],f=h[1];return i.createElement("div",{ref:l,className:"".concat(r,"-select"),onMouseDown:f,onTouchStart:f},i.createElement(yk,{prefixCls:r},i.createElement(bk,{x:p.x,y:p.y,ref:c},i.createElement(vk,{color:e.toRgbString(),prefixCls:r})),i.createElement("div",{className:"".concat(r,"-saturation"),style:{backgroundColor:"hsl(".concat(e.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},_k=function(t){var e=t.colors,n=t.children,r=t.direction,a=void 0===r?"to right":r,s=t.type,l=t.prefixCls,c=o((function(){return e.map((function(t,n){var r=dk(t);return"alpha"===s&&n===e.length-1&&(r=new uk(r.setA(1))),r.toRgbString()})).join(",")}),[e,s]);return i.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(c,")")}},n)},wk=function(t){var e=t.prefixCls,n=t.colors,r=t.disabled,o=t.onChange,a=t.onChangeComplete,l=t.color,c=t.type,u=s(),d=s(),h=s(l),p=function(t){return"hue"===c?t.getHue():100*t.a},f=Hx((function(t){var e=pk({offset:t,targetRef:d,containerRef:u,color:l,type:c});h.current=e,o(p(e))})),m=Ug(gk({color:l,targetRef:d,containerRef:u,calculate:function(){return fk(l,c)},onDragChange:f,onDragChangeComplete:function(){a(p(h.current))},direction:"x",disabledDrag:r}),2),g=m[0],v=m[1],y=i.useMemo((function(){if("hue"===c){var t=l.toHsb();return t.s=1,t.b=1,t.a=1,new uk(t)}return l}),[l,c]),b=i.useMemo((function(){return n.map((function(t){return"".concat(t.color," ").concat(t.percent,"%")}))}),[n]);return i.createElement("div",{ref:u,className:mm("".concat(e,"-slider"),"".concat(e,"-slider-").concat(c)),onMouseDown:v,onTouchStart:v},i.createElement(yk,{prefixCls:e},i.createElement(bk,{x:g.x,y:g.y,ref:d},i.createElement(vk,{size:"small",color:y.toHexString(),prefixCls:e})),i.createElement(_k,{colors:b,type:c,prefixCls:e})))};function Sk(t){return r.useMemo((function(){return[(t||{}).slider||wk]}),[t])}var kk=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],Ck=h((function(t,e){var n=t.value,r=t.defaultValue,a=t.prefixCls,s=void 0===a?"rc-color-picker":a,l=t.onChange,c=t.onChangeComplete,u=t.className,d=t.style,h=t.panelRender,p=t.disabledAlpha,f=void 0!==p&&p,m=t.disabled,g=void 0!==m&&m,v=Ug(Sk(t.components),1)[0],y=function(t,e){var n=Ug(qx(t,{value:e}),2),r=n[0],i=n[1];return[o((function(){return dk(r)}),[r]),i]}(r||hk,n),b=Ug(y,2),x=b[0],_=b[1],w=o((function(){return x.setA(1).toRgbString()}),[x]),S=function(t,e){n||_(t),null==l||l(t,e)},k=function(t){return new uk(x.setHue(t))},C=function(t){return new uk(x.setA(t/100))},E=mm("".concat(s,"-panel"),u,Am({},"".concat(s,"-panel-disabled"),g)),M={prefixCls:s,disabled:g,color:x},P=i.createElement(i.Fragment,null,i.createElement(xk,gm({onChange:S},M,{onChangeComplete:c})),i.createElement("div",{className:"".concat(s,"-slider-container")},i.createElement("div",{className:mm("".concat(s,"-slider-group"),Am({},"".concat(s,"-slider-group-disabled-alpha"),f))},i.createElement(v,gm({},M,{type:"hue",colors:kk,min:0,max:359,value:x.getHue(),onChange:function(t){S(k(t),{type:"hue",value:t})},onChangeComplete:function(t){c&&c(k(t))}})),!f&&i.createElement(v,gm({},M,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:w}],min:0,max:100,value:100*x.a,onChange:function(t){S(C(t),{type:"alpha",value:t})},onChangeComplete:function(t){c&&c(C(t))}}))),i.createElement(mk,{color:x.toRgbString(),prefixCls:s})));return i.createElement("div",{className:E,style:d,ref:e},"function"==typeof h?h(P):P)}));"production"!==process.env.NODE_ENV&&(Ck.displayName="ColorPicker");let Ek=function(){return function(t,e,n){return e&&eS(t.prototype,e),n&&eS(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}((function t(e){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.cleared=!1,e instanceof t)return this.metaColor=e.metaColor.clone(),this.colors=null===(n=e.colors)||void 0===n?void 0:n.map((e=>({color:new t(e.color),percent:e.percent}))),void(this.cleared=e.cleared);const r=Array.isArray(e);r&&e.length?(this.colors=e.map((e=>{let{color:n,percent:r}=e;return{color:new t(n),percent:r}})),this.metaColor=new uk(this.colors[0].color.metaColor)):this.metaColor=new uk(r?"":e),(!e||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}),[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return((t,e)=>t?((t,e)=>(null==t?void 0:t.replace(/[^\w/]/g,"").slice(0,e?8:6))||"")(t,e):"")(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:t}=this;if(t){const e=t.map((t=>`${t.color.toRgbString()} ${t.percent}%`)).join(", ");return`linear-gradient(90deg, ${e})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!(!t||this.isGradient()!==t.isGradient())&&(this.isGradient()?this.colors.length===t.colors.length&&this.colors.every(((e,n)=>{const r=t.colors[n];return e.percent===r.percent&&e.color.equals(r.color)})):this.toHexString()===t.toHexString())}}])}();const Mk=t=>({animationDuration:t,animationFillMode:"both"}),Pk=t=>({animationDuration:t,animationFillMode:"both"}),Ok=function(t,e,n,r){const i=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${i}${t}-enter,\n ${i}${t}-appear\n `]:Object.assign(Object.assign({},Mk(r)),{animationPlayState:"paused"}),[`${i}${t}-leave`]:Object.assign(Object.assign({},Pk(r)),{animationPlayState:"paused"}),[`\n ${i}${t}-enter${t}-enter-active,\n ${i}${t}-appear${t}-appear-active\n `]:{animationName:e,animationPlayState:"running"},[`${i}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Tk=new rb("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Nk=new rb("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Ak=new rb("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Dk=new rb("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Lk=new rb("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ik=new rb("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),zk={"move-up":{inKeyframes:new rb("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new rb("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:Tk,outKeyframes:Nk},"move-left":{inKeyframes:Ak,outKeyframes:Dk},"move-right":{inKeyframes:Lk,outKeyframes:Ik}},Rk=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=zk[e];return[Ok(r,i,o,t.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},Fk=new rb("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$k=new rb("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),jk=new rb("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Bk=new rb("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Hk=new rb("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Wk=new rb("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Vk=new rb("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Yk=new rb("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),qk={"slide-up":{inKeyframes:Fk,outKeyframes:$k},"slide-down":{inKeyframes:jk,outKeyframes:Bk},"slide-left":{inKeyframes:Hk,outKeyframes:Wk},"slide-right":{inKeyframes:Vk,outKeyframes:Yk}},Xk=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=qk[e];return[Ok(r,i,o,t.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]},Uk=t=>{const{paddingInline:e,onlyIconSize:n}=t;return Gx(t,{buttonPaddingHorizontal:e,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Zk=t=>{var e,n,r,i,o,a;const s=null!==(e=t.contentFontSize)&&void 0!==e?e:t.fontSize,l=null!==(n=t.contentFontSizeSM)&&void 0!==n?n:t.fontSize,c=null!==(r=t.contentFontSizeLG)&&void 0!==r?r:t.fontSizeLG,u=null!==(i=t.contentLineHeight)&&void 0!==i?i:hx(s),d=null!==(o=t.contentLineHeightSM)&&void 0!==o?o:hx(l),h=null!==(a=t.contentLineHeightLG)&&void 0!==a?a:hx(c),p=((t,e)=>{const{r:n,g:r,b:i,a:o}=t.toRgb(),a=new uk(t.toRgbString()).onBackground(e).toHsv();return o<=.5?a.v>.5:.299*n+.587*r+.114*i>192})(new Ek(t.colorBgSolid),"#fff")?"#000":"#fff",f=r_.reduce(((e,n)=>Object.assign(Object.assign({},e),{[`${n}ShadowColor`]:`0 ${Nv(t.controlOutlineWidth)} 0 ${o_(t[`${n}1`],t.colorBgContainer)}`})),{});return Object.assign(Object.assign({},f),{fontWeight:400,defaultShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`,primaryShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`,dangerShadow:`0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`,primaryColor:t.colorTextLightSolid,dangerColor:t.colorTextLightSolid,borderColorDisabled:t.colorBorder,defaultGhostColor:t.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:t.colorBgContainer,paddingInline:t.paddingContentHorizontal-t.lineWidth,paddingInlineLG:t.paddingContentHorizontal-t.lineWidth,paddingInlineSM:8-t.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:t.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:t.colorText,textTextHoverColor:t.colorText,textTextActiveColor:t.colorText,textHoverBg:t.colorFillTertiary,defaultColor:t.colorText,defaultBg:t.colorBgContainer,defaultBorderColor:t.colorBorder,defaultBorderColorDisabled:t.colorBorder,defaultHoverBg:t.colorBgContainer,defaultHoverColor:t.colorPrimaryHover,defaultHoverBorderColor:t.colorPrimaryHover,defaultActiveBg:t.colorBgContainer,defaultActiveColor:t.colorPrimaryActive,defaultActiveBorderColor:t.colorPrimaryActive,solidTextColor:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:h,paddingBlock:Math.max((t.controlHeight-s*u)/2-t.lineWidth,0),paddingBlockSM:Math.max((t.controlHeightSM-l*d)/2-t.lineWidth,0),paddingBlockLG:Math.max((t.controlHeightLG-c*h)/2-t.lineWidth,0)})},Gk=t=>{const{componentCls:e,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,marginXS:s,calc:l}=t;return{[e]:{outline:"none",position:"relative",display:"inline-flex",gap:t.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Nv(t.lineWidth)} ${t.lineType} transparent`,cursor:"pointer",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:t.colorText,"&:disabled > *":{pointerEvents:"none"},[`${e}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":y_(t),[`&${e}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${e}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${e}-icon-only`]:{paddingInline:0,[`&${e}-compact-item`]:{flex:"none"},[`&${e}-round`]:{width:"auto"}},[`&${e}-loading`]:{opacity:i,cursor:"default"},[`${e}-loading-icon`]:{transition:["width","opacity","margin"].map((t=>`${t} ${o} ${a}`)).join(",")},[`&:not(${e}-icon-end)`]:{[`${e}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${e}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},Kk=(t,e,n)=>({[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":e,"&:active":n}}),Jk=t=>({minWidth:t.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Qk=t=>({borderRadius:t.controlHeight,paddingInlineStart:t.calc(t.controlHeight).div(2).equal(),paddingInlineEnd:t.calc(t.controlHeight).div(2).equal()}),tC=t=>({cursor:"not-allowed",borderColor:t.borderColorDisabled,color:t.colorTextDisabled,background:t.colorBgContainerDisabled,boxShadow:"none"}),eC=(t,e,n,r,i,o,a,s)=>({[`&${t}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:e,borderColor:r||void 0,boxShadow:"none"},Kk(t,Object.assign({background:e},a),Object.assign({background:e},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),nC=t=>({[`&:disabled, &${t.componentCls}-disabled`]:Object.assign({},tC(t))}),rC=t=>({[`&:disabled, &${t.componentCls}-disabled`]:{cursor:"not-allowed",color:t.colorTextDisabled}}),iC=(t,e,n,r)=>{const i=r&&["link","text"].includes(r)?rC:nC;return Object.assign(Object.assign({},i(t)),Kk(t.componentCls,e,n))},oC=(t,e,n,r,i)=>({[`&${t.componentCls}-variant-solid`]:Object.assign({color:e,background:n},iC(t,r,i))}),aC=(t,e,n,r,i)=>({[`&${t.componentCls}-variant-outlined, &${t.componentCls}-variant-dashed`]:Object.assign({borderColor:e,background:n},iC(t,r,i))}),sC=t=>({[`&${t.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),lC=(t,e,n,r)=>({[`&${t.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:e},iC(t,n,r))}),cC=(t,e,n,r,i)=>({[`&${t.componentCls}-variant-${n}`]:Object.assign({color:e,boxShadow:"none"},iC(t,r,i,n))}),uC=t=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:t.defaultColor,boxShadow:t.defaultShadow},oC(t,t.solidTextColor,t.colorBgSolid,{color:t.solidTextColor,background:t.colorBgSolidHover},{color:t.solidTextColor,background:t.colorBgSolidActive})),sC(t)),lC(t,t.colorFillTertiary,{background:t.colorFillSecondary},{background:t.colorFill})),cC(t,t.textTextColor,"link",{color:t.colorLinkHover,background:t.linkHoverBg},{color:t.colorLinkActive})),eC(t.componentCls,t.ghostBg,t.defaultGhostColor,t.defaultGhostBorderColor,t.colorTextDisabled,t.colorBorder)),dC=t=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:t.colorPrimary,boxShadow:t.primaryShadow},aC(t,t.colorPrimary,t.colorBgContainer,{color:t.colorPrimaryTextHover,borderColor:t.colorPrimaryHover,background:t.colorBgContainer},{color:t.colorPrimaryTextActive,borderColor:t.colorPrimaryActive,background:t.colorBgContainer})),sC(t)),lC(t,t.colorPrimaryBg,{background:t.colorPrimaryBgHover},{background:t.colorPrimaryBorder})),cC(t,t.colorLink,"text",{color:t.colorPrimaryTextHover,background:t.colorPrimaryBg},{color:t.colorPrimaryTextActive,background:t.colorPrimaryBorder})),eC(t.componentCls,t.ghostBg,t.colorPrimary,t.colorPrimary,t.colorTextDisabled,t.colorBorder,{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),hC=t=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:t.colorError,boxShadow:t.dangerShadow},oC(t,t.dangerColor,t.colorError,{background:t.colorErrorHover},{background:t.colorErrorActive})),aC(t,t.colorError,t.colorBgContainer,{color:t.colorErrorHover,borderColor:t.colorErrorBorderHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),sC(t)),lC(t,t.colorErrorBg,{background:t.colorErrorBgFilledHover},{background:t.colorErrorBgActive})),cC(t,t.colorError,"text",{color:t.colorErrorHover,background:t.colorErrorBg},{color:t.colorErrorHover,background:t.colorErrorBgActive})),cC(t,t.colorError,"link",{color:t.colorErrorHover},{color:t.colorErrorActive})),eC(t.componentCls,t.ghostBg,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder,{color:t.colorErrorHover,borderColor:t.colorErrorHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),pC=t=>{const{componentCls:e}=t;return Object.assign({[`${e}-color-default`]:uC(t),[`${e}-color-primary`]:dC(t),[`${e}-color-dangerous`]:hC(t)},(t=>{const{componentCls:e}=t;return r_.reduce(((n,r)=>{const i=t[`${r}6`],o=t[`${r}1`],a=t[`${r}5`],s=t[`${r}2`],l=t[`${r}3`],c=t[`${r}7`];return Object.assign(Object.assign({},n),{[`&${e}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:t[`${r}ShadowColor`]},oC(t,t.colorTextLightSolid,i,{background:a},{background:c})),aC(t,i,t.colorBgContainer,{color:a,borderColor:a,background:t.colorBgContainer},{color:c,borderColor:c,background:t.colorBgContainer})),sC(t)),lC(t,o,{background:s},{background:l})),cC(t,i,"link",{color:a},{color:c})),cC(t,i,"text",{color:a,background:o},{color:c,background:l}))})}),{})})(t))},fC=t=>Object.assign(Object.assign(Object.assign(Object.assign({},aC(t,t.defaultBorderColor,t.defaultBg,{color:t.defaultHoverColor,borderColor:t.defaultHoverBorderColor,background:t.defaultHoverBg},{color:t.defaultActiveColor,borderColor:t.defaultActiveBorderColor,background:t.defaultActiveBg})),cC(t,t.textTextColor,"text",{color:t.textTextHoverColor,background:t.textHoverBg},{color:t.textTextActiveColor,background:t.colorBgTextActive})),oC(t,t.primaryColor,t.colorPrimary,{background:t.colorPrimaryHover,color:t.primaryColor},{background:t.colorPrimaryActive,color:t.primaryColor})),cC(t,t.colorLink,"link",{color:t.colorLinkHover,background:t.linkHoverBg},{color:t.colorLinkActive})),mC=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=t;return[{[e]:{fontSize:i,height:r,padding:`${Nv(l)} ${Nv(a)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${e}`]:Jk(t)},{[`${n}${n}-round${e}`]:Qk(t)}]},gC=t=>{const e=Gx(t,{fontSize:t.contentFontSize});return mC(e,t.componentCls)},vC=t=>{const e=Gx(t,{controlHeight:t.controlHeightSM,fontSize:t.contentFontSizeSM,padding:t.paddingXS,buttonPaddingHorizontal:t.paddingInlineSM,buttonPaddingVertical:0,borderRadius:t.borderRadiusSM,buttonIconOnlyFontSize:t.onlyIconSizeSM});return mC(e,`${t.componentCls}-sm`)},yC=t=>{const e=Gx(t,{controlHeight:t.controlHeightLG,fontSize:t.contentFontSizeLG,buttonPaddingHorizontal:t.paddingInlineLG,buttonPaddingVertical:0,borderRadius:t.borderRadiusLG,buttonIconOnlyFontSize:t.onlyIconSizeLG});return mC(e,`${t.componentCls}-lg`)},bC=t=>{const{componentCls:e}=t;return{[e]:{[`&${e}-block`]:{width:"100%"}}}};var xC=x_("Button",(t=>{const e=Uk(t);return[Gk(e),gC(e),vC(e),yC(e),bC(e),pC(e),fC(e),ak(e)]}),Zk,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function _C(t,e,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map((t=>`&:${t} ${a}`)).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function wC(t,e,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function SC(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=t,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},_C(t,r,e)),wC(n,r,e))}}function kC(t,e){return{[`&-item:not(${e}-last-item)`]:{marginBottom:t.calc(t.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function CC(t){const e=`${t.componentCls}-compact-vertical`;return{[e]:Object.assign(Object.assign({},kC(t,e)),(n=t.componentCls,r=e,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const EC=t=>{const{componentCls:e,colorPrimaryHover:n,lineWidth:r,calc:i}=t,o=i(r).mul(-1).equal(),a=t=>{const i=`${e}-compact${t?"-vertical":""}-item${e}-primary:not([disabled])`;return{[`${i} + ${i}::before`]:{position:"absolute",top:t?o:0,insetInlineStart:t?0:o,backgroundColor:n,content:'""',width:t?"100%":r,height:t?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))};var MC=w_(["Button","compact"],(t=>{const e=Uk(t);return[SC(e),CC(e),EC(e)]}),Zk),PC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};const OC={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["primary","link"],text:["default","text"]},TC=i.forwardRef(((t,e)=>{var n,a;const{loading:c=!1,prefixCls:d,color:h,variant:f,type:m,danger:g=!1,shape:y="default",size:b,styles:x,disabled:_,className:w,rootClassName:S,children:k,icon:C,iconPosition:E="start",ghost:M=!1,block:P=!1,htmlType:O="button",classNames:T,style:N={},autoInsertSpace:A,autoFocus:D}=t,L=PC(t,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=m||"default",[z,R]=o((()=>{if(h&&f)return[h,f];const t=OC[I]||[];return g?["danger",t[1]]:t}),[m,h,f,g]),F="danger"===z?"dangerous":z,{getPrefixCls:$,direction:j,autoInsertSpace:B,className:H,style:W,classNames:V,styles:Y}=function(t){const e=r.useContext(Cx),{getPrefixCls:n,direction:i,getPopupContainer:o}=e,a=e[t];return Object.assign(Object.assign({classNames:Ex,styles:Ex},a),{getPrefixCls:n,direction:i,getPopupContainer:o})}("button"),q=null===(n=null!=A?A:B)||void 0===n||n,X=$("btn",d),[U,Z,G]=xC(X),K=p(Nx),J=null!=_?_:K,Q=p(qS),tt=o((()=>function(t){if("object"==typeof t&&t){let e=null==t?void 0:t.delay;return e=Number.isNaN(e)||"number"!=typeof e?0:e,{loading:e<=0,delay:e}}return{loading:!!t,delay:0}}(c)),[c]),[et,nt]=u(tt.loading),[rt,it]=u(!1),ot=s(null),at=Um(e,ot),st=1===v.count(k)&&!C&&!KS(R),lt=s(!0);i.useEffect((()=>(lt.current=!1,()=>{lt.current=!0})),[]),l((()=>{let t=null;return tt.delay>0?t=setTimeout((()=>{t=null,nt(!0)}),tt.delay):nt(tt.loading),function(){t&&(clearTimeout(t),t=null)}}),[tt]),l((()=>{if(!ot.current||!q)return;const t=ot.current.textContent||"";st&&ZS(t)?rt||it(!0):rt&&it(!1)})),l((()=>{D&&ot.current&&ot.current.focus()}),[]);const ct=i.useCallback((e=>{var n;et||J?e.preventDefault():null===(n=t.onClick)||void 0===n||n.call(t,e)}),[t.onClick,et,J]);if("production"!==process.env.NODE_ENV){const t=wb("Button");"production"!==process.env.NODE_ENV&&t(!("string"==typeof C&&C.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${C}\` at https://ant.design/components/icon`),"production"!==process.env.NODE_ENV&&t(!(M&&KS(R)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ut,compactItemClassnames:dt}=WS(X,j),ht={large:"lg",small:"sm",middle:void 0},pt=BS((t=>{var e,n;return null!==(n=null!==(e=null!=b?b:ut)&&void 0!==e?e:Q)&&void 0!==n?n:t})),ft=pt&&null!==(a=ht[pt])&&void 0!==a?a:"",mt=et?"loading":C,gt=OS(L,["navigate"]),vt=mm(X,Z,G,{[`${X}-${y}`]:"default"!==y&&y,[`${X}-${I}`]:I,[`${X}-dangerous`]:g,[`${X}-color-${F}`]:F,[`${X}-variant-${R}`]:R,[`${X}-${ft}`]:ft,[`${X}-icon-only`]:!k&&0!==k&&!!mt,[`${X}-background-ghost`]:M&&!KS(R),[`${X}-loading`]:et,[`${X}-two-chinese-chars`]:rt&&q&&!et,[`${X}-block`]:P,[`${X}-rtl`]:"rtl"===j,[`${X}-icon-end`]:"end"===E},dt,w,S,H),yt=Object.assign(Object.assign({},W),N),bt=mm(null==T?void 0:T.icon,V.icon),xt=Object.assign(Object.assign({},(null==x?void 0:x.icon)||{}),Y.icon||{}),_t=C&&!et?i.createElement(tk,{prefixCls:X,className:bt,style:xt},C):c&&"object"==typeof c&&c.icon?i.createElement(tk,{prefixCls:X,className:bt,style:xt},c.icon):i.createElement(ik,{existIcon:!!C,prefixCls:X,loading:et,mount:lt.current}),wt=k||0===k?function(t,e){let n=!1;const r=[];return i.Children.forEach(t,(t=>{const e=typeof t,i="string"===e||"number"===e;if(n&&i){const e=r.length-1,n=r[e];r[e]=`${n}${t}`}else r.push(t);n=i})),i.Children.map(r,(t=>JS(t,e)))}(k,st&&q):null;if(void 0!==gt.href)return U(i.createElement("a",Object.assign({},gt,{className:mm(vt,{[`${X}-disabled`]:J}),href:J?void 0:gt.href,style:yt,onClick:ct,ref:at,tabIndex:J?-1:0}),_t,wt));let St=i.createElement("button",Object.assign({},L,{type:O,className:vt,style:yt,onClick:ct,disabled:J,ref:at}),_t,wt,dt&&i.createElement(MC,{prefixCls:X}));return KS(R)||(St=i.createElement(jS,{component:"Button",disabled:et},St)),U(St)})),NC=TC;NC.Group=XS,NC.__ANT_BUTTON=!0,"production"!==process.env.NODE_ENV&&(NC.displayName="Button");var AC=NC,DC=r.createContext(null),LC=[];function IC(t){return"undefined"!=typeof document&&t&&t instanceof Element?function(t){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=e;var r,i,o=n.style;if(o.position="absolute",o.left="0",o.top="0",o.width="100px",o.height="100px",o.overflow="scroll",t){var a=getComputedStyle(t);o.scrollbarColor=a.scrollbarColor,o.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(t,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";dv("\n#".concat(e,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),e)}catch(t){console.error(t),r=l,i=c}}document.body.appendChild(n);var h=t&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=t&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),uv(e),{width:h,height:p}}(t):{width:0,height:0}}var zC="rc-util-locker-".concat(Date.now()),RC=0;function FC(t){var e=!!t,n=Ug(r.useState((function(){return RC+=1,"".concat(zC,"_").concat(RC)})),1)[0];Rv((function(){if(e){var t=IC(document.body).width,r=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;dv("\nhtml body {\n overflow-y: hidden;\n ".concat(r?"width: calc(100% - ".concat(t,"px);"):"","\n}"),n)}else uv(n);return function(){uv(n)}}),[e,n])}var $C=!1;var jC=function(t){return!1!==t&&(ev()&&t?"string"==typeof t?document.querySelector(t):"function"==typeof t?t():t:null)},BC=r.forwardRef((function(t,e){var n=t.open,i=t.autoLock,o=t.getContainer,a=t.debug,s=t.autoDestroy,l=void 0===s||s,c=t.children,u=Ug(r.useState(n),2),d=u[0],h=u[1],p=d||n;"production"!==process.env.NODE_ENV&&Om(ev()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),r.useEffect((function(){(l||n)&&h(n)}),[n,l]);var f=Ug(r.useState((function(){return jC(o)})),2),m=f[0],g=f[1];r.useEffect((function(){var t=jC(o);g(null!=t?t:null)}));var v=function(t,e){var n=Ug(r.useState((function(){if(!ev())return null;var t=document.createElement("div");return"production"!==process.env.NODE_ENV&&e&&t.setAttribute("data-debug",e),t})),1)[0],i=r.useRef(!1),o=r.useContext(DC),a=Ug(r.useState(LC),2),s=a[0],l=a[1],c=o||(i.current?void 0:function(t){l((function(e){return[t].concat(Zg(e))}))});function u(){n.parentElement||document.body.appendChild(n),i.current=!0}function d(){var t;null===(t=n.parentElement)||void 0===t||t.removeChild(n),i.current=!1}return Rv((function(){return t?o?o(u):u():d(),d}),[t]),Rv((function(){s.length&&(s.forEach((function(t){return t()})),l(LC))}),[s]),[n,c]}(p&&!m,a),y=Ug(v,2),b=y[0],x=y[1],_=null!=m?m:b;FC(i&&n&&ev()&&(_===b||_===document.body));var w=null;c&&Zm(c)&&e&&(w=c.ref);var S=Um(w,e);if(!p||!ev()||void 0===m)return null;var k,C=!1===_||("boolean"==typeof k&&($C=k),$C),E=c;return e&&(E=r.cloneElement(c,{ref:S})),r.createElement(DC.Provider,{value:x},C?E:M(E,_))}));"production"!==process.env.NODE_ENV&&(BC.displayName="Portal");var HC=0,WC=tv({},r).useId,VC=WC?function(t){var e=WC();return t||("test"===process.env.NODE_ENV?"test-id":e)}:function(t){var e=Wx(r.useState("ssr-id"),2),n=e[0],i=e[1];return r.useEffect((function(){var t=HC;HC+=1,i("rc_unique_".concat(t))}),[]),t||("test"===process.env.NODE_ENV?"test-id":n)};function YC(){YC=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var x={};c(x,a,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(N([])));w&&w!==n&&r.call(w,a)&&(x=w);var S=b.prototype=v.prototype=Object.create(x);function k(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){function n(i,o,a,s){var l=d(t[i],t,o);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Tm(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=h;return function(o,a){if(i===f)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=M(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===h)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=f;var c=d(e,n,r);if("normal"===c.type){if(i=r.done?m:p,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=m,r.method="throw",r.arg=c.arg)}}}function M(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(Tm(e)+" is not iterable")}return y.prototype=b,i(S,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},k(C.prototype),c(C.prototype,s,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(S),c(S,l,"Generator"),c(S,a,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=N,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:N(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function qC(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function XC(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){qC(o,r,i,a,s,"next",t)}function s(t){qC(o,r,i,a,s,"throw",t)}a(void 0)}))}}var UC="RC_FORM_INTERNAL_HOOKS",ZC=function(){Om(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},GC=r.createContext({getFieldValue:ZC,getFieldsValue:ZC,getFieldError:ZC,getFieldWarning:ZC,getFieldsError:ZC,isFieldsTouched:ZC,isFieldTouched:ZC,isFieldValidating:ZC,isFieldsValidating:ZC,resetFields:ZC,setFields:ZC,setFieldValue:ZC,setFieldsValue:ZC,validateFields:ZC,submit:ZC,getInternalHooks:function(){return ZC(),{dispatch:ZC,initEntityValue:ZC,registerField:ZC,useSubscribe:ZC,setInitialValues:ZC,destroyForm:ZC,setCallbacks:ZC,registerWatch:ZC,getFields:ZC,setValidateMessages:ZC,setPreserve:ZC,getInitialValue:ZC}}}),KC=r.createContext(null);function JC(t){return null==t?[]:Array.isArray(t)?t:[t]}function QC(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var tE=QC();function eE(t){var e="function"==typeof Map?new Map:void 0;return eE=function(t){if(null===t||!function(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return function(t,e,n){if(Ng())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var i=new(t.bind.apply(t,r));return n&&Pg(i,n.prototype),i}(t,arguments,Tg(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Pg(n,t)},eE(t)}var nE=/%[sdj%]/g,rE=function(){};function iE(t){if(!t||!t.length)return null;var e={};return t.forEach((function(t){var n=t.field;e[n]=e[n]||[],e[n].push(t)})),e}function oE(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,o=n.length;if("function"==typeof t)return t.apply(null,n);if("string"==typeof t){var a=t.replace(nE,(function(t){if("%%"===t)return"%";if(i>=o)return t;switch(t){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}break;default:return t}}));return a}return t}function aE(t,e){return null==t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!function(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t}(e)||"string"!=typeof t||t))}function sE(t,e,n){var r=0,i=t.length;!function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?e(t[s],o):n([])}}([])}"undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV&&"undefined"!=typeof window&&"undefined"!=typeof document&&(rE=function(t,e){"undefined"!=typeof console&&console.warn&&"undefined"==typeof ASYNC_VALIDATOR_NO_WARNING&&e.every((function(t){return"string"==typeof t}))&&console.warn(t,e)});var lE=function(){Og(e,eE(Error));var t=Dg(e);function e(n,r){var i;return Cg(this,e),Am(Ag(i=t.call(this,"Async Validation Error")),"errors",void 0),Am(Ag(i),"fields",void 0),i.errors=n,i.fields=r,i}return Mg(e)}();function cE(t,e,n,r,i){if(e.first){var o=new Promise((function(e,o){var a=function(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,Zg(t[n]||[]))})),e}(t);sE(a,n,(function(t){return r(t),t.length?o(new lE(t,iE(t))):e(i)}))}));return o.catch((function(t){return t})),o}var a=!0===e.firstFields?Object.keys(t):e.firstFields||[],s=Object.keys(t),l=s.length,c=0,u=[],d=new Promise((function(e,o){var d=function(t){if(u.push.apply(u,t),++c===l)return r(u),u.length?o(new lE(u,iE(u))):e(i)};s.length||(r(u),e(i)),s.forEach((function(e){var r=t[e];-1!==a.indexOf(e)?sE(r,n,d):function(t,e,n){var r=[],i=0,o=t.length;function a(t){r.push.apply(r,Zg(t||[])),++i===o&&n(r)}t.forEach((function(t){e(t,a)}))}(r,n,d)}))}));return d.catch((function(t){return t})),d}function uE(t,e){return function(n){var r,i;return r=t.fullFields?function(t,e){for(var n=t,r=0;r<e.length;r++){if(null==n)return n;n=n[e[r]]}return n}(e,t.fullFields):e[n.field||t.fullField],(i=n)&&void 0!==i.message?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||t.fullField}}}function dE(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===Tm(r)&&"object"===Tm(t[n])?t[n]=Lm(Lm({},t[n]),r):t[n]=r}return t}var hE,pE="enum",fE=function(t,e,n,r,i,o){!t.required||n.hasOwnProperty(t.field)&&!aE(e,o||t.type)||r.push(oE(i.messages.required,t.fullField))},mE=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,gE=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,vE={integer:function(t){return vE.number(t)&&parseInt(t,10)===t},float:function(t){return vE.number(t)&&!vE.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(t){return!1}},date:function(t){return"function"==typeof t.getTime&&"function"==typeof t.getMonth&&"function"==typeof t.getYear&&!isNaN(t.getTime())},number:function(t){return!isNaN(t)&&"number"==typeof t},object:function(t){return"object"===Tm(t)&&!vE.array(t)},method:function(t){return"function"==typeof t},email:function(t){return"string"==typeof t&&t.length<=320&&!!t.match(mE)},url:function(t){return"string"==typeof t&&t.length<=2048&&!!t.match(function(){if(hE)return hE;var t="[a-fA-F\\d:]",e=function(e){return e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(t,")|(?<=").concat(t,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:".concat(i.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(o,"$)")),s=new RegExp("^".concat(n,"$")),l=new RegExp("^".concat(o,"$")),c=function(t){return t&&t.exact?a:new RegExp("(?:".concat(e(t)).concat(n).concat(e(t),")|(?:").concat(e(t)).concat(o).concat(e(t),")"),"g")};c.v4=function(t){return t&&t.exact?s:new RegExp("".concat(e(t)).concat(n).concat(e(t)),"g")},c.v6=function(t){return t&&t.exact?l:new RegExp("".concat(e(t)).concat(o).concat(e(t)),"g")};var u=c.v4().source,d=c.v6().source,h="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return hE=new RegExp("(?:^".concat(h,"$)"),"i")}())},hex:function(t){return"string"==typeof t&&!!t.match(gE)}},yE={required:fE,whitespace:function(t,e,n,r,i){(/^\s+$/.test(e)||""===e)&&r.push(oE(i.messages.whitespace,t.fullField))},type:function(t,e,n,r,i){if(t.required&&void 0===e)fE(t,e,n,r,i);else{var o=t.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?vE[o](e)||r.push(oE(i.messages.types[o],t.fullField,t.type)):o&&Tm(e)!==t.type&&r.push(oE(i.messages.types[o],t.fullField,t.type))}},range:function(t,e,n,r,i){var o="number"==typeof t.len,a="number"==typeof t.min,s="number"==typeof t.max,l=e,c=null,u="number"==typeof e,d="string"==typeof e,h=Array.isArray(e);if(u?c="number":d?c="string":h&&(c="array"),!c)return!1;h&&(l=e.length),d&&(l=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?l!==t.len&&r.push(oE(i.messages[c].len,t.fullField,t.len)):a&&!s&&l<t.min?r.push(oE(i.messages[c].min,t.fullField,t.min)):s&&!a&&l>t.max?r.push(oE(i.messages[c].max,t.fullField,t.max)):a&&s&&(l<t.min||l>t.max)&&r.push(oE(i.messages[c].range,t.fullField,t.min,t.max))},enum:function(t,e,n,r,i){t[pE]=Array.isArray(t[pE])?t[pE]:[],-1===t[pE].indexOf(e)&&r.push(oE(i.messages[pE],t.fullField,t[pE].join(", ")))},pattern:function(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(oE(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"==typeof t.pattern){new RegExp(t.pattern).test(e)||r.push(oE(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}},bE=function(t,e,n,r,i){var o=t.type,a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e,o)&&!t.required)return n();yE.required(t,e,r,a,i,o),aE(e,o)||yE.type(t,e,r,a,i)}n(a)},xE={string:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e,"string")&&!t.required)return n();yE.required(t,e,r,o,i,"string"),aE(e,"string")||(yE.type(t,e,r,o,i),yE.range(t,e,r,o,i),yE.pattern(t,e,r,o,i),!0===t.whitespace&&yE.whitespace(t,e,r,o,i))}n(o)},method:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e)&&!t.required)return n();yE.required(t,e,r,o,i),void 0!==e&&yE.type(t,e,r,o,i)}n(o)},number:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(""===e&&(e=void 0),aE(e)&&!t.required)return n();yE.required(t,e,r,o,i),void 0!==e&&(yE.type(t,e,r,o,i),yE.range(t,e,r,o,i))}n(o)},boolean:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e)&&!t.required)return n();yE.required(t,e,r,o,i),void 0!==e&&yE.type(t,e,r,o,i)}n(o)},regexp:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e)&&!t.required)return n();yE.required(t,e,r,o,i),aE(e)||yE.type(t,e,r,o,i)}n(o)},integer:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e)&&!t.required)return n();yE.required(t,e,r,o,i),void 0!==e&&(yE.type(t,e,r,o,i),yE.range(t,e,r,o,i))}n(o)},float:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e)&&!t.required)return n();yE.required(t,e,r,o,i),void 0!==e&&(yE.type(t,e,r,o,i),yE.range(t,e,r,o,i))}n(o)},array:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(null==e&&!t.required)return n();yE.required(t,e,r,o,i,"array"),null!=e&&(yE.type(t,e,r,o,i),yE.range(t,e,r,o,i))}n(o)},object:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e)&&!t.required)return n();yE.required(t,e,r,o,i),void 0!==e&&yE.type(t,e,r,o,i)}n(o)},enum:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e)&&!t.required)return n();yE.required(t,e,r,o,i),void 0!==e&&yE.enum(t,e,r,o,i)}n(o)},pattern:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e,"string")&&!t.required)return n();yE.required(t,e,r,o,i),aE(e,"string")||yE.pattern(t,e,r,o,i)}n(o)},date:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e,"date")&&!t.required)return n();var a;if(yE.required(t,e,r,o,i),!aE(e,"date"))a=e instanceof Date?e:new Date(e),yE.type(t,a,r,o,i),a&&yE.range(t,a.getTime(),r,o,i)}n(o)},url:bE,hex:bE,email:bE,required:function(t,e,n,r,i){var o=[],a=Array.isArray(e)?"array":Tm(e);yE.required(t,e,r,o,i,a),n(o)},any:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(aE(e)&&!t.required)return n();yE.required(t,e,r,o,i)}n(o)}},_E=function(){function t(e){Cg(this,t),Am(this,"rules",null),Am(this,"_messages",tE),this.define(e)}return Mg(t,[{key:"define",value:function(t){var e=this;if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==Tm(t)||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach((function(n){var r=t[n];e.rules[n]=Array.isArray(r)?r:[r]}))}},{key:"messages",value:function(t){return t&&(this._messages=dE(QC(),t)),this._messages}},{key:"validate",value:function(e){var n=this,r=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof i&&(o=i,i={}),!this.rules||0===Object.keys(this.rules).length)return o&&o(null,r),Promise.resolve(r);if(i.messages){var a=this.messages();a===tE&&(a=QC()),dE(a,i.messages),i.messages=a}else i.messages=this.messages();var s={};(i.keys||Object.keys(this.rules)).forEach((function(t){var i=n.rules[t],o=r[t];i.forEach((function(i){var a=i;"function"==typeof a.transform&&(r===e&&(r=Lm({},r)),null!=(o=r[t]=a.transform(o))&&(a.type=a.type||(Array.isArray(o)?"array":Tm(o)))),(a="function"==typeof a?{validator:a}:Lm({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=t,a.fullField=a.fullField||t,a.type=n.getType(a),s[t]=s[t]||[],s[t].push({rule:a,value:o,source:r,field:t}))}))}));var l={};return cE(s,i,(function(e,n){var o,a=e.rule,s=!("object"!==a.type&&"array"!==a.type||"object"!==Tm(a.fields)&&"object"!==Tm(a.defaultField));function c(t,e){return Lm(Lm({},e),{},{fullField:"".concat(a.fullField,".").concat(t),fullFields:a.fullFields?[].concat(Zg(a.fullFields),[t]):[t]})}function u(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(o)?o:[o];!i.suppressWarning&&u.length&&t.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var d=u.map(uE(a,r));if(i.first&&d.length)return l[a.field]=1,n(d);if(s){if(a.required&&!e.value)return void 0!==a.message?d=[].concat(a.message).map(uE(a,r)):i.error&&(d=[i.error(a,oE(i.messages.required,a.field))]),n(d);var h={};a.defaultField&&Object.keys(e.value).map((function(t){h[t]=a.defaultField})),h=Lm(Lm({},h),e.rule.fields);var p={};Object.keys(h).forEach((function(t){var e=h[t],n=Array.isArray(e)?e:[e];p[t]=n.map(c.bind(null,t))}));var f=new t(p);f.messages(i.messages),e.rule.options&&(e.rule.options.messages=i.messages,e.rule.options.error=i.error),f.validate(e.value,e.rule.options||i,(function(t){var e=[];d&&d.length&&e.push.apply(e,Zg(d)),t&&t.length&&e.push.apply(e,Zg(t)),n(e.length?e:null)}))}else n(d)}if(s=s&&(a.required||!a.required&&e.value),a.field=e.field,a.asyncValidator)o=a.asyncValidator(a,e.value,u,e.source,i);else if(a.validator){try{o=a.validator(a,e.value,u,e.source,i)}catch(t){var d,h;null===(d=(h=console).error)||void 0===d||d.call(h,t),i.suppressValidatorError||setTimeout((function(){throw t}),0),u(t.message)}!0===o?u():!1===o?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):o instanceof Array?u(o):o instanceof Error&&u(o.message)}o&&o.then&&o.then((function(){return u()}),(function(t){return u(t)}))}),(function(t){!function(t){var e=[],n={};function i(t){var n;Array.isArray(t)?e=(n=e).concat.apply(n,Zg(t)):e.push(t)}for(var a=0;a<t.length;a++)i(t[a]);e.length?(n=iE(e),o(e,n)):o(null,r)}(t)}),r)}},{key:"getType",value:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!=typeof t.validator&&t.type&&!xE.hasOwnProperty(t.type))throw new Error(oE("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if("function"==typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?xE.required:xE[this.getType(t)]||void 0}}]),t}();Am(_E,"register",(function(t,e){if("function"!=typeof e)throw new Error("Cannot register a validator by type, validator is not a function");xE[t]=e})),Am(_E,"warning",rE),Am(_E,"messages",tE),Am(_E,"validators",xE);var wE="'${name}' is not a valid ${type}",SE={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:wE,method:wE,array:wE,object:wE,number:wE,date:wE,boolean:wE,integer:wE,float:wE,regexp:wE,email:wE,url:wE,hex:wE},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},kE=_E;function CE(t,e){return t.replace(/\\?\$\{\w+\}/g,(function(t){if(t.startsWith("\\"))return t.slice(1);var n=t.slice(2,-1);return e[n]}))}var EE="CODE_LOGIC_ERROR";function ME(t,e,n,r,i){return PE.apply(this,arguments)}function PE(){return PE=XC(YC().mark((function t(e,n,i,o,a){var s,l,c,u,d,h,p,f,m;return YC().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(s=Lm({},i)).ruleIndex,kE.warning=function(){},s.validator&&(l=s.validator,s.validator=function(){try{return l.apply(void 0,arguments)}catch(t){return console.error(t),Promise.reject(EE)}}),c=null,s&&"array"===s.type&&s.defaultField&&(c=s.defaultField,delete s.defaultField),u=new kE(Am({},e,[s])),d=vb(SE,o.validateMessages),u.messages(d),h=[],t.prev=10,t.next=13,Promise.resolve(u.validate(Am({},e,n),Lm({},o)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(h=t.t0.errors.map((function(t,e){var n=t.message,i=n===EE?d.default:n;return r.isValidElement(i)?r.cloneElement(i,{key:"error_".concat(e)}):i})));case 18:if(h.length||!c){t.next=23;break}return t.next=21,Promise.all(n.map((function(t,n){return ME("".concat(e,".").concat(n),t,c,o,a)})));case 21:return p=t.sent,t.abrupt("return",p.reduce((function(t,e){return[].concat(Zg(t),Zg(e))}),[]));case 23:return f=Lm(Lm({},i),{},{name:e,enum:(i.enum||[]).join(", ")},a),m=h.map((function(t){return"string"==typeof t?CE(t,f):t})),t.abrupt("return",m);case 26:case"end":return t.stop()}}),t,null,[[10,15]])}))),PE.apply(this,arguments)}function OE(t,e,n,r,i,o){var a,s=t.join("."),l=n.map((function(t,e){var n=t.validator,r=Lm(Lm({},t),{},{ruleIndex:e});return n&&(r.validator=function(t,e,r){var i=!1,o=n(t,e,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Promise.resolve().then((function(){Om(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r.apply(void 0,e)}))}));Om(i=o&&"function"==typeof o.then&&"function"==typeof o.catch,"`callback` is deprecated. Please return a promise instead."),i&&o.then((function(){r()})).catch((function(t){r(t||" ")}))}),r})).sort((function(t,e){var n=t.warningOnly,r=t.ruleIndex,i=e.warningOnly,o=e.ruleIndex;return!!n==!!i?r-o:n?1:-1}));if(!0===i)a=new Promise(function(){var t=XC(YC().mark((function t(n,i){var a,c,u;return YC().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=0;case 1:if(!(a<l.length)){t.next=12;break}return c=l[a],t.next=5,ME(s,e,c,r,o);case 5:if(!(u=t.sent).length){t.next=9;break}return i([{errors:u,rule:c}]),t.abrupt("return");case 9:a+=1,t.next=1;break;case 12:n([]);case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}());else{var c=l.map((function(t){return ME(s,e,t,r,o).then((function(e){return{errors:e,rule:t}}))}));a=(i?function(t){return NE.apply(this,arguments)}(c):function(t){return TE.apply(this,arguments)}(c)).then((function(t){return Promise.reject(t)}))}return a.catch((function(t){return t})),a}function TE(){return(TE=XC(YC().mark((function t(e){return YC().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all(e).then((function(t){var e;return(e=[]).concat.apply(e,Zg(t))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function NE(){return NE=XC(YC().mark((function t(e){var n;return YC().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=0,t.abrupt("return",new Promise((function(t){e.forEach((function(r){r.then((function(r){r.errors.length&&t([r]),(n+=1)===e.length&&t([])}))}))})));case 2:case"end":return t.stop()}}),t)}))),NE.apply(this,arguments)}function AE(t){return JC(t)}function DE(t,e){var n={};return e.forEach((function(e){var r=hb(t,e);n=fb(n,e,r)})),n}function LE(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t&&t.some((function(t){return IE(e,t,n)}))}function IE(t,e){return!(!t||!e)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&t.length!==e.length)&&e.every((function(e,n){return t[n]===e})))}function zE(t){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&"object"===Tm(e.target)&&t in e.target?e.target[t]:e}function RE(t,e,n){var r=t.length;if(e<0||e>=r||n<0||n>=r)return t;var i=t[e],o=e-n;return o>0?[].concat(Zg(t.slice(0,n)),[i],Zg(t.slice(n,e)),Zg(t.slice(e+1,r))):o<0?[].concat(Zg(t.slice(0,e)),Zg(t.slice(e+1,n+1)),[i],Zg(t.slice(n+1,r))):t}var FE=["name"],$E=[];function jE(t,e,n,r,i,o){return"function"==typeof t?t(e,n,"source"in o?{source:o.source}:{}):r!==i}var BE=function(){Og(e,r.Component);var t=Dg(e);function e(n){var i;(Cg(this,e),Am(Ag(i=t.call(this,n)),"state",{resetCount:0}),Am(Ag(i),"cancelRegisterFunc",null),Am(Ag(i),"mounted",!1),Am(Ag(i),"touched",!1),Am(Ag(i),"dirty",!1),Am(Ag(i),"validatePromise",void 0),Am(Ag(i),"prevValidating",void 0),Am(Ag(i),"errors",$E),Am(Ag(i),"warnings",$E),Am(Ag(i),"cancelRegister",(function(){var t=i.props,e=t.preserve,n=t.isListField,r=t.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(n,e,AE(r)),i.cancelRegisterFunc=null})),Am(Ag(i),"getNamePath",(function(){var t=i.props,e=t.name,n=t.fieldContext.prefixName;return void 0!==e?[].concat(Zg(void 0===n?[]:n),Zg(e)):[]})),Am(Ag(i),"getRules",(function(){var t=i.props,e=t.rules,n=void 0===e?[]:e,r=t.fieldContext;return n.map((function(t){return"function"==typeof t?t(r):t}))})),Am(Ag(i),"refresh",(function(){i.mounted&&i.setState((function(t){return{resetCount:t.resetCount+1}}))})),Am(Ag(i),"metaCache",null),Am(Ag(i),"triggerMetaEvent",(function(t){var e=i.props.onMetaChange;if(e){var n=Lm(Lm({},i.getMeta()),{},{destroy:t});pv(i.metaCache,n)||e(n),i.metaCache=n}else i.metaCache=null})),Am(Ag(i),"onStoreChange",(function(t,e,n){var r=i.props,o=r.shouldUpdate,a=r.dependencies,s=void 0===a?[]:a,l=r.onReset,c=n.store,u=i.getNamePath(),d=i.getValue(t),h=i.getValue(c),p=e&&LE(e,u);switch("valueUpdate"!==n.type||"external"!==n.source||pv(d,h)||(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=$E,i.warnings=$E,i.triggerMetaEvent()),n.type){case"reset":if(!e||p)return i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=$E,i.warnings=$E,i.triggerMetaEvent(),null==l||l(),void i.refresh();break;case"remove":if(o&&jE(o,t,c,d,h,n))return void i.reRender();break;case"setField":var f=n.data;if(p)return"touched"in f&&(i.touched=f.touched),"validating"in f&&!("originRCField"in f)&&(i.validatePromise=f.validating?Promise.resolve([]):null),"errors"in f&&(i.errors=f.errors||$E),"warnings"in f&&(i.warnings=f.warnings||$E),i.dirty=!0,i.triggerMetaEvent(),void i.reRender();if("value"in f&&LE(e,u,!0))return void i.reRender();if(o&&!u.length&&jE(o,t,c,d,h,n))return void i.reRender();break;case"dependenciesUpdate":if(s.map(AE).some((function(t){return LE(n.relatedFields,t)})))return void i.reRender();break;default:if(p||(!s.length||u.length||o)&&jE(o,t,c,d,h,n))return void i.reRender()}!0===o&&i.reRender()})),Am(Ag(i),"validateRules",(function(t){var e=i.getNamePath(),n=i.getValue(),r=t||{},o=r.triggerName,a=r.validateOnly,s=void 0!==a&&a,l=Promise.resolve().then(XC(YC().mark((function r(){var a,s,c,u,d,h,p;return YC().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=i.props,s=a.validateFirst,c=void 0!==s&&s,u=a.messageVariables,d=a.validateDebounce,h=i.getRules(),o&&(h=h.filter((function(t){return t})).filter((function(t){var e=t.validateTrigger;return!e||JC(e).includes(o)}))),!d||!o){r.next=10;break}return r.next=8,new Promise((function(t){setTimeout(t,d)}));case 8:if(i.validatePromise===l){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=OE(e,n,h,t,c,u)).catch((function(t){return t})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$E;if(i.validatePromise===l){var e;i.validatePromise=null;var n=[],r=[];null===(e=t.forEach)||void 0===e||e.call(t,(function(t){var e=t.rule.warningOnly,i=t.errors,o=void 0===i?$E:i;e?r.push.apply(r,Zg(o)):n.push.apply(n,Zg(o))})),i.errors=n,i.warnings=r,i.triggerMetaEvent(),i.reRender()}})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)}))));return s||(i.validatePromise=l,i.dirty=!0,i.errors=$E,i.warnings=$E,i.triggerMetaEvent(),i.reRender()),l})),Am(Ag(i),"isFieldValidating",(function(){return!!i.validatePromise})),Am(Ag(i),"isFieldTouched",(function(){return i.touched})),Am(Ag(i),"isFieldDirty",(function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(UC).getInitialValue)(i.getNamePath())})),Am(Ag(i),"getErrors",(function(){return i.errors})),Am(Ag(i),"getWarnings",(function(){return i.warnings})),Am(Ag(i),"isListField",(function(){return i.props.isListField})),Am(Ag(i),"isList",(function(){return i.props.isList})),Am(Ag(i),"isPreserve",(function(){return i.props.preserve})),Am(Ag(i),"getMeta",(function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:null===i.validatePromise}})),Am(Ag(i),"getOnlyChild",(function(t){if("function"==typeof t){var e=i.getMeta();return Lm(Lm({},i.getOnlyChild(t(i.getControlled(),e,i.props.fieldContext))),{},{isFunction:!0})}var n=wm(t);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}})),Am(Ag(i),"getValue",(function(t){var e=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return hb(t||e(!0),n)})),Am(Ag(i),"getControlled",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.props,n=e.name,r=e.trigger,o=e.validateTrigger,a=e.getValueFromEvent,s=e.normalize,l=e.valuePropName,c=e.getValueProps,u=e.fieldContext,d=void 0!==o?o:u.validateTrigger,h=i.getNamePath(),p=u.getInternalHooks,f=u.getFieldsValue,m=p(UC).dispatch,g=i.getValue(),v=c||function(t){return Am({},l,t)},y=t[r],b=void 0!==n?v(g):{};"production"!==process.env.NODE_ENV&&b&&Object.keys(b).forEach((function(t){Om("function"!=typeof b[t],"It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(t,")"))}));var x=Lm(Lm({},t),b);return x[r]=function(){var t;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t=a?a.apply(void 0,n):zE.apply(void 0,[l].concat(n)),s&&(t=s(t,g,f(!0))),t!==g&&m({type:"updateValue",namePath:h,value:t}),y&&y.apply(void 0,n)},JC(d||[]).forEach((function(t){var e=x[t];x[t]=function(){e&&e.apply(void 0,arguments);var n=i.props.rules;n&&n.length&&m({type:"validateField",namePath:h,triggerName:t})}})),x})),n.fieldContext)&&(0,(0,n.fieldContext.getInternalHooks)(UC).initEntityValue)(Ag(i));return i}return Mg(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.shouldUpdate,n=t.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(UC).registerField;this.cancelRegisterFunc=r(this)}!0===e&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var t,e=this.state.resetCount,n=this.props.children,i=this.getOnlyChild(n),o=i.child;return i.isFunction?t=o:r.isValidElement(o)?t=r.cloneElement(o,this.getControlled(o.props)):(Om(!o,"`children` of Field is not validate ReactElement."),t=o),r.createElement(r.Fragment,{key:e},t)}}]),e}();function HE(t){var e,n=t.name,i=hv(t,FE),o=r.useContext(GC),a=r.useContext(KC),s=void 0!==n?AE(n):void 0,l=null!==(e=i.isListField)&&void 0!==e?e:!!a,c="keep";return l||(c="_".concat((s||[]).join("_"))),"production"!==process.env.NODE_ENV&&!1===i.preserve&&l&&s.length<=1&&Om(!1,"`preserve` should not apply on Form.List fields."),r.createElement(BE,gm({key:c,name:s,isListField:l},i,{fieldContext:o}))}Am(BE,"contextType",GC),Am(BE,"defaultProps",{trigger:"onChange",valuePropName:"value"});var WE="__@field_split__";function VE(t){return t.map((function(t){return"".concat(Tm(t),":").concat(t)})).join(WE)}var YE=function(){function t(){Cg(this,t),Am(this,"kvs",new Map)}return Mg(t,[{key:"set",value:function(t,e){this.kvs.set(VE(t),e)}},{key:"get",value:function(t){return this.kvs.get(VE(t))}},{key:"update",value:function(t,e){var n=e(this.get(t));n?this.set(t,n):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(VE(t))}},{key:"map",value:function(t){return Zg(this.kvs.entries()).map((function(e){var n=Ug(e,2),r=n[0],i=n[1],o=r.split(WE);return t({key:o.map((function(t){var e=Ug(t.match(/^([^:]*):(.*)$/),3),n=e[1],r=e[2];return"number"===n?Number(r):r})),value:i})}))}},{key:"toJSON",value:function(){var t={};return this.map((function(e){var n=e.key,r=e.value;return t[n.join(".")]=r,null})),t}}]),t}(),qE=["name"],XE=Mg((function t(e){var n=this;Cg(this,t),Am(this,"formHooked",!1),Am(this,"forceRootUpdate",void 0),Am(this,"subscribable",!0),Am(this,"store",{}),Am(this,"fieldEntities",[]),Am(this,"initialValues",{}),Am(this,"callbacks",{}),Am(this,"validateMessages",null),Am(this,"preserve",null),Am(this,"lastValidatePromise",null),Am(this,"getForm",(function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}})),Am(this,"getInternalHooks",(function(t){return t===UC?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Om(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),Am(this,"useSubscribe",(function(t){n.subscribable=t})),Am(this,"prevWithoutPreserves",null),Am(this,"setInitialValues",(function(t,e){if(n.initialValues=t||{},e){var r,i=vb(t,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(e){var n=e.key;i=fb(i,n,hb(t,n))})),n.prevWithoutPreserves=null,n.updateStore(i)}})),Am(this,"destroyForm",(function(t){if(t)n.updateStore({});else{var e=new YE;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e}})),Am(this,"getInitialValue",(function(t){var e=hb(n.initialValues,t);return t.length?vb(e):e})),Am(this,"setCallbacks",(function(t){n.callbacks=t})),Am(this,"setValidateMessages",(function(t){n.validateMessages=t})),Am(this,"setPreserve",(function(t){n.preserve=t})),Am(this,"watchList",[]),Am(this,"registerWatch",(function(t){return n.watchList.push(t),function(){n.watchList=n.watchList.filter((function(e){return e!==t}))}})),Am(this,"notifyWatch",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var e=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach((function(n){n(e,r,t)}))}})),Am(this,"timeoutId",null),Am(this,"warningUnhooked",(function(){"production"===process.env.NODE_ENV||n.timeoutId||"undefined"==typeof window||(n.timeoutId=setTimeout((function(){n.timeoutId=null,n.formHooked||Om(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")})))})),Am(this,"updateStore",(function(t){n.store=t})),Am(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter((function(t){return t.getNamePath().length})):n.fieldEntities})),Am(this,"getFieldsMap",(function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=new YE;return n.getFieldEntities(t).forEach((function(t){var n=t.getNamePath();e.set(n,t)})),e})),Am(this,"getFieldEntitiesForNamePathList",(function(t){if(!t)return n.getFieldEntities(!0);var e=n.getFieldsMap(!0);return t.map((function(t){var n=AE(t);return e.get(n)||{INVALIDATE_NAME_PATH:AE(t)}}))})),Am(this,"getFieldsValue",(function(t,e){var r,i,o;if(n.warningUnhooked(),!0===t||Array.isArray(t)?(r=t,i=e):t&&"object"===Tm(t)&&(o=t.strict,i=t.filter),!0===r&&!i)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),s=[];return a.forEach((function(t){var e,n,a,l,c="INVALIDATE_NAME_PATH"in t?t.INVALIDATE_NAME_PATH:t.getNamePath();if(o){if(null!==(a=(l=t).isList)&&void 0!==a&&a.call(l))return}else if(!r&&null!==(e=(n=t).isListField)&&void 0!==e&&e.call(n))return;if(i){var u="getMeta"in t?t.getMeta():null;i(u)&&s.push(c)}else s.push(c)})),DE(n.store,s.map(AE))})),Am(this,"getFieldValue",(function(t){n.warningUnhooked();var e=AE(t);return hb(n.store,e)})),Am(this,"getFieldsError",(function(t){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(t).map((function(e,n){return e&&!("INVALIDATE_NAME_PATH"in e)?{name:e.getNamePath(),errors:e.getErrors(),warnings:e.getWarnings()}:{name:AE(t[n]),errors:[],warnings:[]}}))})),Am(this,"getFieldError",(function(t){n.warningUnhooked();var e=AE(t);return n.getFieldsError([e])[0].errors})),Am(this,"getFieldWarning",(function(t){n.warningUnhooked();var e=AE(t);return n.getFieldsError([e])[0].warnings})),Am(this,"isFieldsTouched",(function(){n.warningUnhooked();for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i,o=e[0],a=e[1],s=!1;0===e.length?i=null:1===e.length?Array.isArray(o)?(i=o.map(AE),s=!1):(i=null,s=o):(i=o.map(AE),s=a);var l=n.getFieldEntities(!0),c=function(t){return t.isFieldTouched()};if(!i)return s?l.every((function(t){return c(t)||t.isList()})):l.some(c);var u=new YE;i.forEach((function(t){u.set(t,[])})),l.forEach((function(t){var e=t.getNamePath();i.forEach((function(n){n.every((function(t,n){return e[n]===t}))&&u.update(n,(function(e){return[].concat(Zg(e),[t])}))}))}));var d=function(t){return t.some(c)},h=u.map((function(t){return t.value}));return s?h.every(d):h.some(d)})),Am(this,"isFieldTouched",(function(t){return n.warningUnhooked(),n.isFieldsTouched([t])})),Am(this,"isFieldsValidating",(function(t){n.warningUnhooked();var e=n.getFieldEntities();if(!t)return e.some((function(t){return t.isFieldValidating()}));var r=t.map(AE);return e.some((function(t){var e=t.getNamePath();return LE(r,e)&&t.isFieldValidating()}))})),Am(this,"isFieldValidating",(function(t){return n.warningUnhooked(),n.isFieldsValidating([t])})),Am(this,"resetWithFieldInitialValue",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new YE,r=n.getFieldEntities(!0);r.forEach((function(t){var n=t.props.initialValue,r=t.getNamePath();if(void 0!==n){var i=e.get(r)||new Set;i.add({entity:t,value:n}),e.set(r,i)}}));var i;t.entities?i=t.entities:t.namePathList?(i=[],t.namePathList.forEach((function(t){var n,r=e.get(t);r&&(n=i).push.apply(n,Zg(Zg(r).map((function(t){return t.entity}))))}))):i=r,i.forEach((function(r){if(void 0!==r.props.initialValue){var i=r.getNamePath();if(void 0!==n.getInitialValue(i))Om(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=e.get(i);if(o&&o.size>1)Om(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);r.isListField()||t.skipExist&&void 0!==a||n.updateStore(fb(n.store,i,Zg(o)[0].value))}}}}))})),Am(this,"resetFields",(function(t){n.warningUnhooked();var e=n.store;if(!t)return n.updateStore(vb(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(e,null,{type:"reset"}),void n.notifyWatch();var r=t.map(AE);r.forEach((function(t){var e=n.getInitialValue(t);n.updateStore(fb(n.store,t,e))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(e,r,{type:"reset"}),n.notifyWatch(r)})),Am(this,"setFields",(function(t){n.warningUnhooked();var e=n.store,r=[];t.forEach((function(t){var i=t.name,o=hv(t,qE),a=AE(i);r.push(a),"value"in o&&n.updateStore(fb(n.store,a,o.value)),n.notifyObservers(e,[a],{type:"setField",data:t})})),n.notifyWatch(r)})),Am(this,"getFields",(function(){return n.getFieldEntities(!0).map((function(t){var e=t.getNamePath(),r=Lm(Lm({},t.getMeta()),{},{name:e,value:n.getFieldValue(e)});return Object.defineProperty(r,"originRCField",{value:!0}),r}))})),Am(this,"initEntityValue",(function(t){var e=t.props.initialValue;if(void 0!==e){var r=t.getNamePath();void 0===hb(n.store,r)&&n.updateStore(fb(n.store,r,e))}})),Am(this,"isMergedPreserve",(function(t){var e=void 0!==t?t:n.preserve;return null==e||e})),Am(this,"registerField",(function(t){n.fieldEntities.push(t);var e=t.getNamePath();if(n.notifyWatch([e]),void 0!==t.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[t],skipExist:!0}),n.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(e){return e!==t})),!n.isMergedPreserve(i)&&(!r||o.length>1)){var a=r?void 0:n.getInitialValue(e);if(e.length&&n.getFieldValue(e)!==a&&n.fieldEntities.every((function(t){return!IE(t.getNamePath(),e)}))){var s=n.store;n.updateStore(fb(s,e,a,!0)),n.notifyObservers(s,[e],{type:"remove"}),n.triggerDependenciesUpdate(s,e)}}n.notifyWatch([e])}})),Am(this,"dispatch",(function(t){switch(t.type){case"updateValue":var e=t.namePath,r=t.value;n.updateValue(e,r);break;case"validateField":var i=t.namePath,o=t.triggerName;n.validateFields([i],{triggerName:o})}})),Am(this,"notifyObservers",(function(t,e,r){if(n.subscribable){var i=Lm(Lm({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(t,e,i)}))}else n.forceRootUpdate()})),Am(this,"triggerDependenciesUpdate",(function(t,e){var r=n.getDependencyChildrenFields(e);return r.length&&n.validateFields(r),n.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[e].concat(Zg(r))}),r})),Am(this,"updateValue",(function(t,e){var r=AE(t),i=n.store;n.updateStore(fb(n.store,r,e)),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(i,r),a=n.callbacks.onValuesChange;a&&a(DE(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Zg(o)))})),Am(this,"setFieldsValue",(function(t){n.warningUnhooked();var e=n.store;if(t){var r=vb(n.store,t);n.updateStore(r)}n.notifyObservers(e,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()})),Am(this,"setFieldValue",(function(t,e){n.setFields([{name:t,value:e,errors:[],warnings:[]}])})),Am(this,"getDependencyChildrenFields",(function(t){var e=new Set,r=[],i=new YE;n.getFieldEntities().forEach((function(t){(t.props.dependencies||[]).forEach((function(e){var n=AE(e);i.update(n,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return e.add(t),e}))}))}));return function t(n){(i.get(n)||new Set).forEach((function(n){if(!e.has(n)){e.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),t(i))}}))}(t),r})),Am(this,"triggerOnFieldsChange",(function(t,e){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(e){var o=new YE;e.forEach((function(t){var e=t.name,n=t.errors;o.set(e,n)})),i.forEach((function(t){t.errors=o.get(t.name)||t.errors}))}var a=i.filter((function(e){var n=e.name;return LE(t,n)}));a.length&&r(a,i)}})),Am(this,"validateFields",(function(t,e){var r,i;n.warningUnhooked(),Array.isArray(t)||"string"==typeof t||"string"==typeof e?(r=t,i=e):i=t;var o=!!r,a=o?r.map(AE):[],s=[],l=String(Date.now()),c=new Set,u=i||{},d=u.recursive,h=u.dirty;n.getFieldEntities(!0).forEach((function(t){if(o||a.push(t.getNamePath()),t.props.rules&&t.props.rules.length&&(!h||t.isFieldDirty())){var e=t.getNamePath();if(c.add(e.join(l)),!o||LE(a,e,d)){var r=t.validateRules(Lm({validateMessages:Lm(Lm({},SE),n.validateMessages)},i));s.push(r.then((function(){return{name:e,errors:[],warnings:[]}})).catch((function(t){var n,r=[],i=[];return null===(n=t.forEach)||void 0===n||n.call(t,(function(t){var e=t.rule.warningOnly,n=t.errors;e?i.push.apply(i,Zg(n)):r.push.apply(r,Zg(n))})),r.length?Promise.reject({name:e,errors:r,warnings:i}):{name:e,errors:r,warnings:i}})))}}}));var p=function(t){var e=!1,n=t.length,r=[];return t.length?new Promise((function(i,o){t.forEach((function(t,a){t.catch((function(t){return e=!0,t})).then((function(t){n-=1,r[a]=t,n>0||(e&&o(r),i(r))}))}))})):Promise.resolve([])}(s);n.lastValidatePromise=p,p.catch((function(t){return t})).then((function(t){var e=t.map((function(t){return t.name}));n.notifyObservers(n.store,e,{type:"validateFinish"}),n.triggerOnFieldsChange(e,t)}));var f=p.then((function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])})).catch((function(t){var e=t.filter((function(t){return t&&t.errors.length}));return Promise.reject({values:n.getFieldsValue(a),errorFields:e,outOfDate:n.lastValidatePromise!==p})}));f.catch((function(t){return t}));var m=a.filter((function(t){return c.has(t.join(l))}));return n.triggerOnFieldsChange(m),f})),Am(this,"submit",(function(){n.warningUnhooked(),n.validateFields().then((function(t){var e=n.callbacks.onFinish;if(e)try{e(t)}catch(t){console.error(t)}})).catch((function(t){var e=n.callbacks.onFinishFailed;e&&e(t)}))})),this.forceRootUpdate=e}));function UE(t){var e=r.useRef(),n=Ug(r.useState({}),2)[1];if(!e.current)if(t)e.current=t;else{var i=new XE((function(){n({})}));e.current=i.getForm()}return[e.current]}var ZE=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),GE=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],KE=function(t,e){var n=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=void 0===c?"form":c,d=t.validateMessages,h=t.validateTrigger,p=void 0===h?"onChange":h,f=t.onValuesChange,m=t.onFieldsChange,g=t.onFinish,v=t.onFinishFailed,y=t.clearOnDestroy,b=hv(t,GE),x=r.useRef(null),_=r.useContext(ZE),w=Ug(UE(a),1)[0],S=w.getInternalHooks(UC),k=S.useSubscribe,C=S.setInitialValues,E=S.setCallbacks,M=S.setValidateMessages,P=S.setPreserve,O=S.destroyForm;r.useImperativeHandle(e,(function(){return Lm(Lm({},w),{},{nativeElement:x.current})})),r.useEffect((function(){return _.registerForm(n,w),function(){_.unregisterForm(n)}}),[_,w,n]),M(Lm(Lm({},_.validateMessages),d)),E({onValuesChange:f,onFieldsChange:function(t){if(_.triggerFormChange(n,t),m){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];m.apply(void 0,[t].concat(r))}},onFinish:function(t){_.triggerFormFinish(n,t),g&&g(t)},onFinishFailed:v}),P(s);var T,N=r.useRef(null);C(i,!N.current),N.current||(N.current=!0),r.useEffect((function(){return function(){return O(y)}}),[]);var A="function"==typeof l;A?T=l(w.getFieldsValue(!0),w):T=l;k(!A);var D=r.useRef();r.useEffect((function(){(function(t,e){if(t===e)return!0;if(!t&&e||t&&!e)return!1;if(!t||!e||"object"!==Tm(t)||"object"!==Tm(e))return!1;var n=Object.keys(t),r=Object.keys(e);return Zg(new Set([].concat(n,r))).every((function(n){var r=t[n],i=e[n];return"function"==typeof r&&"function"==typeof i||r===i}))})(D.current||[],o||[])||w.setFields(o||[]),D.current=o}),[o,w]);var L=r.useMemo((function(){return Lm(Lm({},w),{},{validateTrigger:p})}),[w,p]),I=r.createElement(KC.Provider,{value:null},r.createElement(GC.Provider,{value:L},T));return!1===u?I:r.createElement(u,gm({},b,{ref:x,onSubmit:function(t){t.preventDefault(),t.stopPropagation(),w.submit()},onReset:function(t){var e;t.preventDefault(),w.resetFields(),null===(e=b.onReset)||void 0===e||e.call(b,t)}}),I)};function JE(t){try{return JSON.stringify(t)}catch(t){return Math.random()}}var QE="production"!==process.env.NODE_ENV?function(t){var e=t.join("__RC_FIELD_FORM_SPLIT__");Om(s(e).current===e,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};var tM=r.forwardRef(KE);tM.FormProvider=function(t){var e=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,a=r.useContext(ZE),s=r.useRef({});return r.createElement(ZE.Provider,{value:Lm(Lm({},a),{},{validateMessages:Lm(Lm({},a.validateMessages),e),triggerFormChange:function(t,e){n&&n(t,{changedFields:e,forms:s.current}),a.triggerFormChange(t,e)},triggerFormFinish:function(t,e){i&&i(t,{values:e,forms:s.current}),a.triggerFormFinish(t,e)},registerForm:function(t,e){t&&(s.current=Lm(Lm({},s.current),{},Am({},t,e))),a.registerForm(t,e)},unregisterForm:function(t){var e=Lm({},s.current);delete e[t],s.current=e,a.unregisterForm(t)}})},o)},tM.Field=HE,tM.List=function(t){var e=t.name,n=t.initialValue,i=t.children,o=t.rules,a=t.validateTrigger,s=t.isListField,l=r.useContext(GC),c=r.useContext(KC),u=r.useRef({keys:[],id:0}).current,d=r.useMemo((function(){var t=AE(l.prefixName)||[];return[].concat(Zg(t),Zg(AE(e)))}),[l.prefixName,e]),h=r.useMemo((function(){return Lm(Lm({},l),{},{prefixName:d})}),[l,d]),p=r.useMemo((function(){return{getKey:function(t){var e=d.length,n=t[e];return[u.keys[n],t.slice(e+1)]}}}),[d]);return"function"!=typeof i?(Om(!1,"Form.List only accepts function as children."),null):r.createElement(KC.Provider,{value:p},r.createElement(GC.Provider,{value:h},r.createElement(HE,{name:[],shouldUpdate:function(t,e,n){return"internal"!==n.source&&t!==e},rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:null!=s?s:!!c},(function(t,e){var n=t.value,r=void 0===n?[]:n,o=t.onChange,a=l.getFieldValue,s=function(){return a(d||[])||[]},c={add:function(t,e){var n=s();e>=0&&e<=n.length?(u.keys=[].concat(Zg(u.keys.slice(0,e)),[u.id],Zg(u.keys.slice(e))),o([].concat(Zg(n.slice(0,e)),[t],Zg(n.slice(e))))):("production"!==process.env.NODE_ENV&&(e<0||e>n.length)&&Om(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(Zg(u.keys),[u.id]),o([].concat(Zg(n),[t]))),u.id+=1},remove:function(t){var e=s(),n=new Set(Array.isArray(t)?t:[t]);n.size<=0||(u.keys=u.keys.filter((function(t,e){return!n.has(e)})),o(e.filter((function(t,e){return!n.has(e)}))))},move:function(t,e){if(t!==e){var n=s();t<0||t>=n.length||e<0||e>=n.length||(u.keys=RE(u.keys,t,e),o(RE(n,t,e)))}}},h=r||[];return Array.isArray(h)||(h=[],"production"!==process.env.NODE_ENV&&Om(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),i(h.map((function(t,e){var n=u.keys[e];return void 0===n&&(u.keys[e]=u.id,n=u.keys[e],u.id+=1),{name:e,key:n,isListField:!0}})),c,e)}))))},tM.useForm=UE,tM.useWatch=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],a=void 0===i?{}:i,c=function(t){return t&&!!t._init}(a)?{form:a}:a,d=c.form,h=Ug(u(),2),f=h[0],m=h[1],g=o((function(){return JE(f)}),[f]),v=s(g);v.current=g;var y=p(GC),b=d||y,x=b&&b._init;"production"!==process.env.NODE_ENV&&Om(2===e.length&&!d||x,"useWatch requires a form instance since it can not auto detect from context.");var _=AE(r),w=s(_);return w.current=_,QE(_),l((function(){if(x){var t=b.getFieldsValue,e=(0,b.getInternalHooks)(UC).registerWatch,n=function(t,e){var n=c.preserve?e:t;return"function"==typeof r?r(n):hb(n,w.current)},i=e((function(t,e){var r=n(t,e),i=JE(r);v.current!==i&&(v.current=i,m(r))})),o=n(t(),t(!0));return f!==o&&m(o),i}}),[x]),f};const eM=r.createContext({});"production"!==process.env.NODE_ENV&&(eM.displayName="FormItemInputContext");const nM=t=>{let{children:e,status:n,override:i}=t;const o=r.useContext(eM),a=r.useMemo((()=>{const t=Object.assign({},o);return i&&delete t.isFormItemInput,n&&(delete t.status,delete t.hasFeedback,delete t.feedbackIcon),t}),[n,i,o]);return r.createElement(eM.Provider,{value:a},e)},rM=r.createContext(void 0);var iM=t=>{const{space:e,form:n,children:r}=t;if(null==r)return null;let o=r;return n&&(o=i.createElement(nM,{override:!0,status:!0},o)),e&&(o=i.createElement(VS,null,o)),o};var oM=(t,e,n,i,o)=>function(t){return e=>r.createElement(Cw,{theme:{token:{motion:!1,zIndexPopupBase:0}}},r.createElement(t,Object.assign({},e)))}((a=>{const{prefixCls:s,style:l}=a,c=r.useRef(null),[u,d]=r.useState(0),[h,p]=r.useState(0),[f,m]=qx(!1,{value:a.open}),{getPrefixCls:g}=r.useContext(Cx),v=g(i||"select",s);r.useEffect((()=>{if(m(!0),"undefined"!=typeof ResizeObserver){const t=new ResizeObserver((t=>{const e=t[0].target;d(e.offsetHeight+8),p(e.offsetWidth)})),e=setInterval((()=>{var n;const r=o?`.${o(v)}`:`.${v}-dropdown`,i=null===(n=c.current)||void 0===n?void 0:n.querySelector(r);i&&(clearInterval(e),t.observe(i))}),10);return()=>{clearInterval(e),t.disconnect()}}}),[]);let y=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:f,visible:f,getPopupContainer:()=>c.current});n&&(y=n(y)),e&&Object.assign(y,{[e]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:h};return r.createElement("div",{ref:c,style:b},r.createElement(t,Object.assign({},y)))})),aM=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],sM=void 0;function lM(t,e){var n=t.prefixCls,i=t.invalidate,o=t.item,a=t.renderItem,s=t.responsive,l=t.responsiveDisabled,c=t.registerSize,u=t.itemKey,d=t.className,h=t.style,p=t.children,f=t.display,m=t.order,g=t.component,v=void 0===g?"div":g,y=hv(t,aM),b=s&&!f;function x(t){c(u,t)}r.useEffect((function(){return function(){x(null)}}),[]);var _,w=a&&o!==sM?a(o,{index:m}):p;i||(_={opacity:b?0:1,height:b?0:sM,overflowY:b?"hidden":sM,order:s?m:sM,pointerEvents:b?"none":sM,position:b?"absolute":sM});var S={};b&&(S["aria-hidden"]=!0);var k=r.createElement(v,gm({className:mm(!i&&n,d),style:Lm(Lm({},_),h)},S,y,{ref:e}),w);return s&&(k=r.createElement(Fg,{onResize:function(t){x(t.offsetWidth)},disabled:l},k)),k}var cM=r.forwardRef(lM);function uM(){var t=r.useRef(null);return function(e){t.current||(t.current=[],function(t){if("undefined"==typeof MessageChannel)Yg(t);else{var e=new MessageChannel;e.port1.onmessage=function(){return t()},e.port2.postMessage(void 0)}}((function(){P((function(){t.current.forEach((function(t){t()})),t.current=null}))}))),t.current.push(e)}}function dM(t,e){var n=Ug(r.useState(e),2),i=n[0],o=n[1];return[i,Hx((function(e){t((function(){o(e)}))}))]}cM.displayName="Item";var hM=i.createContext(null),pM=["component"],fM=["className"],mM=["className"],gM=function(t,e){var n=r.useContext(hM);if(!n){var i=t.component,o=void 0===i?"div":i,a=hv(t,pM);return r.createElement(o,gm({},a,{ref:e}))}var s=n.className,l=hv(n,fM),c=t.className,u=hv(t,mM);return r.createElement(hM.Provider,{value:null},r.createElement(cM,gm({ref:e,className:mm(s,c)},l,u)))},vM=r.forwardRef(gM);vM.displayName="RawItem";var yM=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],bM="responsive",xM="invalidate";function _M(t){return"+ ".concat(t.length," ...")}function wM(t,e){var n=t.prefixCls,i=void 0===n?"rc-overflow":n,a=t.data,s=void 0===a?[]:a,l=t.renderItem,d=t.renderRawItem,h=t.itemKey,p=t.itemWidth,f=void 0===p?10:p,m=t.ssr,g=t.style,v=t.className,y=t.maxCount,b=t.renderRest,x=t.renderRawRest,_=t.suffix,w=t.component,S=void 0===w?"div":w,k=t.itemComponent,C=t.onVisibleChange,E=hv(t,yM),M="full"===m,P=uM(),O=Ug(dM(P,null),2),T=O[0],N=O[1],A=T||0,D=Ug(dM(P,new Map),2),L=D[0],I=D[1],z=Ug(dM(P,0),2),R=z[0],F=z[1],$=Ug(dM(P,0),2),j=$[0],B=$[1],H=Ug(dM(P,0),2),W=H[0],V=H[1],Y=Ug(u(null),2),q=Y[0],X=Y[1],U=Ug(u(null),2),Z=U[0],G=U[1],K=r.useMemo((function(){return null===Z&&M?Number.MAX_SAFE_INTEGER:Z||0}),[Z,T]),J=Ug(u(!1),2),Q=J[0],tt=J[1],et="".concat(i,"-item"),nt=Math.max(R,j),rt=y===bM,it=s.length&&rt,ot=y===xM,at=it||"number"==typeof y&&s.length>y,st=o((function(){var t=s;return it?t=null===T&&M?s:s.slice(0,Math.min(s.length,A/f)):"number"==typeof y&&(t=s.slice(0,y)),t}),[s,f,T,y,it]),lt=o((function(){return it?s.slice(K+1):s.slice(st.length)}),[s,st,it,K]),ct=c((function(t,e){var n;return"function"==typeof h?h(t):null!==(n=h&&(null==t?void 0:t[h]))&&void 0!==n?n:e}),[h]),ut=c(l||function(t){return t},[l]);function dt(t,e,n){(Z!==t||void 0!==e&&e!==q)&&(G(t),n||(tt(t<s.length-1),null==C||C(t)),void 0!==e&&X(e))}function ht(t,e){I((function(n){var r=new Map(n);return null===e?r.delete(t):r.set(t,e),r}))}function pt(t){return L.get(ct(st[t],t))}Rv((function(){if(A&&"number"==typeof nt&&st){var t=W,e=st.length,n=e-1;if(!e)return void dt(0,null);for(var r=0;r<e;r+=1){var i=pt(r);if(M&&(i=i||0),void 0===i){dt(r-1,void 0,!0);break}if(t+=i,0===n&&t<=A||r===n-1&&t+pt(n)<=A){dt(n,null);break}if(t+nt>A){dt(r-1,t-i-W+j);break}}_&&pt(0)+W>A&&X(null)}}),[A,L,j,W,ct,st]);var ft=Q&&!!lt.length,mt={};null!==q&&it&&(mt={position:"absolute",left:q,top:0});var gt={prefixCls:et,responsive:it,component:k,invalidate:ot},vt=d?function(t,e){var n=ct(t,e);return r.createElement(hM.Provider,{key:n,value:Lm(Lm({},gt),{},{order:e,item:t,itemKey:n,registerSize:ht,display:e<=K})},d(t,e))}:function(t,e){var n=ct(t,e);return r.createElement(cM,gm({},gt,{order:e,key:n,item:t,renderItem:ut,itemKey:n,registerSize:ht,display:e<=K}))},yt={order:ft?K:Number.MAX_SAFE_INTEGER,className:"".concat(et,"-rest"),registerSize:function(t,e){B(e),F(j)},display:ft},bt=b||_M,xt=x?r.createElement(hM.Provider,{value:Lm(Lm({},gt),yt)},x(lt)):r.createElement(cM,gm({},gt,yt),"function"==typeof bt?bt(lt):bt),_t=r.createElement(S,gm({className:mm(!ot&&i,v),style:g,ref:e},E),st.map(vt),at?xt:null,_&&r.createElement(cM,gm({},gt,{responsive:rt,responsiveDisabled:!it,order:K,className:"".concat(et,"-suffix"),registerSize:function(t,e){V(e)},display:!0,style:mt}),_));return rt?r.createElement(Fg,{onResize:function(t,e){N(e.clientWidth)},disabled:!it},_t):_t}var SM=r.forwardRef(wM);function kM(t){var e=t.prefixCls,n=t.align,i=t.arrow,o=t.arrowPos,a=i||{},s=a.className,l=a.content,c=o.x,u=void 0===c?0:c,d=o.y,h=void 0===d?0:d,p=r.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(!1!==n.autoArrow){var m=n.points[0],g=n.points[1],v=m[0],y=m[1],b=g[0],x=g[1];v!==b&&["t","b"].includes(v)?"t"===v?f.top=0:f.bottom=0:f.top=h,y!==x&&["l","r"].includes(y)?"l"===y?f.left=0:f.right=0:f.left=u}return r.createElement("div",{ref:p,className:mm("".concat(e,"-arrow"),s),style:f},l)}function CM(t){var e=t.prefixCls,n=t.open,i=t.zIndex,o=t.mask,a=t.motion;return o?r.createElement(aw,gm({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(t){var n=t.className;return r.createElement("div",{style:{zIndex:i},className:mm("".concat(e,"-mask"),n)})})):null}SM.displayName="Overflow",SM.Item=vM,SM.RESPONSIVE=bM,SM.INVALIDATE=xM;var EM=r.memo((function(t){return t.children}),(function(t,e){return e.cache}));"production"!==process.env.NODE_ENV&&(EM.displayName="PopupContent");var MM=r.forwardRef((function(t,e){var n=t.popup,i=t.className,o=t.prefixCls,a=t.style,s=t.target,l=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,h=t.onClick,p=t.mask,f=t.arrow,m=t.arrowPos,g=t.align,v=t.motion,y=t.maskMotion,b=t.forceRender,x=t.getPopupContainer,_=t.autoDestroy,w=t.portal,S=t.zIndex,k=t.onMouseEnter,C=t.onMouseLeave,E=t.onPointerEnter,M=t.onPointerDownCapture,P=t.ready,O=t.offsetX,T=t.offsetY,N=t.offsetR,A=t.offsetB,D=t.onAlign,L=t.onPrepare,I=t.stretch,z=t.targetWidth,R=t.targetHeight,F="function"==typeof n?n():n,$=c||u,j=(null==x?void 0:x.length)>0,B=Ug(r.useState(!x||!j),2),H=B[0],W=B[1];if(Rv((function(){!H&&j&&s&&W(!0)}),[H,j,s]),!H)return null;var V="auto",Y={left:"-1000vw",top:"-1000vh",right:V,bottom:V};if(P||!c){var q,X=g.points,U=g.dynamicInset||(null===(q=g._experimental)||void 0===q?void 0:q.dynamicInset),Z=U&&"r"===X[0][1],G=U&&"b"===X[0][0];Z?(Y.right=N,Y.left=V):(Y.left=O,Y.right=V),G?(Y.bottom=A,Y.top=V):(Y.top=T,Y.bottom=V)}var K={};return I&&(I.includes("height")&&R?K.height=R:I.includes("minHeight")&&R&&(K.minHeight=R),I.includes("width")&&z?K.width=z:I.includes("minWidth")&&z&&(K.minWidth=z)),c||(K.pointerEvents="none"),r.createElement(w,{open:b||$,getContainer:x&&function(){return x(s)},autoDestroy:_},r.createElement(CM,{prefixCls:o,open:c,zIndex:S,mask:p,motion:y}),r.createElement(Fg,{onResize:D,disabled:!c},(function(t){return r.createElement(aw,gm({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:b,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:L,onEnterPrepare:L,visible:c,onVisibleChanged:function(t){var e;null==v||null===(e=v.onVisibleChanged)||void 0===e||e.call(v,t),l(t)}}),(function(n,s){var l=n.className,u=n.style,p=mm(o,l,i);return r.createElement("div",{ref:Xm(t,e,s),className:p,style:Lm(Lm(Lm(Lm({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},Y),K),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:k,onMouseLeave:C,onPointerEnter:E,onClick:h,onPointerDownCapture:M},f&&r.createElement(kM,{prefixCls:o,arrow:f,arrowPos:m,align:g}),r.createElement(EM,{cache:!c&&!d},F))}))})))}));"production"!==process.env.NODE_ENV&&(MM.displayName="Popup");var PM=r.forwardRef((function(t,e){var n=t.children,i=t.getTriggerDOMNode,o=Zm(n),a=r.useCallback((function(t){qm(e,i?i(t):t)}),[i]),s=Um(a,Km(n));return o?r.cloneElement(n,{ref:s}):n}));"production"!==process.env.NODE_ENV&&(PM.displayName="TriggerWrapper");var OM=r.createContext(null);function TM(t){return t?Array.isArray(t)?t:[t]:[]}function NM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function AM(t,e,n,r){return e||(n?{motionName:"".concat(t,"-").concat(n)}:r?{motionName:r}:null)}function DM(t){return t.ownerDocument.defaultView}function LM(t){for(var e=[],n=null==t?void 0:t.parentElement,r=["hidden","scroll","clip","auto"];n;){var i=DM(n).getComputedStyle(n);[i.overflowX,i.overflowY,i.overflow].some((function(t){return r.includes(t)}))&&e.push(n),n=n.parentElement}return e}function IM(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(t)?e:t}function zM(t){return IM(parseFloat(t),0)}function RM(t,e){var n=Lm({},t);return(e||[]).forEach((function(t){if(!(t instanceof HTMLBodyElement||t instanceof HTMLHtmlElement)){var e=DM(t).getComputedStyle(t),r=e.overflow,i=e.overflowClipMargin,o=e.borderTopWidth,a=e.borderBottomWidth,s=e.borderLeftWidth,l=e.borderRightWidth,c=t.getBoundingClientRect(),u=t.offsetHeight,d=t.clientHeight,h=t.offsetWidth,p=t.clientWidth,f=zM(o),m=zM(a),g=zM(s),v=zM(l),y=IM(Math.round(c.width/h*1e3)/1e3),b=IM(Math.round(c.height/u*1e3)/1e3),x=(h-p-g-v)*y,_=(u-d-f-m)*b,w=f*b,S=m*b,k=g*y,C=v*y,E=0,M=0;if("clip"===r){var P=zM(i);E=P*y,M=P*b}var O=c.x+k-E,T=c.y+w-M,N=O+c.width+2*E-k-C-x,A=T+c.height+2*M-w-S-_;n.left=Math.max(n.left,O),n.top=Math.max(n.top,T),n.right=Math.min(n.right,N),n.bottom=Math.min(n.bottom,A)}})),n}function FM(t){var e="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=e.match(/^(.*)\%$/);return n?t*(parseFloat(n[1])/100):parseFloat(e)}function $M(t,e){var n=Ug(e||[],2),r=n[0],i=n[1];return[FM(t.width,r),FM(t.height,i)]}function jM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function BM(t,e){var n,r=e[0],i=e[1];return n="t"===r?t.y:"b"===r?t.y+t.height:t.y+t.height/2,{x:"l"===i?t.x:"r"===i?t.x+t.width:t.x+t.width/2,y:n}}function HM(t,e){var n={t:"b",b:"t",l:"r",r:"l"};return t.map((function(t,r){return r===e?n[t]||"c":t})).join("")}var WM=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];var VM=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:BC,e=r.forwardRef((function(e,n){var i=e.prefixCls,o=void 0===i?"rc-trigger-popup":i,a=e.children,s=e.action,l=void 0===s?"hover":s,c=e.showAction,u=e.hideAction,d=e.popupVisible,h=e.defaultPopupVisible,p=e.onPopupVisibleChange,f=e.afterPopupVisibleChange,m=e.mouseEnterDelay,g=e.mouseLeaveDelay,v=void 0===g?.1:g,y=e.focusDelay,b=e.blurDelay,x=e.mask,_=e.maskClosable,w=void 0===_||_,S=e.getPopupContainer,k=e.forceRender,C=e.autoDestroy,E=e.destroyPopupOnHide,M=e.popup,P=e.popupClassName,O=e.popupStyle,T=e.popupPlacement,N=e.builtinPlacements,A=void 0===N?{}:N,D=e.popupAlign,L=e.zIndex,I=e.stretch,z=e.getPopupClassNameFromAlign,R=e.fresh,F=e.alignPoint,$=e.onPopupClick,j=e.onPopupAlign,B=e.arrow,H=e.popupMotion,W=e.maskMotion,V=e.popupTransitionName,Y=e.popupAnimation,q=e.maskTransitionName,X=e.maskAnimation,U=e.className,Z=e.getTriggerDOMNode,G=hv(e,WM),K=C||E||!1,J=Ug(r.useState(!1),2),Q=J[0],tt=J[1];Rv((function(){tt(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==t?void 0:t.substr(0,4))}())}),[]);var et=r.useRef({}),nt=r.useContext(OM),rt=r.useMemo((function(){return{registerSubPopup:function(t,e){et.current[t]=e,null==nt||nt.registerSubPopup(t,e)}}}),[nt]),it=VC(),ot=Ug(r.useState(null),2),at=ot[0],st=ot[1],lt=r.useRef(null),ct=Hx((function(t){lt.current=t,Im(t)&&at!==t&&st(t),null==nt||nt.registerSubPopup(it,t)})),ut=Ug(r.useState(null),2),dt=ut[0],ht=ut[1],pt=r.useRef(null),ft=Hx((function(t){Im(t)&&dt!==t&&(ht(t),pt.current=t)})),mt=r.Children.only(a),gt=(null==mt?void 0:mt.props)||{},vt={},yt=Hx((function(t){var e,n,r=dt;return(null==r?void 0:r.contains(t))||(null===(e=Mw(r))||void 0===e?void 0:e.host)===t||t===r||(null==at?void 0:at.contains(t))||(null===(n=Mw(at))||void 0===n?void 0:n.host)===t||t===at||Object.values(et.current).some((function(e){return(null==e?void 0:e.contains(t))||t===e}))})),bt=AM(o,H,Y,V),xt=AM(o,W,X,q),_t=Ug(r.useState(h||!1),2),wt=_t[0],St=_t[1],kt=null!=d?d:wt,Ct=Hx((function(t){void 0===d&&St(t)}));Rv((function(){St(d||!1)}),[d]);var Et=r.useRef(kt);Et.current=kt;var Mt=r.useRef([]);Mt.current=[];var Pt=Hx((function(t){var e;Ct(t),(null!==(e=Mt.current[Mt.current.length-1])&&void 0!==e?e:kt)!==t&&(Mt.current.push(t),null==p||p(t))})),Ot=r.useRef(),Tt=function(){clearTimeout(Ot.current)},Nt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Tt(),0===e?Pt(t):Ot.current=setTimeout((function(){Pt(t)}),1e3*e)};r.useEffect((function(){return Tt}),[]);var At=Ug(r.useState(!1),2),Dt=At[0],Lt=At[1];Rv((function(t){t&&!kt||Lt(!0)}),[kt]);var It=Ug(r.useState(null),2),zt=It[0],Rt=It[1],Ft=Ug(r.useState(null),2),$t=Ft[0],jt=Ft[1],Bt=function(t){jt([t.clientX,t.clientY])},Ht=function(t,e,n,i,o,a,s){var l=Ug(r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[i]||{}}),2),c=l[0],u=l[1],d=r.useRef(0),h=r.useMemo((function(){return e?LM(e):[]}),[e]),p=r.useRef({});t||(p.current={});var f=Hx((function(){if(e&&n&&t){var r,l,c,d,f,m=e,g=m.ownerDocument,v=DM(m).getComputedStyle(m),y=v.width,b=v.height,x=v.position,_=m.style.left,w=m.style.top,S=m.style.right,k=m.style.bottom,C=m.style.overflow,E=Lm(Lm({},o[i]),a),M=g.createElement("div");if(null===(r=m.parentElement)||void 0===r||r.appendChild(M),M.style.left="".concat(m.offsetLeft,"px"),M.style.top="".concat(m.offsetTop,"px"),M.style.position=x,M.style.height="".concat(m.offsetHeight,"px"),M.style.width="".concat(m.offsetWidth,"px"),m.style.left="0",m.style.top="0",m.style.right="auto",m.style.bottom="auto",m.style.overflow="hidden",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var P,O,T=n.getBoundingClientRect();T.x=null!==(P=T.x)&&void 0!==P?P:T.left,T.y=null!==(O=T.y)&&void 0!==O?O:T.top,f={x:T.x,y:T.y,width:T.width,height:T.height}}var N=m.getBoundingClientRect();N.x=null!==(l=N.x)&&void 0!==l?l:N.left,N.y=null!==(c=N.y)&&void 0!==c?c:N.top;var A=g.documentElement,D=A.clientWidth,L=A.clientHeight,I=A.scrollWidth,z=A.scrollHeight,R=A.scrollTop,F=A.scrollLeft,$=N.height,j=N.width,B=f.height,H=f.width,W={left:0,top:0,right:D,bottom:L},V={left:-F,top:-R,right:I-F,bottom:z-R},Y=E.htmlRegion,q="visible",X="visibleFirst";"scroll"!==Y&&Y!==X&&(Y=q);var U=Y===X,Z=RM(V,h),G=RM(W,h),K=Y===q?G:Z,J=U?G:K;m.style.left="auto",m.style.top="auto",m.style.right="0",m.style.bottom="0";var Q=m.getBoundingClientRect();m.style.left=_,m.style.top=w,m.style.right=S,m.style.bottom=k,m.style.overflow=C,null===(d=m.parentElement)||void 0===d||d.removeChild(M);var tt=IM(Math.round(j/parseFloat(y)*1e3)/1e3),et=IM(Math.round($/parseFloat(b)*1e3)/1e3);if(0===tt||0===et||Im(n)&&!TS(n))return;var nt=E.offset,rt=E.targetOffset,it=Ug($M(N,nt),2),ot=it[0],at=it[1],st=Ug($M(f,rt),2),lt=st[0],ct=st[1];f.x-=lt,f.y-=ct;var ut=Ug(E.points||[],2),dt=ut[0],ht=jM(ut[1]),pt=jM(dt),ft=BM(f,ht),mt=BM(N,pt),gt=Lm({},E),vt=ft.x-mt.x+ot,yt=ft.y-mt.y+at;function de(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:K,r=N.x+t,i=N.y+e,o=r+j,a=i+$,s=Math.max(r,n.left),l=Math.max(i,n.top),c=Math.min(o,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-s)*(u-l))}var bt,xt,_t,wt,St=de(vt,yt),kt=de(vt,yt,G),Ct=BM(f,["t","l"]),Et=BM(N,["t","l"]),Mt=BM(f,["b","r"]),Pt=BM(N,["b","r"]),Ot=E.overflow||{},Tt=Ot.adjustX,Nt=Ot.adjustY,At=Ot.shiftX,Dt=Ot.shiftY,Lt=function(t){return"boolean"==typeof t?t:t>=0};function he(){bt=N.y+yt,xt=bt+$,_t=N.x+vt,wt=_t+j}he();var It=Lt(Nt),zt=pt[0]===ht[0];if(It&&"t"===pt[0]&&(xt>J.bottom||p.current.bt)){var Rt=yt;zt?Rt-=$-B:Rt=Ct.y-Pt.y-at;var Ft=de(vt,Rt),$t=de(vt,Rt,G);Ft>St||Ft===St&&(!U||$t>=kt)?(p.current.bt=!0,yt=Rt,at=-at,gt.points=[HM(pt,0),HM(ht,0)]):p.current.bt=!1}if(It&&"b"===pt[0]&&(bt<J.top||p.current.tb)){var jt=yt;zt?jt+=$-B:jt=Mt.y-Et.y-at;var Bt=de(vt,jt),Ht=de(vt,jt,G);Bt>St||Bt===St&&(!U||Ht>=kt)?(p.current.tb=!0,yt=jt,at=-at,gt.points=[HM(pt,0),HM(ht,0)]):p.current.tb=!1}var Wt=Lt(Tt),Vt=pt[1]===ht[1];if(Wt&&"l"===pt[1]&&(wt>J.right||p.current.rl)){var Yt=vt;Vt?Yt-=j-H:Yt=Ct.x-Pt.x-ot;var qt=de(Yt,yt),Xt=de(Yt,yt,G);qt>St||qt===St&&(!U||Xt>=kt)?(p.current.rl=!0,vt=Yt,ot=-ot,gt.points=[HM(pt,1),HM(ht,1)]):p.current.rl=!1}if(Wt&&"r"===pt[1]&&(_t<J.left||p.current.lr)){var Ut=vt;Vt?Ut+=j-H:Ut=Mt.x-Et.x-ot;var Zt=de(Ut,yt),Gt=de(Ut,yt,G);Zt>St||Zt===St&&(!U||Gt>=kt)?(p.current.lr=!0,vt=Ut,ot=-ot,gt.points=[HM(pt,1),HM(ht,1)]):p.current.lr=!1}he();var Kt=!0===At?0:At;"number"==typeof Kt&&(_t<G.left&&(vt-=_t-G.left-ot,f.x+H<G.left+Kt&&(vt+=f.x-G.left+H-Kt)),wt>G.right&&(vt-=wt-G.right-ot,f.x>G.right-Kt&&(vt+=f.x-G.right+Kt)));var Jt=!0===Dt?0:Dt;"number"==typeof Jt&&(bt<G.top&&(yt-=bt-G.top-at,f.y+B<G.top+Jt&&(yt+=f.y-G.top+B-Jt)),xt>G.bottom&&(yt-=xt-G.bottom-at,f.y>G.bottom-Jt&&(yt+=f.y-G.bottom+Jt)));var Qt=N.x+vt,te=Qt+j,ee=N.y+yt,ne=ee+$,re=f.x,ie=re+H,oe=f.y,ae=oe+B,se=(Math.max(Qt,re)+Math.min(te,ie))/2-Qt,le=(Math.max(ee,oe)+Math.min(ne,ae))/2-ee;null==s||s(e,gt);var ce=Q.right-N.x-(vt+N.width),ue=Q.bottom-N.y-(yt+N.height);1===tt&&(vt=Math.round(vt),ce=Math.round(ce)),1===et&&(yt=Math.round(yt),ue=Math.round(ue)),u({ready:!0,offsetX:vt/tt,offsetY:yt/et,offsetR:ce/tt,offsetB:ue/et,arrowX:se/tt,arrowY:le/et,scaleX:tt,scaleY:et,align:gt})}})),m=function(){u((function(t){return Lm(Lm({},t),{},{ready:!1})}))};return Rv(m,[i]),Rv((function(){t||m()}),[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var t=d.current;Promise.resolve().then((function(){d.current===t&&f()}))}]}(kt,at,F&&null!==$t?$t:dt,T,A,D,j),Wt=Ug(Ht,11),Vt=Wt[0],Yt=Wt[1],qt=Wt[2],Xt=Wt[3],Ut=Wt[4],Zt=Wt[5],Gt=Wt[6],Kt=Wt[7],Jt=Wt[8],Qt=Wt[9],te=Wt[10],ee=function(t,e,n,i){return r.useMemo((function(){var r=TM(null!=n?n:e),o=TM(null!=i?i:e),a=new Set(r),s=new Set(o);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]}),[t,e,n,i])}(Q,l,c,u),ne=Ug(ee,2),re=ne[0],ie=ne[1],oe=re.has("click"),ae=ie.has("click")||ie.has("contextMenu"),se=Hx((function(){Dt||te()}));!function(t,e,n,r,i){Rv((function(){if(t&&e&&n){var o=n,a=LM(e),s=LM(o),l=DM(o),c=new Set([l].concat(Zg(a),Zg(s)));function u(){r(),i()}return c.forEach((function(t){t.addEventListener("scroll",u,{passive:!0})})),l.addEventListener("resize",u,{passive:!0}),r(),function(){c.forEach((function(t){t.removeEventListener("scroll",u),l.removeEventListener("resize",u)}))}}}),[t,e,n])}(kt,dt,at,se,(function(){Et.current&&F&&ae&&Nt(!1)})),Rv((function(){se()}),[$t,T]),Rv((function(){!kt||null!=A&&A[T]||se()}),[JSON.stringify(D)]);var le=r.useMemo((function(){var t=function(t,e,n,r){for(var i=n.points,o=Object.keys(t),a=0;a<o.length;a+=1){var s,l=o[a];if(NM(null===(s=t[l])||void 0===s?void 0:s.points,i,r))return"".concat(e,"-placement-").concat(l)}return""}(A,o,Qt,F);return mm(t,null==z?void 0:z(Qt))}),[Qt,z,A,o,F]);r.useImperativeHandle(n,(function(){return{nativeElement:pt.current,popupElement:lt.current,forceAlign:se}}));var ce=Ug(r.useState(0),2),ue=ce[0],de=ce[1],he=Ug(r.useState(0),2),pe=he[0],fe=he[1],me=function(){if(I&&dt){var t=dt.getBoundingClientRect();de(t.width),fe(t.height)}};function ge(t,e,n,r){vt[t]=function(i){var o;null==r||r(i),Nt(e,n);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];null===(o=gt[t])||void 0===o||o.call.apply(o,[gt,i].concat(s))}}Rv((function(){zt&&(te(),zt(),Rt(null))}),[zt]),(oe||ae)&&(vt.onClick=function(t){var e;Et.current&&ae?Nt(!1):!Et.current&&oe&&(Bt(t),Nt(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(e=gt.onClick)||void 0===e||e.call.apply(e,[gt,t].concat(r))});var ve,ye,be=function(t,e,n,i,o,a,s,l){var c=r.useRef(t);c.current=t;var u=r.useRef(!1);return r.useEffect((function(){if(e&&i&&(!o||a)){var t=function(){u.current=!1},r=function(t){var e;!c.current||s((null===(e=t.composedPath)||void 0===e||null===(e=e.call(t))||void 0===e?void 0:e[0])||t.target)||u.current||l(!1)},d=DM(i);d.addEventListener("pointerdown",t,!0),d.addEventListener("mousedown",r,!0),d.addEventListener("contextmenu",r,!0);var h,p,f=Mw(n);return f&&(f.addEventListener("mousedown",r,!0),f.addEventListener("contextmenu",r,!0)),"production"!==process.env.NODE_ENV&&Cm((null==n||null===(h=n.getRootNode)||void 0===h?void 0:h.call(n))===(null===(p=i.getRootNode)||void 0===p?void 0:p.call(i)),"trigger element and popup element should in same shadow root."),function(){d.removeEventListener("pointerdown",t,!0),d.removeEventListener("mousedown",r,!0),d.removeEventListener("contextmenu",r,!0),f&&(f.removeEventListener("mousedown",r,!0),f.removeEventListener("contextmenu",r,!0))}}}),[e,n,i,o,a]),function(){u.current=!0}}(kt,ae,dt,at,x,w,yt,Nt),xe=re.has("hover"),_e=ie.has("hover");xe&&(ge("onMouseEnter",!0,m,(function(t){Bt(t)})),ge("onPointerEnter",!0,m,(function(t){Bt(t)})),ve=function(t){(kt||Dt)&&null!=at&&at.contains(t.target)&&Nt(!0,m)},F&&(vt.onMouseMove=function(t){var e;null===(e=gt.onMouseMove)||void 0===e||e.call(gt,t)})),_e&&(ge("onMouseLeave",!1,v),ge("onPointerLeave",!1,v),ye=function(){Nt(!1,v)}),re.has("focus")&&ge("onFocus",!0,y),ie.has("focus")&&ge("onBlur",!1,b),re.has("contextMenu")&&(vt.onContextMenu=function(t){var e;Et.current&&ie.has("contextMenu")?Nt(!1):(Bt(t),Nt(!0)),t.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];null===(e=gt.onContextMenu)||void 0===e||e.call.apply(e,[gt,t].concat(r))}),U&&(vt.className=mm(gt.className,U));var we=Lm(Lm({},gt),vt),Se={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(t){G[t]&&(Se[t]=function(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===(e=we[t])||void 0===e||e.call.apply(e,[we].concat(r)),G[t].apply(G,r)})}));var ke=r.cloneElement(mt,Lm(Lm({},we),Se)),Ce={x:Zt,y:Gt},Ee=B?Lm({},!0!==B?B:{}):null;return r.createElement(r.Fragment,null,r.createElement(Fg,{disabled:!kt,ref:ft,onResize:function(){me(),se()}},r.createElement(PM,{getTriggerDOMNode:Z},ke)),r.createElement(OM.Provider,{value:rt},r.createElement(MM,{portal:t,ref:ct,prefixCls:o,popup:M,className:mm(P,le),style:O,target:dt,onMouseEnter:ve,onMouseLeave:ye,onPointerEnter:ve,zIndex:L,open:kt,keepDom:Dt,fresh:R,onClick:$,onPointerDownCapture:be,mask:x,motion:bt,maskMotion:xt,onVisibleChanged:function(t){Lt(!1),te(),null==f||f(t)},onPrepare:function(){return new Promise((function(t){me(),Rt((function(){return t}))}))},forceRender:k,autoDestroy:K,getPopupContainer:S,align:Qt,arrow:Ee,arrowPos:Ce,ready:Vt,offsetX:Yt,offsetY:qt,offsetR:Xt,offsetB:Ut,onAlign:se,stretch:I,targetWidth:ue/Kt,targetHeight:pe/Jt})))}));return"production"!==process.env.NODE_ENV&&(e.displayName="Trigger"),e}(BC);function YM(t,e,n){return mm({[`${t}-status-success`]:"success"===e,[`${t}-status-warning`]:"warning"===e,[`${t}-status-error`]:"error"===e,[`${t}-status-validating`]:"validating"===e,[`${t}-has-feedback`]:n})}const qM=(t,e)=>e||t;var XM=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var i,o;const{variant:a,[t]:s}=r.useContext(Cx),l=r.useContext(rM),c=null==s?void 0:s.variant;let u;u=void 0!==e?e:!1===n?"borderless":null!==(o=null!==(i=null!=l?l:c)&&void 0!==i?i:a)&&void 0!==o?o:"outlined";return[u,kx.includes(u)]};const UM=t=>{const{componentCls:e,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=t,d=`${e}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${e}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:t.calc(u).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:t.calc(o).div(2).equal(),[`${e}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:t.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}};var ZM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},GM=function(t,e){return r.createElement(jw,gm({},t,{ref:e,icon:ZM}))},KM=r.forwardRef(GM);"production"!==process.env.NODE_ENV&&(KM.displayName="CheckOutlined");var JM=KM,QM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},tP=function(t,e){return r.createElement(jw,gm({},t,{ref:e,icon:QM}))},eP=r.forwardRef(tP);"production"!==process.env.NODE_ENV&&(eP.displayName="DownOutlined");var nP=eP,rP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},iP=function(t,e){return r.createElement(jw,gm({},t,{ref:e,icon:rP}))},oP=r.forwardRef(iP);"production"!==process.env.NODE_ENV&&(oP.displayName="SearchOutlined");var aP=oP;const sP=(t,e,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=t;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:e,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Nv(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};var lP,cP={exports:{}};var uP,dP=(lP||(lP=1,cP.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},v=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},y={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),o=n-i<0,a=e.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:d,w:l,d:s,D:h,h:a,m:o,s:i,ms:r,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",x={};x[b]=g;var _="$isDayjsObject",w=function(t){return t instanceof E||!(!t||!t[_])},S=function t(e,n,r){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();x[o]&&(i=o),n&&(x[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var s=e.name;x[s]=e,i=s}return!r&&i&&(b=i),i||!r&&b},k=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new E(n)},C=y;C.l=S,C.i=w,C.w=function(t,e){return k(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function g(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[_]=!0}var v=g.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(C.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(f);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(t,e){var n=k(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return k(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<k(t)},v.$g=function(t,e,n){return C.u(t)?this[e]:this.set(n,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var n=this,r=!!C.u(e)||e,u=C.p(t),p=function(t,e){var i=C.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(s)},f=function(t,e){return C.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var b=this.$locale().weekStart||0,x=(m<b?m+7:m)-b;return p(r?v-x:v+(6-x),g);case s:case h:return f(y+"Hours",0);case a:return f(y+"Minutes",1);case o:return f(y+"Seconds",2);case i:return f(y+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var n,l=C.p(t),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===s?this.$D+(e-this.$W):e;if(l===c||l===d){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[C.p(t)]()},v.add=function(r,u){var h,p=this;r=Number(r);var f=C.p(u),m=function(t){var e=k(p);return C.w(e.date(e.date()+Math.round(t*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===s)return m(1);if(f===l)return m(7);var g=(h={},h[o]=e,h[a]=n,h[i]=t,h)[f]||1,v=this.$d.getTime()+r*g;return C.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},h=function(t){return C.s(o%12||12,t,"0")},f=u||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return C.s(e.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return e.$D;case"DD":return C.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(n.weekdaysMin,e.$W,l,2);case"ddd":return d(n.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(o,a,!0);case"A":return f(o,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(e.$s);case"ss":return C.s(e.$s,2,"0");case"SSS":return C.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,p){var f,m=this,g=C.p(h),v=k(r),y=(v.utcOffset()-this.utcOffset())*e,b=this-v,x=function(){return C.m(m,v)};switch(g){case d:f=x()/12;break;case c:f=x();break;case u:f=x()/3;break;case l:f=(b-y)/6048e5;break;case s:f=(b-y)/864e5;break;case a:f=b/n;break;case o:f=b/e;break;case i:f=b/t;break;default:f=b}return p?f:C.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return x[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),M=E.prototype;return k.prototype=M,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",h]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),k.extend=function(t,e){return t.$i||(t(e,E,k),t.$i=!0),k},k.locale=S,k.isDayjs=w,k.unix=function(t){return k(1e3*t)},k.en=x[b],k.Ls=x,k.p={},k}()),cP.exports),hP=vt(dP),pP={exports:{}};var fP,mP=(uP||(uP=1,pP.exports=function(t,e){e.prototype.weekday=function(t){var e=this.$locale().weekStart||0,n=this.$W,r=(n<e?n+7:n)-e;return this.$utils().u(t)?r:this.subtract(r,"day").add(t,"day")}}),pP.exports),gP=vt(mP),vP={exports:{}};var yP,bP=(fP||(fP=1,vP.exports=function(t,e,n){var r=e.prototype,i=function(t){return t&&(t.indexOf?t:t.s)},o=function(t,e,n,r,o){var a=t.name?t:t.$locale(),s=i(a[e]),l=i(a[n]),c=s||l.map((function(t){return t.slice(0,r)}));if(!o)return c;var u=a.weekStart;return c.map((function(t,e){return c[(e+(u||0))%7]}))},a=function(){return n.Ls[n.locale()]},s=function(t,e){return t.formats[e]||function(t){return t.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}(t.formats[e.toUpperCase()])},l=function(){var t=this;return{months:function(e){return e?e.format("MMMM"):o(t,"months")},monthsShort:function(e){return e?e.format("MMM"):o(t,"monthsShort","months",3)},firstDayOfWeek:function(){return t.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):o(t,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):o(t,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):o(t,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return s(t.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var t=a();return{firstDayOfWeek:function(){return t.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(e){return s(t,e)},meridiem:t.meridiem,ordinal:t.ordinal}},n.months=function(){return o(a(),"months")},n.monthsShort=function(){return o(a(),"monthsShort","months",3)},n.weekdays=function(t){return o(a(),"weekdays",null,null,t)},n.weekdaysShort=function(t){return o(a(),"weekdaysShort","weekdays",3,t)},n.weekdaysMin=function(t){return o(a(),"weekdaysMin","weekdays",2,t)}}),vP.exports),xP=vt(bP),_P={exports:{}};var wP,SP=(yP||(yP=1,_P.exports=function(){var t="week",e="year";return function(n,r,i){var o=r.prototype;o.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var r=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var o=i(this).startOf(e).add(1,e).date(r),a=i(this).endOf(t);if(o.isBefore(a))return 1}var s=i(this).startOf(e).date(r).startOf(t).subtract(1,"millisecond"),l=this.diff(s,t,!0);return l<0?i(this).startOf("week").week():Math.ceil(l)},o.weeks=function(t){return void 0===t&&(t=null),this.week(t)}}}()),_P.exports),kP=vt(SP),CP={exports:{}};var EP,MP=(wP||(wP=1,CP.exports=function(t,e){e.prototype.weekYear=function(){var t=this.month(),e=this.week(),n=this.year();return 1===e&&11===t?n+1:0===t&&e>=52?n-1:n}}),CP.exports),PP=vt(MP),OP={exports:{}};var TP,NP=(EP||(EP=1,OP.exports=function(t,e){var n=e.prototype,r=n.format;n.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return r.bind(this)(t);var i=this.$utils(),o=(t||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(t){switch(t){case"Q":return Math.ceil((e.$M+1)/3);case"Do":return n.ordinal(e.$D);case"gggg":return e.weekYear();case"GGGG":return e.isoWeekYear();case"wo":return n.ordinal(e.week(),"W");case"w":case"ww":return i.s(e.week(),"w"===t?1:2,"0");case"W":case"WW":return i.s(e.isoWeek(),"W"===t?1:2,"0");case"k":case"kk":return i.s(String(0===e.$H?24:e.$H),"k"===t?1:2,"0");case"X":return Math.floor(e.$d.getTime()/1e3);case"x":return e.$d.getTime();case"z":return"["+e.offsetName()+"]";case"zzz":return"["+e.offsetName("long")+"]";default:return t}}));return r.bind(this)(o)}}),OP.exports),AP=vt(NP),DP={exports:{}};var LP=(TP||(TP=1,DP.exports=function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},e=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,a={},s=function(t){return(t=+t)+(t>68?1900:2e3)},l=function(t){return function(e){this[t]=+e}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],u=function(t){var e=a[t];return e&&(e.indexOf?e:e.s.concat(e.f))},d=function(t,e){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[o,function(t){this.afternoon=d(t,!1)}],a:[o,function(t){this.afternoon=d(t,!0)}],Q:[n,function(t){this.month=3*(t-1)+1}],S:[n,function(t){this.milliseconds=100*+t}],SS:[r,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[r,l("day")],Do:[o,function(t){var e=a.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],w:[i,l("week")],ww:[r,l("week")],M:[i,l("month")],MM:[r,l("month")],MMM:[o,function(t){var e=u("months"),n=(u("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,l("year")],YY:[r,function(t){this.year=s(t)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var o=r&&r.toUpperCase();return n||i[r]||t[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),s=o.length,l=0;l<s;l+=1){var c=o[l],u=h[c],d=u&&u[0],p=u&&u[1];o[l]=p?{regex:d,parser:p}:c.replace(/^\[|\]$/g,"")}return function(t){for(var e={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,l=i.parser,c=t.slice(r),u=a.exec(c)[0];l.call(e,u),t=t.replace(u,"")}}return function(t){var e=t.afternoon;if(void 0!==e){var n=t.hours;e?n<12&&(t.hours+=12):12===n&&(t.hours=0),delete t.afternoon}}(e),e}}return function(t,e,n){n.p.customParseFormat=!0,t&&t.parseTwoDigitYear&&(s=t.parseTwoDigitYear);var r=e.prototype,i=r.parse;r.parse=function(t){var e=t.date,r=t.utc,o=t.args;this.$u=r;var s=o[1];if("string"==typeof s){var l=!0===o[2],c=!0===o[3],u=l||c,d=o[2];c&&(d=o[2]),a=this.$locale(),!l&&d&&(a=n.Ls[d]),this.$d=function(t,e,n,r){try{if(["x","X"].indexOf(e)>-1)return new Date(("X"===e?1e3:1)*t);var i=p(e)(t),o=i.year,a=i.month,s=i.day,l=i.hours,c=i.minutes,u=i.seconds,d=i.milliseconds,h=i.zone,f=i.week,m=new Date,g=s||(o||a?1:m.getDate()),v=o||m.getFullYear(),y=0;o&&!a||(y=a>0?a-1:m.getMonth());var b,x=l||0,_=c||0,w=u||0,S=d||0;return h?new Date(Date.UTC(v,y,g,x,_,w,S+60*h.offset*1e3)):n?new Date(Date.UTC(v,y,g,x,_,w,S)):(b=new Date(v,y,g,x,_,w,S),f&&(b=r(b).week(f).toDate()),b)}catch(t){return new Date("")}}(e,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&e!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var h=s.length,f=1;f<=h;f+=1){o[1]=s[f-1];var m=n.apply(this,o);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===h&&(this.$d=new Date(""))}else i.call(this,t)}}}()),DP.exports),IP=vt(LP);hP.extend(IP),hP.extend(AP),hP.extend(gP),hP.extend(xP),hP.extend(kP),hP.extend(PP),hP.extend((function(t,e){var n=e.prototype,r=n.format;n.format=function(t){var e=(t||"").replace("Wo","wo");return r.bind(this)(e)}}));var zP={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},RP=function(t){return zP[t]||t.split("_")[0]},FP={getNow:function(){var t=hP();return"function"==typeof t.tz?t.tz():t},getFixedDate:function(t){return hP(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var e=t.locale("en");return e.weekday()+e.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,e){return t.add(e,"year")},addMonth:function(t,e){return t.add(e,"month")},addDate:function(t,e){return t.add(e,"day")},setYear:function(t,e){return t.year(e)},setMonth:function(t,e){return t.month(e)},setDate:function(t,e){return t.date(e)},setHour:function(t,e){return t.hour(e)},setMinute:function(t,e){return t.minute(e)},setSecond:function(t,e){return t.second(e)},setMillisecond:function(t,e){return t.millisecond(e)},isAfter:function(t,e){return t.isAfter(e)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return hP().locale(RP(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,e){return e.locale(RP(t)).weekday(0)},getWeek:function(t,e){return e.locale(RP(t)).week()},getShortWeekDays:function(t){return hP().locale(RP(t)).localeData().weekdaysMin()},getShortMonths:function(t){return hP().locale(RP(t)).localeData().monthsShort()},format:function(t,e,n){return e.locale(RP(t)).format(n)},parse:function(t,e,n){for(var r=RP(t),i=0;i<n.length;i+=1){var o=n[i],a=e;if(o.includes("wo")||o.includes("Wo")){for(var s=a.split("-")[0],l=a.split("-")[1],c=hP(s,"YYYY").startOf("year").locale(r),u=0;u<=52;u+=1){var d=c.add(u,"week");if(d.format("Wo")===l)return d}return null}var h=hP(a,o,!0).locale(r);if(h.isValid())return h}return null}}};var $P=r.createContext(null),jP={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function BP(t){var e=t.popupElement,n=t.popupStyle,i=t.popupClassName,o=t.popupAlign,a=t.transitionName,s=t.getPopupContainer,l=t.children,c=t.range,u=t.placement,d=t.builtinPlacements,h=void 0===d?jP:d,p=t.direction,f=t.visible,m=t.onClose,g=r.useContext($P).prefixCls,v="".concat(g,"-dropdown"),y=function(t,e){return void 0!==t?t:e?"bottomRight":"bottomLeft"}(u,"rtl"===p);return r.createElement(VM,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:h,prefixCls:v,popupTransitionName:a,popup:e,popupAlign:o,popupVisible:f,popupClassName:mm(i,Am(Am({},"".concat(v,"-range"),c),"".concat(v,"-rtl"),"rtl"===p)),popupStyle:n,stretch:"minWidth",getPopupContainer:s,onPopupVisibleChange:function(t){t||m()}},l)}function HP(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",r=String(t);r.length<e;)r="".concat(n).concat(r);return r}function WP(t){return null==t?[]:Array.isArray(t)?t:[t]}function VP(t,e,n){var r=Zg(t);return r[e]=n,r}function YP(t,e){var n={};return(e||Object.keys(t)).forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n}function qP(t,e,n){if(n)return n;switch(t){case"time":return e.fieldTimeFormat;case"datetime":return e.fieldDateTimeFormat;case"month":return e.fieldMonthFormat;case"year":return e.fieldYearFormat;case"quarter":return e.fieldQuarterFormat;case"week":return e.fieldWeekFormat;default:return e.fieldDateFormat}}function XP(t,e,n){var r=void 0!==n?n:e[e.length-1],i=e.find((function(e){return t[e]}));return r!==i?t[i]:void 0}function UP(t){return YP(t,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function ZP(t,e,n,i){"production"!==process.env.NODE_ENV&&(Om(!e,"'dateRender' is deprecated. Please use 'cellRender' instead."),Om(!n,"'monthCellRender' is deprecated. Please use 'cellRender' instead."));var o=r.useMemo((function(){return t||function(t,r){var i=t;return e&&"date"===r.type?e(i,r.today):n&&"month"===r.type?n(i,r.locale):r.originNode}}),[t,n,e]),a=r.useCallback((function(t,e){return o(t,Lm(Lm({},e),{},{range:i}))}),[o,i]);return a}function GP(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=Ug(r.useState([!1,!1]),2),o=i[0],a=i[1],s=r.useMemo((function(){return o.map((function(r,i){if(r)return!0;var o=t[i];return!!o&&(!n[i]&&!o||!(!o||!e(o,{activeIndex:i})))}))}),[t,o,e,n]);return[s,function(t,e){a((function(n){return VP(n,e,t)}))}]}function KP(t,e,n,r,i){var o="",a=[];return t&&a.push(i?"hh":"HH"),e&&a.push("mm"),n&&a.push("ss"),o=a.join(":"),r&&(o+=".SSS"),i&&(o+=" A"),o}function JP(t,e){var n=e.showHour,r=e.showMinute,o=e.showSecond,a=e.showMillisecond,s=e.use12Hours;return i.useMemo((function(){return function(t,e,n,r,i,o){var a=t.fieldDateTimeFormat,s=t.fieldDateFormat,l=t.fieldTimeFormat,c=t.fieldMonthFormat,u=t.fieldYearFormat,d=t.fieldWeekFormat,h=t.fieldQuarterFormat,p=t.yearFormat,f=t.cellYearFormat,m=t.cellQuarterFormat,g=t.dayFormat,v=t.cellDateFormat,y=KP(e,n,r,i,o);return Lm(Lm({},t),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:d||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:f||"YYYY",cellQuarterFormat:m||"[Q]Q",cellDateFormat:v||g||"D"})}(t,n,r,o,a,s)}),[t,n,r,o,a,s])}function QP(t,e,n){return null!=n?n:e.some((function(e){return t.includes(e)}))}var tO=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function eO(t){return t&&"string"==typeof t}function nO(t,e,n,r){return[t,e,n,r].some((function(t){return void 0!==t}))}function rO(t,e,n,r,i){var o=e,a=n,s=r;if(t||o||a||s||i){if(t){var l,c,u,d=[o,a,s].some((function(t){return!1===t})),h=[o,a,s].some((function(t){return!0===t})),p=!!d||!h;o=null!==(l=o)&&void 0!==l?l:p,a=null!==(c=a)&&void 0!==c?c:p,s=null!==(u=s)&&void 0!==u?u:p}}else o=!0,a=!0,s=!0;return[o,a,s,i]}function iO(t){var e=t.showTime,n=function(t){var e=YP(t,tO),n=t.format,r=t.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i="object"===Tm(i)?i.format:i),"time"===r&&(e.format=i),[e,i]}(t),r=Ug(n,2),i=r[0],o=r[1],a=e&&"object"===Tm(e)?e:{},s=Lm(Lm({defaultOpenValue:a.defaultOpenValue||a.defaultValue},i),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,d=s.showSecond,h=Ug(rO(nO(c,u,d,l),c,u,d,l),3);return c=h[0],u=h[1],d=h[2],[s,Lm(Lm({},s),{},{showHour:c,showMinute:u,showSecond:d,showMillisecond:l}),s.format,o]}function oO(t,e,n,r,i){if("datetime"===t||"time"===t){for(var o=r,a=qP(t,i,null),s=[e,n],l=0;l<s.length;l+=1){var c=WP(s[l])[0];if(eO(c)){a=c;break}}var u=o.showHour,d=o.showMinute,h=o.showSecond,p=o.showMillisecond,f=QP(a,["a","A","LT","LLL","LTS"],o.use12Hours),m=nO(u,d,h,p);m||(u=QP(a,["H","h","k","LT","LLL"]),d=QP(a,["m","LT","LLL"]),h=QP(a,["s","LTS"]),p=QP(a,["SSS"]));var g=Ug(rO(m,u,d,h,p),3);u=g[0],d=g[1],h=g[2];var v=e||KP(u,d,h,p,f);return Lm(Lm({},o),{},{format:v,showHour:u,showMinute:d,showSecond:h,showMillisecond:p,use12Hours:f})}return null}function aO(t,e,n){return"production"!==process.env.NODE_ENV&&n&&Om(!1,"`clearIcon` will be removed in future. Please use `allowClear` instead."),!1===e?null:(e&&"object"===Tm(e)?e:{}).clearIcon||n||r.createElement("span",{className:"".concat(t,"-clear-btn")})}function sO(t,e,n){return!t&&!e||t===e||!(!t||!e)&&n()}function lO(t,e,n){return sO(e,n,(function(){return Math.floor(t.getYear(e)/10)===Math.floor(t.getYear(n)/10)}))}function cO(t,e,n){return sO(e,n,(function(){return t.getYear(e)===t.getYear(n)}))}function uO(t,e){return Math.floor(t.getMonth(e)/3)+1}function dO(t,e,n){return sO(e,n,(function(){return cO(t,e,n)&&t.getMonth(e)===t.getMonth(n)}))}function hO(t,e,n){return sO(e,n,(function(){return cO(t,e,n)&&dO(t,e,n)&&t.getDate(e)===t.getDate(n)}))}function pO(t,e,n){return sO(e,n,(function(){return t.getHour(e)===t.getHour(n)&&t.getMinute(e)===t.getMinute(n)&&t.getSecond(e)===t.getSecond(n)}))}function fO(t,e,n){return sO(e,n,(function(){return hO(t,e,n)&&pO(t,e,n)&&t.getMillisecond(e)===t.getMillisecond(n)}))}function mO(t,e,n,r){return sO(n,r,(function(){var i=t.locale.getWeekFirstDate(e,n),o=t.locale.getWeekFirstDate(e,r);return cO(t,i,o)&&t.locale.getWeek(e,n)===t.locale.getWeek(e,r)}))}function gO(t,e,n,r,i){switch(i){case"date":return hO(t,n,r);case"week":return mO(t,e.locale,n,r);case"month":return dO(t,n,r);case"quarter":return function(t,e,n){return sO(e,n,(function(){return cO(t,e,n)&&uO(t,e)===uO(t,n)}))}(t,n,r);case"year":return cO(t,n,r);case"decade":return lO(t,n,r);case"time":return pO(t,n,r);default:return fO(t,n,r)}}function vO(t,e,n,r){return!!(e&&n&&r)&&(t.isAfter(r,e)&&t.isAfter(n,r))}function yO(t,e,n,r,i){return!!gO(t,e,n,r,i)||t.isAfter(n,r)}function bO(t,e){var n=e.generateConfig,r=e.locale,i=e.format;return t?"function"==typeof i?i(t):n.locale.format(r.locale,t,i):""}function xO(t,e,n){var r=e,i=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((function(e,o){r=n?t[e](r,t[i[o]](n)):t[e](r,0)})),r}function _O(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.useMemo((function(){var n=t?WP(t):t;return e&&n&&(n[1]=n[1]||n[0]),n}),[t,e])}function wO(t,e){var n=t.generateConfig,i=t.locale,o=t.picker,a=void 0===o?"date":o,s=t.prefixCls,l=void 0===s?"rc-picker":s,c=t.styles,u=void 0===c?{}:c,d=t.classNames,h=void 0===d?{}:d,p=t.order,f=void 0===p||p,m=t.components,g=void 0===m?{}:m,v=t.inputRender,y=t.allowClear,b=t.clearIcon,x=t.needConfirm,_=t.multiple,w=t.format,S=t.inputReadOnly,k=t.disabledDate,C=t.minDate,E=t.maxDate,M=t.showTime,P=t.value,O=t.defaultValue,T=t.pickerValue,N=t.defaultPickerValue,A=_O(P),D=_O(O),L=_O(T),I=_O(N),z="date"===a&&M?"datetime":a,R="time"===z||"datetime"===z,F=R||_,$=null!=x?x:R,j=Ug(iO(t),4),B=j[0],H=j[1],W=j[2],V=j[3],Y=JP(i,H),q=r.useMemo((function(){return oO(z,W,V,B,Y)}),[z,W,V,B,Y]);"production"!==process.env.NODE_ENV&&"time"===a&&["disabledHours","disabledMinutes","disabledSeconds"].some((function(e){return t[e]}))&&Om(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.");var X=r.useMemo((function(){return Lm(Lm({},t),{},{prefixCls:l,locale:Y,picker:a,styles:u,classNames:h,order:f,components:Lm({input:v},g),clearIcon:aO(l,y,b),showTime:q,value:A,defaultValue:D,pickerValue:L,defaultPickerValue:I},null==e?void 0:e())}),[t]),U=function(t,e,n){return r.useMemo((function(){var r=WP(qP(t,e,n)),i=r[0],o="object"===Tm(i)&&"mask"===i.type?i.format:null;return[r.map((function(t){return"string"==typeof t||"function"==typeof t?t:t.format})),o]}),[t,e,n])}(z,Y,w),Z=Ug(U,2),G=Z[0],K=Z[1],J=function(t,e,n){return!("function"!=typeof t[0]&&!n)||e}(G,S,_),Q=function(t,e,n,r,i){var o=Hx((function(o,a){return!(!n||!n(o,a))||!(!r||!t.isAfter(r,o)||gO(t,e,r,o,a.type))||!(!i||!t.isAfter(o,i)||gO(t,e,i,o,a.type))}));return o}(n,i,k,C,E),tt=function(t,e,n,r){var i=Hx((function(i,o){var a=Lm({type:e},o);if(delete a.activeIndex,!t.isValidate(i)||n&&n(i,a))return!0;if(("date"===e||"time"===e)&&r){var s,l=o&&1===o.activeIndex?"end":"start",c=(null===(s=r.disabledTime)||void 0===s?void 0:s.call(r,i,l,{from:a.from}))||{},u=c.disabledHours,d=c.disabledMinutes,h=c.disabledSeconds,p=c.disabledMilliseconds,f=r.disabledHours,m=r.disabledMinutes,g=r.disabledSeconds,v=u||f,y=d||m,b=h||g,x=t.getHour(i),_=t.getMinute(i),w=t.getSecond(i),S=t.getMillisecond(i);if(v&&v().includes(x))return!0;if(y&&y(x).includes(_))return!0;if(b&&b(x,_).includes(w))return!0;if(p&&p(x,_,w).includes(S))return!0}return!1}));return i}(n,a,Q,q);return[r.useMemo((function(){return Lm(Lm({},X),{},{needConfirm:$,inputReadOnly:J,disabledDate:Q})}),[X,$,J,Q]),z,F,G,K,tt]}function SO(t,e){var n,r,o,a,s,l,c,u,d,h,p=arguments.length>3?arguments[3]:void 0,f=!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every((function(t){return t}))&&t,m=(r=p,o=Ug(qx(e||!1,{value:n=f}),2),a=o[0],s=o[1],l=i.useRef(n),c=i.useRef(),u=function(){Yg.cancel(c.current)},d=Hx((function(){s(l.current),r&&a!==l.current&&r(l.current)})),h=Hx((function(t,e){u(),l.current=t,t||e?d():c.current=Yg(d)})),i.useEffect((function(){return u}),[]),[a,h]),g=Ug(m,2),v=g[0],y=g[1];return[v,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.inherit&&!v||y(t,e.force)}]}function kO(t){var e=r.useRef();return r.useImperativeHandle(t,(function(){var t;return{nativeElement:null===(t=e.current)||void 0===t?void 0:t.nativeElement,focus:function(t){var n;null===(n=e.current)||void 0===n||n.focus(t)},blur:function(){var t;null===(t=e.current)||void 0===t||t.blur()}}})),e}function CO(t,e){return r.useMemo((function(){return t||(e?(Om(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(e).map((function(t){var e=Ug(t,2);return{label:e[0],value:e[1]}}))):[])}),[t,e])}function EO(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=r.useRef(e);i.current=e,Fv((function(){if(!t){var e=Yg((function(){i.current(t)}),n);return function(){Yg.cancel(e)}}i.current(t)}),[t])}function MO(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Ug(r.useState(0),2),o=i[0],a=i[1],s=Ug(r.useState(!1),2),l=s[0],c=s[1],u=r.useRef([]),d=r.useRef(null),h=r.useRef(null),p=function(t){d.current=t};return EO(l||n,(function(){l||(u.current=[],p(null))})),r.useEffect((function(){l&&u.current.push(o)}),[l,o]),[l,function(t){c(t)},function(t){return t&&(h.current=t),h.current},o,a,function(n){var r=u.current,i=new Set(r.filter((function(t){return n[t]||e[t]}))),o=0===r[r.length-1]?1:0;return i.size>=2||t[o]?null:o},u.current,p,function(t){return d.current===t}]}function PO(t,e,n,r){switch(e){case"date":case"week":return t.addMonth(n,r);case"month":case"quarter":return t.addYear(n,r);case"year":return t.addYear(n,10*r);case"decade":return t.addYear(n,100*r);default:return n}}var OO=[];function TO(t,e,n,i,o,a,s,l){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:OO,u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:OO,d=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,f="time"===s,m=a||0,g=function(e){var r=t.getNow();return f&&(r=xO(t,r)),c[e]||n[e]||r},v=Ug(arguments.length>9&&void 0!==arguments[9]?arguments[9]:OO,2),y=v[0],b=v[1],x=Ug(qx((function(){return g(0)}),{value:y}),2),_=x[0],w=x[1],S=Ug(qx((function(){return g(1)}),{value:b}),2),k=S[0],C=S[1],E=r.useMemo((function(){var e=[_,k][m];return f?e:xO(t,e,u[m])}),[f,_,k,m,t,u]),M=function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[w,C][m])(n);var o=[_,k];o[m]=n,!d||gO(t,e,_,o[0],s)&&gO(t,e,k,o[1],s)||d(o,{source:r,range:1===m?"end":"start",mode:i})},P=r.useRef(null);return Rv((function(){if(o&&!c[m]){var r=f?null:t.getNow();if(null!==P.current&&P.current!==m?r=[_,k][1^m]:n[m]?r=0===m?n[0]:function(n,r){if(l){var i={date:"month",week:"month",month:"year",quarter:"year"}[s];if(i&&!gO(t,e,n,r,i))return PO(t,s,r,-1);if("year"===s&&n&&Math.floor(t.getYear(n)/10)!==Math.floor(t.getYear(r)/10))return PO(t,s,r,-1)}return r}(n[0],n[1]):n[1^m]&&(r=n[1^m]),r){h&&t.isAfter(h,r)&&(r=h);var i=l?PO(t,s,r,1):r;p&&t.isAfter(i,p)&&(r=l?PO(t,s,p,-1):p),M(r,"reset")}}}),[o,m,n[m]]),r.useEffect((function(){P.current=o?m:null}),[o,m]),Rv((function(){o&&c&&c[m]&&M(c[m],"reset")}),[o,m]),[E,M]}function NO(t,e){var n=r.useRef(t),i=Ug(r.useState({}),2)[1],o=function(t){return t&&void 0!==e?e:n.current};return[o,function(t){n.current=t,i({})},o(!0)]}var AO=[];function DO(t,e,n){return[function(r){return r.map((function(r){return bO(r,{generateConfig:t,locale:e,format:n[0]})}))},function(e,n){for(var r=Math.max(e.length,n.length),i=-1,o=0;o<r;o+=1){var a=e[o]||null,s=n[o]||null;if(a!==s&&!fO(t,a,s)){i=o;break}}return[i<0,0!==i]}]}function LO(t,e){return Zg(t).sort((function(t,n){return e.isAfter(t,n)?1:-1}))}function IO(t,e,n,i,o,a,s,l,c){var u=Ug(qx(a,{value:s}),2),d=u[0],h=u[1],p=d||AO,f=function(t){var e=Ug(NO(t),2),n=e[0],i=e[1],o=Hx((function(){i(t)}));return r.useEffect((function(){o()}),[t]),[n,i]}(p),m=Ug(f,2),g=m[0],v=m[1],y=Ug(DO(t,e,n),2),b=y[0],x=y[1],_=Hx((function(e){var n=Zg(e);if(i)for(var r=0;r<2;r+=1)n[r]=n[r]||null;else o&&(n=LO(n.filter((function(t){return t})),t));var a=Ug(x(g(),n),2),s=a[0],c=a[1];if(!s&&(v(n),l)){var u=b(n);l(n,u,{range:c?"end":"start"})}}));return[p,h,g,_,function(){c&&c(g())}]}function zO(t,e,n,i,o,a,s,l,c,u){var d=t.generateConfig,h=t.locale,p=t.picker,f=t.onChange,m=t.allowEmpty,g=t.order,v=!a.some((function(t){return t}))&&g,y=Ug(DO(d,h,s),2),b=y[0],x=y[1],_=Ug(NO(e),2),w=_[0],S=_[1],k=Hx((function(){S(e)}));r.useEffect((function(){k()}),[e]);var C=Hx((function(t){var r=null===t,i=Zg(t||w());if(r)for(var s=Math.max(a.length,i.length),l=0;l<s;l+=1)a[l]||(i[l]=null);v&&i[0]&&i[1]&&(i=LO(i,d)),o(i);var c=Ug(i,2),y=c[0],_=c[1],S=!y,k=!_,C=!m||(!S||m[0])&&(!k||m[1]),E=!g||S||k||gO(d,h,y,_,p)||d.isAfter(_,y),M=(a[0]||!y||!u(y,{activeIndex:0}))&&(a[1]||!_||!u(_,{from:y,activeIndex:1})),P=r||C&&E&&M;if(P){n(i);var O=Ug(x(i,e),1)[0];f&&!O&&f(r&&i.every((function(t){return!t}))?null:i,b(i))}return P})),E=Hx((function(t,e){var n=VP(w(),t,i()[t]);S(n),e&&C()})),M=!l&&!c;return EO(!M,(function(){M&&(C(),o(e),k())}),2),[E,C]}function RO(t,e,n,r,i){return("date"===e||"time"===e)&&(void 0!==n?n:void 0!==r?r:!i&&("date"===t||"time"===t))}function FO(){return[]}function $O(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],s=n>=1?0|n:1,l=t;l<=e;l+=s){var c=i.includes(l);c&&r||a.push({label:HP(l,o),value:l,disabled:c})}return a}function jO(t){var e=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},i=n.use12Hours,o=n.hourStep,a=void 0===o?1:o,s=n.minuteStep,l=void 0===s?1:s,c=n.secondStep,u=void 0===c?1:c,d=n.millisecondStep,h=void 0===d?100:d,p=n.hideDisabledOptions,f=n.disabledTime,m=n.disabledHours,g=n.disabledMinutes,v=n.disabledSeconds,y=r.useMemo((function(){return e||t.getNow()}),[e,t]);if("production"!==process.env.NODE_ENV){var b=60%l==0,x=60%u==0;Om(24%a==0,"`hourStep` ".concat(a," is invalid. It should be a factor of 24.")),Om(b,"`minuteStep` ".concat(l," is invalid. It should be a factor of 60.")),Om(x,"`secondStep` ".concat(u," is invalid. It should be a factor of 60."))}var _=r.useCallback((function(t){var e=(null==f?void 0:f(t))||{};return[e.disabledHours||m||FO,e.disabledMinutes||g||FO,e.disabledSeconds||v||FO,e.disabledMilliseconds||FO]}),[f,m,g,v]),w=Ug(r.useMemo((function(){return _(y)}),[y,_]),4),S=w[0],k=w[1],C=w[2],E=w[3],M=r.useCallback((function(t,e,n,r){var o=$O(0,23,a,p,t()),s=i?o.map((function(t){return Lm(Lm({},t),{},{label:HP(t.value%12||12,2)})})):o;return[s,function(t){return $O(0,59,l,p,e(t))},function(t,e){return $O(0,59,u,p,n(t,e))},function(t,e,n){return $O(0,999,h,p,r(t,e,n),3)}]}),[p,a,i,h,l,u]),P=Ug(r.useMemo((function(){return M(S,k,C,E)}),[M,S,k,C,E]),4),O=P[0],T=P[1],N=P[2],A=P[3];return[function(e,n){var r=function(){return O},i=T,o=N,a=A;if(n){var s=Ug(_(n),4),l=s[0],c=s[1],u=s[2],d=s[3],h=Ug(M(l,c,u,d),4),p=h[0];r=function(){return p},i=h[1],o=h[2],a=h[3]}var f=function(t,e,n,r,i,o){var a=t;function s(t,e,n){var r=o[t](a),i=n.find((function(t){return t.value===r}));if(!i||i.disabled){var s=n.filter((function(t){return!t.disabled})),l=Zg(s).reverse().find((function(t){return t.value<=r}))||s[0];l&&(r=l.value,a=o[e](a,r))}return r}var l=s("getHour","setHour",e()),c=s("getMinute","setMinute",n(l)),u=s("getSecond","setSecond",r(l,c));return s("getMillisecond","setMillisecond",i(l,c,u)),a}(e,r,i,o,a,t);return f},O,T,N,A]}function BO(t){var e=t.mode,n=t.internalMode,i=t.renderExtraFooter,o=t.showNow,a=t.showTime,s=t.onSubmit,l=t.onNow,c=t.invalid,u=t.needConfirm,d=t.generateConfig,h=t.disabledDate,p=r.useContext($P),f=p.prefixCls,m=p.locale,g=p.button,v=void 0===g?"button":g,y=d.getNow(),b=Ug(jO(d,a,y),1)[0],x=null==i?void 0:i(e),_=h(y,{type:e}),w="".concat(f,"-now"),S="".concat(w,"-btn"),k=o&&r.createElement("li",{className:w},r.createElement("a",{className:mm(S,_&&"".concat(S,"-disabled")),"aria-disabled":_,onClick:function(){if(!_){var t=b(y);l(t)}}},"date"===n?m.today:m.now)),C=u&&r.createElement("li",{className:"".concat(f,"-ok")},r.createElement(v,{disabled:c,onClick:s},m.ok)),E=(k||C)&&r.createElement("ul",{className:"".concat(f,"-ranges")},k,C);return x||E?r.createElement("div",{className:"".concat(f,"-footer")},x&&r.createElement("div",{className:"".concat(f,"-footer-extra")},x),E):null}function HO(t,e,n){return function(r,i){var o=r.findIndex((function(r){return gO(t,e,r,i,n)}));if(-1===o)return[].concat(Zg(r),[i]);var a=Zg(r);return a.splice(o,1),a}}var WO=r.createContext(null);function VO(){return r.useContext(WO)}function YO(t,e){var n=t.prefixCls,r=t.generateConfig,i=t.locale,o=t.disabledDate,a=t.minDate,s=t.maxDate,l=t.cellRender,c=t.hoverValue,u=t.hoverRangeValue,d=t.onHover,h=t.values,p=t.pickerValue,f=t.onSelect,m=t.prevIcon,g=t.nextIcon,v=t.superPrevIcon,y=t.superNextIcon,b=r.getNow();return[{now:b,values:h,pickerValue:p,prefixCls:n,disabledDate:o,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:f,panelType:e,prevIcon:m,nextIcon:g,superPrevIcon:v,superNextIcon:y},b]}var qO=r.createContext({});function XO(t){for(var e=t.rowNum,n=t.colNum,i=t.baseDate,o=t.getCellDate,a=t.prefixColumn,s=t.rowClassName,l=t.titleFormat,c=t.getCellText,u=t.getCellClassName,d=t.headerCells,h=t.cellSelection,p=void 0===h||h,f=t.disabledDate,m=VO(),g=m.prefixCls,v=m.panelType,y=m.now,b=m.disabledDate,x=m.cellRender,_=m.onHover,w=m.hoverValue,S=m.hoverRangeValue,k=m.generateConfig,C=m.values,E=m.locale,M=m.onSelect,P=f||b,O="".concat(g,"-cell"),T=r.useContext(qO).onCellDblClick,N=function(t){return C.some((function(e){return e&&gO(k,E,t,e,v)}))},A=[],D=0;D<e;D+=1){for(var L=[],I=void 0,z=function(){var t=o(i,D*n+R),e=null==P?void 0:P(t,{type:v});0===R&&(I=t,a&&L.push(a(I)));var s=!1,d=!1,h=!1;if(p&&S){var f=Ug(S,2),m=f[0],b=f[1];s=vO(k,m,b,t),d=gO(k,E,t,m,v),h=gO(k,E,t,b,v)}var C=l?bO(t,{locale:E,format:l,generateConfig:k}):void 0,A=r.createElement("div",{className:"".concat(O,"-inner")},c(t));L.push(r.createElement("td",{key:R,title:C,className:mm(O,Lm(Am(Am(Am(Am(Am(Am({},"".concat(O,"-disabled"),e),"".concat(O,"-hover"),(w||[]).some((function(e){return gO(k,E,t,e,v)}))),"".concat(O,"-in-range"),s&&!d&&!h),"".concat(O,"-range-start"),d),"".concat(O,"-range-end"),h),"".concat(g,"-cell-selected"),!S&&"week"!==v&&N(t)),u(t))),onClick:function(){e||M(t)},onDoubleClick:function(){!e&&T&&T()},onMouseEnter:function(){e||null==_||_(t)},onMouseLeave:function(){e||null==_||_(null)}},x?x(t,{prefixCls:g,originNode:A,today:y,type:v,locale:E}):A))},R=0;R<n;R+=1)z();A.push(r.createElement("tr",{key:D,className:null==s?void 0:s(I)},L))}return r.createElement("div",{className:"".concat(g,"-body")},r.createElement("table",{className:"".concat(g,"-content")},d&&r.createElement("thead",null,r.createElement("tr",null,d)),r.createElement("tbody",null,A)))}"production"!==process.env.NODE_ENV&&(qO.displayName="PickerHackContext");var UO={visibility:"hidden"};function ZO(t){var e=t.offset,n=t.superOffset,i=t.onChange,o=t.getStart,a=t.getEnd,s=t.children,l=VO(),c=l.prefixCls,u=l.prevIcon,d=void 0===u?"‹":u,h=l.nextIcon,p=void 0===h?"›":h,f=l.superPrevIcon,m=void 0===f?"«":f,g=l.superNextIcon,v=void 0===g?"»":g,y=l.minDate,b=l.maxDate,x=l.generateConfig,_=l.locale,w=l.pickerValue,S=l.panelType,k="".concat(c,"-header"),C=r.useContext(qO),E=C.hidePrev,M=C.hideNext,P=C.hideHeader,O=r.useMemo((function(){if(!y||!e||!a)return!1;var t=a(e(-1,w));return!yO(x,_,t,y,S)}),[y,e,w,a,x,_,S]),T=r.useMemo((function(){if(!y||!n||!a)return!1;var t=a(n(-1,w));return!yO(x,_,t,y,S)}),[y,n,w,a,x,_,S]),N=r.useMemo((function(){if(!b||!e||!o)return!1;var t=o(e(1,w));return!yO(x,_,b,t,S)}),[b,e,w,o,x,_,S]),A=r.useMemo((function(){if(!b||!n||!o)return!1;var t=o(n(1,w));return!yO(x,_,b,t,S)}),[b,n,w,o,x,_,S]),D=function(t){e&&i(e(t,w))},L=function(t){n&&i(n(t,w))};if(P)return null;var I="".concat(k,"-prev-btn"),z="".concat(k,"-next-btn"),R="".concat(k,"-super-prev-btn"),F="".concat(k,"-super-next-btn");return r.createElement("div",{className:k},n&&r.createElement("button",{type:"button","aria-label":_.previousYear,onClick:function(){return L(-1)},tabIndex:-1,className:mm(R,T&&"".concat(R,"-disabled")),disabled:T,style:E?UO:{}},m),e&&r.createElement("button",{type:"button","aria-label":_.previousMonth,onClick:function(){return D(-1)},tabIndex:-1,className:mm(I,O&&"".concat(I,"-disabled")),disabled:O,style:E?UO:{}},d),r.createElement("div",{className:"".concat(k,"-view")},s),e&&r.createElement("button",{type:"button","aria-label":_.nextMonth,onClick:function(){return D(1)},tabIndex:-1,className:mm(z,N&&"".concat(z,"-disabled")),disabled:N,style:M?UO:{}},p),n&&r.createElement("button",{type:"button","aria-label":_.nextYear,onClick:function(){return L(1)},tabIndex:-1,className:mm(F,A&&"".concat(F,"-disabled")),disabled:A,style:M?UO:{}},v))}function GO(t){var e=t.prefixCls,n=t.panelName,i=void 0===n?"date":n,o=t.locale,a=t.generateConfig,s=t.pickerValue,l=t.onPickerValueChange,c=t.onModeChange,u=t.mode,d=void 0===u?"date":u,h=t.disabledDate,p=t.onSelect,f=t.onHover,m=t.showWeek,g="".concat(e,"-").concat(i,"-panel"),v="".concat(e,"-cell"),y="week"===d,b=Ug(YO(t,d),2),x=b[0],_=b[1],w=a.locale.getWeekFirstDay(o.locale),S=a.setDate(s,1),k=function(t,e,n){var r=e.locale.getWeekFirstDay(t),i=e.setDate(n,1),o=e.getWeekDay(i),a=e.addDate(i,r-o);return e.getMonth(a)===e.getMonth(n)&&e.getDate(a)>1&&(a=e.addDate(a,-7)),a}(o.locale,a,S),C=a.getMonth(s),E=(void 0===m?y:m)?function(t){var e=null==h?void 0:h(t,{type:"week"});return r.createElement("td",{key:"week",className:mm(v,"".concat(v,"-week"),Am({},"".concat(v,"-disabled"),e)),onClick:function(){e||p(t)},onMouseEnter:function(){e||null==f||f(t)},onMouseLeave:function(){e||null==f||f(null)}},r.createElement("div",{className:"".concat(v,"-inner")},a.locale.getWeek(o.locale,t)))}:null,M=[],P=o.shortWeekDays||(a.locale.getShortWeekDays?a.locale.getShortWeekDays(o.locale):[]);E&&M.push(r.createElement("th",{key:"empty"},r.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var O=0;O<7;O+=1)M.push(r.createElement("th",{key:O},P[(O+w)%7]));var T=o.shortMonths||(a.locale.getShortMonths?a.locale.getShortMonths(o.locale):[]),N=r.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){c("year",s)},tabIndex:-1,className:"".concat(e,"-year-btn")},bO(s,{locale:o,format:o.yearFormat,generateConfig:a})),A=r.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){c("month",s)},tabIndex:-1,className:"".concat(e,"-month-btn")},o.monthFormat?bO(s,{locale:o,format:o.monthFormat,generateConfig:a}):T[C]),D=o.monthBeforeYear?[A,N]:[N,A];return r.createElement(WO.Provider,{value:x},r.createElement("div",{className:mm(g,m&&"".concat(g,"-show-week"))},r.createElement(ZO,{offset:function(t){return a.addMonth(s,t)},superOffset:function(t){return a.addYear(s,t)},onChange:l,getStart:function(t){return a.setDate(t,1)},getEnd:function(t){var e=a.setDate(t,1);return e=a.addMonth(e,1),a.addDate(e,-1)}},D),r.createElement(XO,gm({titleFormat:o.fieldDateFormat},t,{colNum:7,rowNum:6,baseDate:k,headerCells:M,getCellDate:function(t,e){return a.addDate(t,e)},getCellText:function(t){return bO(t,{locale:o,format:o.cellDateFormat,generateConfig:a})},getCellClassName:function(t){return Am(Am({},"".concat(e,"-cell-in-view"),dO(a,t,s)),"".concat(e,"-cell-today"),hO(a,t,_))},prefixColumn:E,cellSelection:!y}))))}var KO=1/3;function JO(t){return t.map((function(t){return[t.value,t.label,t.disabled].join(",")})).join(";")}function QO(t){var e=t.units,n=t.value,i=t.optionalValue,o=t.type,a=t.onChange,s=t.onHover,l=t.onDblClick,c=t.changeOnScroll,u=VO(),d=u.prefixCls,h=u.cellRender,p=u.now,f=u.locale,m="".concat(d,"-time-panel"),g="".concat(d,"-time-panel-cell"),v=r.useRef(null),y=r.useRef(),b=function(){clearTimeout(y.current)},x=function(t,e){var n=r.useRef(!1),i=r.useRef(null),o=r.useRef(null),a=function(){Yg.cancel(i.current),n.current=!1},s=r.useRef();return[Hx((function(){var r=t.current;if(o.current=null,s.current=0,r){var l=r.querySelector('[data-value="'.concat(e,'"]')),c=r.querySelector("li");l&&c&&function t(){a(),n.current=!0,s.current+=1;var e=r.scrollTop,u=c.offsetTop,d=l.offsetTop,h=d-u;if(0===d&&l!==c||!TS(r))s.current<=5&&(i.current=Yg(t));else{var p=e+(h-e)*KO,f=Math.abs(h-p);if(null!==o.current&&o.current<f)a();else{if(o.current=f,f<=1)return r.scrollTop=h,void a();r.scrollTop=p,i.current=Yg(t)}}}()}})),a,function(){return n.current}]}(v,null!=n?n:i),_=Ug(x,3),w=_[0],S=_[1],k=_[2];Rv((function(){return w(),b(),function(){S(),b()}}),[n,i,JO(e)]);var C="".concat(m,"-column");return r.createElement("ul",{className:C,ref:v,"data-type":o,onScroll:function(t){b();var n=t.target;!k()&&c&&(y.current=setTimeout((function(){var t=v.current,r=t.querySelector("li").offsetTop,i=Array.from(t.querySelectorAll("li")).map((function(t){return t.offsetTop-r})),o=i.map((function(t,r){return e[r].disabled?Number.MAX_SAFE_INTEGER:Math.abs(t-n.scrollTop)})),s=Math.min.apply(Math,Zg(o)),l=o.findIndex((function(t){return t===s})),c=e[l];c&&!c.disabled&&a(c.value)}),300))}},e.map((function(t){var e=t.label,i=t.value,c=t.disabled,u=r.createElement("div",{className:"".concat(g,"-inner")},e);return r.createElement("li",{key:i,className:mm(g,Am(Am({},"".concat(g,"-selected"),n===i),"".concat(g,"-disabled"),c)),onClick:function(){c||a(i)},onDoubleClick:function(){!c&&l&&l()},onMouseEnter:function(){s(i)},onMouseLeave:function(){s(null)},"data-value":i},h?h(i,{prefixCls:d,originNode:u,today:p,type:"time",subType:o,locale:f}):u)})))}function tT(t){return t<12}function eT(t){var e=t.showHour,n=t.showMinute,i=t.showSecond,o=t.showMillisecond,a=t.use12Hours,s=t.changeOnScroll,l=VO(),c=l.prefixCls,u=l.values,d=l.generateConfig,h=l.locale,p=l.onSelect,f=l.onHover,m=void 0===f?function(){}:f,g=l.pickerValue,v=(null==u?void 0:u[0])||null,y=r.useContext(qO).onCellDblClick,b=Ug(jO(d,t,v),5),x=b[0],_=b[1],w=b[2],S=b[3],k=b[4],C=function(t){return[v&&d[t](v),g&&d[t](g)]},E=Ug(C("getHour"),2),M=E[0],P=E[1],O=Ug(C("getMinute"),2),T=O[0],N=O[1],A=Ug(C("getSecond"),2),D=A[0],L=A[1],I=Ug(C("getMillisecond"),2),z=I[0],R=I[1],F=null===M?null:tT(M)?"am":"pm",$=r.useMemo((function(){return a?tT(M)?_.filter((function(t){return tT(t.value)})):_.filter((function(t){return!tT(t.value)})):_}),[M,_,a]),j=function(t,e){var n,r=t.filter((function(t){return!t.disabled}));return null!=e?e:null==r||null===(n=r[0])||void 0===n?void 0:n.value},B=j(_,M),H=r.useMemo((function(){return w(B)}),[w,B]),W=j(H,T),V=r.useMemo((function(){return S(B,W)}),[S,B,W]),Y=j(V,D),q=r.useMemo((function(){return k(B,W,Y)}),[k,B,W,Y]),X=j(q,z),U=r.useMemo((function(){if(!a)return[];var t=d.getNow(),e=d.setHour(t,6),n=d.setHour(t,18),r=function(t,e){var n=h.cellMeridiemFormat;return n?bO(t,{generateConfig:d,locale:h,format:n}):e};return[{label:r(e,"AM"),value:"am",disabled:_.every((function(t){return t.disabled||!tT(t.value)}))},{label:r(n,"PM"),value:"pm",disabled:_.every((function(t){return t.disabled||tT(t.value)}))}]}),[_,a,d,h]),Z=function(t){var e=x(t);p(e)},G=r.useMemo((function(){var t=v||g||d.getNow(),e=function(t){return null!=t};return e(M)?(t=d.setHour(t,M),t=d.setMinute(t,T),t=d.setSecond(t,D),t=d.setMillisecond(t,z)):e(P)?(t=d.setHour(t,P),t=d.setMinute(t,N),t=d.setSecond(t,L),t=d.setMillisecond(t,R)):e(B)&&(t=d.setHour(t,B),t=d.setMinute(t,W),t=d.setSecond(t,Y),t=d.setMillisecond(t,X)),t}),[v,g,M,T,D,z,B,W,Y,X,P,N,L,R,d]),K=function(t,e){return null===t?null:d[e](G,t)},J=function(t){return K(t,"setHour")},Q=function(t){return K(t,"setMinute")},tt=function(t){return K(t,"setSecond")},et=function(t){return K(t,"setMillisecond")},nt=function(t){return null===t?null:"am"!==t||tT(M)?"pm"===t&&tT(M)?d.setHour(G,M+12):G:d.setHour(G,M-12)},rt={onDblClick:y,changeOnScroll:s};return r.createElement("div",{className:"".concat(c,"-content")},e&&r.createElement(QO,gm({units:$,value:M,optionalValue:P,type:"hour",onChange:function(t){Z(J(t))},onHover:function(t){m(J(t))}},rt)),n&&r.createElement(QO,gm({units:H,value:T,optionalValue:N,type:"minute",onChange:function(t){Z(Q(t))},onHover:function(t){m(Q(t))}},rt)),i&&r.createElement(QO,gm({units:V,value:D,optionalValue:L,type:"second",onChange:function(t){Z(tt(t))},onHover:function(t){m(tt(t))}},rt)),o&&r.createElement(QO,gm({units:q,value:z,optionalValue:R,type:"millisecond",onChange:function(t){Z(et(t))},onHover:function(t){m(et(t))}},rt)),a&&r.createElement(QO,gm({units:U,value:F,type:"meridiem",onChange:function(t){Z(nt(t))},onHover:function(t){m(nt(t))}},rt)))}function nT(t){var e=t.prefixCls,n=t.value,i=t.locale,o=t.generateConfig,a=t.showTime,s=(a||{}).format,l="".concat(e,"-time-panel"),c=Ug(YO(t,"time"),1)[0];return r.createElement(WO.Provider,{value:c},r.createElement("div",{className:mm(l)},r.createElement(ZO,null,n?bO(n,{locale:i,format:s,generateConfig:o}):" "),r.createElement(eT,a)))}var rT={date:GO,datetime:function(t){var e=t.prefixCls,n=t.generateConfig,i=t.showTime,o=t.onSelect,a=t.value,s=t.pickerValue,l=t.onHover,c="".concat(e,"-datetime-panel"),u=Ug(jO(n,i),1)[0],d=function(t){return xO(n,t,a||s)};return r.createElement("div",{className:c},r.createElement(GO,gm({},t,{onSelect:function(t){var e=d(t);o(u(e,e))},onHover:function(t){null==l||l(t?d(t):t)}})),r.createElement(nT,t))},week:function(t){var e=t.prefixCls,n=t.generateConfig,i=t.locale,o=t.value,a=t.hoverValue,s=t.hoverRangeValue,l=i.locale,c="".concat(e,"-week-panel-row");return r.createElement(GO,gm({},t,{mode:"week",panelName:"week",rowClassName:function(t){var e={};if(s){var r=Ug(s,2),i=r[0],u=r[1],d=mO(n,l,i,t),h=mO(n,l,u,t);e["".concat(c,"-range-start")]=d,e["".concat(c,"-range-end")]=h,e["".concat(c,"-range-hover")]=!d&&!h&&vO(n,i,u,t)}return a&&(e["".concat(c,"-hover")]=a.some((function(e){return mO(n,l,t,e)}))),mm(c,Am({},"".concat(c,"-selected"),!s&&mO(n,l,o,t)),e)}}))},month:function(t){var e=t.prefixCls,n=t.locale,i=t.generateConfig,o=t.pickerValue,a=t.disabledDate,s=t.onPickerValueChange,l=t.onModeChange,c="".concat(e,"-month-panel"),u=Ug(YO(t,"month"),1)[0],d=i.setMonth(o,0),h=n.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(n.locale):[]),p=a?function(t,e){var n=i.setDate(t,1),r=i.setMonth(n,i.getMonth(n)+1),o=i.addDate(r,-1);return a(n,e)&&a(o,e)}:null,f=r.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){l("year")},tabIndex:-1,className:"".concat(e,"-year-btn")},bO(o,{locale:n,format:n.yearFormat,generateConfig:i}));return r.createElement(WO.Provider,{value:u},r.createElement("div",{className:c},r.createElement(ZO,{superOffset:function(t){return i.addYear(o,t)},onChange:s,getStart:function(t){return i.setMonth(t,0)},getEnd:function(t){return i.setMonth(t,11)}},f),r.createElement(XO,gm({},t,{disabledDate:p,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:d,getCellDate:function(t,e){return i.addMonth(t,e)},getCellText:function(t){var e=i.getMonth(t);return n.monthFormat?bO(t,{locale:n,format:n.monthFormat,generateConfig:i}):h[e]},getCellClassName:function(){return Am({},"".concat(e,"-cell-in-view"),!0)}}))))},quarter:function(t){var e=t.prefixCls,n=t.locale,i=t.generateConfig,o=t.pickerValue,a=t.onPickerValueChange,s=t.onModeChange,l="".concat(e,"-quarter-panel"),c=Ug(YO(t,"quarter"),1)[0],u=i.setMonth(o,0),d=r.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(e,"-year-btn")},bO(o,{locale:n,format:n.yearFormat,generateConfig:i}));return r.createElement(WO.Provider,{value:c},r.createElement("div",{className:l},r.createElement(ZO,{superOffset:function(t){return i.addYear(o,t)},onChange:a,getStart:function(t){return i.setMonth(t,0)},getEnd:function(t){return i.setMonth(t,11)}},d),r.createElement(XO,gm({},t,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:function(t,e){return i.addMonth(t,3*e)},getCellText:function(t){return bO(t,{locale:n,format:n.cellQuarterFormat,generateConfig:i})},getCellClassName:function(){return Am({},"".concat(e,"-cell-in-view"),!0)}}))))},year:function(t){var e=t.prefixCls,n=t.locale,i=t.generateConfig,o=t.pickerValue,a=t.disabledDate,s=t.onPickerValueChange,l=t.onModeChange,c="".concat(e,"-year-panel"),u=Ug(YO(t,"year"),1)[0],d=function(t){var e=10*Math.floor(i.getYear(t)/10);return i.setYear(t,e)},h=function(t){var e=d(t);return i.addYear(e,9)},p=d(o),f=h(o),m=i.addYear(p,-1),g=a?function(t,e){var n=i.setMonth(t,0),r=i.setDate(n,1),o=i.addYear(r,1),s=i.addDate(o,-1);return a(r,e)&&a(s,e)}:null,v=r.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){l("decade")},tabIndex:-1,className:"".concat(e,"-decade-btn")},bO(p,{locale:n,format:n.yearFormat,generateConfig:i}),"-",bO(f,{locale:n,format:n.yearFormat,generateConfig:i}));return r.createElement(WO.Provider,{value:u},r.createElement("div",{className:c},r.createElement(ZO,{superOffset:function(t){return i.addYear(o,10*t)},onChange:s,getStart:d,getEnd:h},v),r.createElement(XO,gm({},t,{disabledDate:g,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:function(t,e){return i.addYear(t,e)},getCellText:function(t){return bO(t,{locale:n,format:n.cellYearFormat,generateConfig:i})},getCellClassName:function(t){return Am({},"".concat(e,"-cell-in-view"),cO(i,t,p)||cO(i,t,f)||vO(i,p,f,t))}}))))},decade:function(t){var e=t.prefixCls,n=t.locale,i=t.generateConfig,o=t.pickerValue,a=t.disabledDate,s=t.onPickerValueChange,l="".concat(e,"-decade-panel"),c=Ug(YO(t,"decade"),1)[0],u=function(t){var e=100*Math.floor(i.getYear(t)/100);return i.setYear(t,e)},d=function(t){var e=u(t);return i.addYear(e,99)},h=u(o),p=d(o),f=i.addYear(h,-10),m=a?function(t,e){var n=i.setDate(t,1),r=i.setMonth(n,0),o=i.setYear(r,10*Math.floor(i.getYear(r)/10)),s=i.addYear(o,10),l=i.addDate(s,-1);return a(o,e)&&a(l,e)}:null,g="".concat(bO(h,{locale:n,format:n.yearFormat,generateConfig:i}),"-").concat(bO(p,{locale:n,format:n.yearFormat,generateConfig:i}));return r.createElement(WO.Provider,{value:c},r.createElement("div",{className:l},r.createElement(ZO,{superOffset:function(t){return i.addYear(o,100*t)},onChange:s,getStart:u,getEnd:d},g),r.createElement(XO,gm({},t,{disabledDate:m,colNum:3,rowNum:4,baseDate:f,getCellDate:function(t,e){return i.addYear(t,10*e)},getCellText:function(t){var e=n.cellYearFormat,r=bO(t,{locale:n,format:e,generateConfig:i}),o=bO(i.addYear(t,9),{locale:n,format:e,generateConfig:i});return"".concat(r,"-").concat(o)},getCellClassName:function(t){return Am({},"".concat(e,"-cell-in-view"),lO(i,t,h)||lO(i,t,p)||vO(i,h,p,t))}}))))},time:nT};function iT(t,e){var n,i=t.locale,o=t.generateConfig,a=t.direction,s=t.prefixCls,l=t.tabIndex,c=void 0===l?0:l,u=t.multiple,d=t.defaultValue,h=t.value,p=t.onChange,f=t.onSelect,m=t.defaultPickerValue,g=t.pickerValue,v=t.onPickerValueChange,y=t.mode,b=t.onPanelChange,x=t.picker,_=void 0===x?"date":x,w=t.showTime,S=t.hoverValue,k=t.hoverRangeValue,C=t.cellRender,E=t.dateRender,M=t.monthCellRender,P=t.components,O=void 0===P?{}:P,T=t.hideHeader,N=(null===(n=r.useContext($P))||void 0===n?void 0:n.prefixCls)||s||"rc-picker",A=r.useRef();r.useImperativeHandle(e,(function(){return{nativeElement:A.current}}));var D=Ug(iO(t),4),L=D[0],I=D[1],z=D[2],R=D[3],F=JP(i,I),$="date"===_&&w?"datetime":_,j=r.useMemo((function(){return oO($,z,R,L,F)}),[$,z,R,L,F]),B=o.getNow(),H=Ug(qx(_,{value:y,postState:function(t){return t||"date"}}),2),W=H[0],V=H[1],Y="date"===W&&j?"datetime":W,q=HO(o,i,$),X=Ug(qx(d,{value:h}),2),U=X[0],Z=X[1],G=r.useMemo((function(){var t=WP(U).filter((function(t){return t}));return u?t:t.slice(0,1)}),[U,u]),K=Hx((function(t){Z(t),p&&(null===t||G.length!==t.length||G.some((function(e,n){return!gO(o,i,e,t[n],$)})))&&(null==p||p(u?t:t[0]))})),J=Hx((function(t){if(null==f||f(t),W===_){var e=u?q(G,t):[t];K(e)}})),Q=Ug(qx(m||G[0]||B,{value:g}),2),tt=Q[0],et=Q[1];r.useEffect((function(){G[0]&&!g&&et(G[0])}),[G[0]]);var nt=function(t,e){null==b||b(t||g,e||W)},rt=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];et(t),null==v||v(t),e&&nt(t)},it=function(t,e){V(t),e&&rt(e),nt(e,t)},ot=r.useMemo((function(){var t,e;if(Array.isArray(k)){var n=Ug(k,2);t=n[0],e=n[1]}else t=k;return t||e?(t=t||e,e=e||t,o.isAfter(t,e)?[e,t]:[t,e]):null}),[k,o]),at=ZP(C,E,M),st=O[Y]||rT[Y]||GO,lt=r.useContext(qO),ct=r.useMemo((function(){return Lm(Lm({},lt),{},{hideHeader:T})}),[lt,T]);"production"!==process.env.NODE_ENV&&Om(!G||G.every((function(t){return o.isValidate(t)})),"Invalidate date pass to `value` or `defaultValue`.");var ut="".concat(N,"-panel"),dt=YP(t,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return r.createElement(qO.Provider,{value:ct},r.createElement("div",{ref:A,tabIndex:c,className:mm(ut,Am({},"".concat(ut,"-rtl"),"rtl"===a))},r.createElement(st,gm({},dt,{showTime:j,prefixCls:N,locale:F,generateConfig:o,onModeChange:it,pickerValue:tt,onPickerValueChange:function(t){rt(t,!0)},value:G[0],onSelect:function(t){if(J(t),rt(t),W!==_){var e=["decade","year"],n=[].concat(e,["month"]),r={quarter:[].concat(e,["quarter"]),week:[].concat(Zg(n),["week"]),date:[].concat(Zg(n),["date"])}[_]||n,i=r.indexOf(W),o=r[i+1];o&&it(o,t)}},values:G,cellRender:at,hoverRangeValue:ot,hoverValue:S}))))}var oT=r.memo(r.forwardRef(iT));function aT(t){var e=t.picker,n=t.multiplePanel,i=t.pickerValue,o=t.onPickerValueChange,a=t.needConfirm,s=t.onSubmit,l=t.range,c=t.hoverValue,u=r.useContext($P),d=u.prefixCls,h=u.generateConfig,p=r.useCallback((function(t,n){return PO(h,e,t,n)}),[h,e]),f=r.useMemo((function(){return p(i,1)}),[i,p]),m={onCellDblClick:function(){a&&s()}},g="time"===e,v=Lm(Lm({},t),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return l?v.hoverRangeValue=c:v.hoverValue=c,n?r.createElement("div",{className:"".concat(d,"-panels")},r.createElement(qO.Provider,{value:Lm(Lm({},m),{},{hideNext:!0})},r.createElement(oT,v)),r.createElement(qO.Provider,{value:Lm(Lm({},m),{},{hidePrev:!0})},r.createElement(oT,gm({},v,{pickerValue:f,onPickerValueChange:function(t){o(p(t,-1))}})))):r.createElement(qO.Provider,{value:Lm({},m)},r.createElement(oT,v))}function sT(t){return"function"==typeof t?t():t}function lT(t){var e=t.prefixCls,n=t.presets,i=t.onClick,o=t.onHover;return n.length?r.createElement("div",{className:"".concat(e,"-presets")},r.createElement("ul",null,n.map((function(t,e){var n=t.label,a=t.value;return r.createElement("li",{key:e,onClick:function(){i(sT(a))},onMouseEnter:function(){o(sT(a))},onMouseLeave:function(){o(null)}},n)})))):null}function cT(t){var e=t.panelRender,n=t.internalMode,i=t.picker,o=t.showNow,a=t.range,s=t.multiple,l=t.activeInfo,c=void 0===l?[0,0,0]:l,u=t.presets,d=t.onPresetHover,h=t.onPresetSubmit,p=t.onFocus,f=t.onBlur,m=t.onPanelMouseDown,g=t.direction,v=t.value,y=t.onSelect,b=t.isInvalid,x=t.defaultOpenValue,_=t.onOk,w=t.onSubmit,S=r.useContext($P).prefixCls,k="".concat(S,"-panel"),C="rtl"===g,E=r.useRef(null),M=r.useRef(null),P=Ug(r.useState(0),2),O=P[0],T=P[1],N=Ug(r.useState(0),2),A=N[0],D=N[1],L=Ug(r.useState(0),2),I=L[0],z=L[1],R=Ug(c,3),F=R[0],$=R[1],j=R[2];function B(t){return t.filter((function(t){return t}))}r.useEffect((function(){if(a&&M.current){var t,e=(null===(t=E.current)||void 0===t?void 0:t.offsetWidth)||0,n=M.current.getBoundingClientRect(),r=(C?$-e:F)-n.left;if(z(r),O&&O<j){var i=C?n.right-($-e+O):F+e-n.left-O,o=Math.max(0,i);D(o)}else D(0)}}),[C,O,F,$,j,a]);var H=r.useMemo((function(){return B(WP(v))}),[v]),W="time"===i&&!H.length,V=r.useMemo((function(){return W?B([x]):H}),[W,H,x]),Y=W?x:H,q=r.useMemo((function(){return!V.length||V.some((function(t){return b(t)}))}),[V,b]),X=r.createElement("div",{className:"".concat(S,"-panel-layout")},r.createElement(lT,{prefixCls:S,presets:u,onClick:h,onHover:d}),r.createElement("div",null,r.createElement(aT,gm({},t,{value:Y})),r.createElement(BO,gm({},t,{showNow:!s&&o,invalid:q,onSubmit:function(){W&&y(x),_(),w()}}))));e&&(X=e(X));var U="".concat(k,"-container"),Z="marginLeft",G="marginRight",K=r.createElement("div",{onMouseDown:m,tabIndex:-1,className:mm(U,"".concat(S,"-").concat(n,"-panel-container")),style:Am(Am({},C?G:Z,A),C?Z:G,"auto"),onFocus:p,onBlur:f},X);return a&&(K=r.createElement("div",{onMouseDown:m,ref:M,className:mm("".concat(S,"-range-wrapper"),"".concat(S,"-").concat(i,"-range-wrapper"))},r.createElement("div",{ref:E,className:"".concat(S,"-range-arrow"),style:{left:I}}),r.createElement(Fg,{onResize:function(t){t.width&&T(t.width)}},K))),K}function uT(t,e){var n=t.format,i=t.maskFormat,o=t.generateConfig,a=t.locale,s=t.preserveInvalidOnBlur,l=t.inputReadOnly,c=t.required,u=t["aria-required"],d=t.onSubmit,h=t.onFocus,p=t.onBlur,f=t.onInputChange,m=t.onInvalid,g=t.open,v=t.onOpenChange,y=t.onKeyDown,b=t.onChange,x=t.activeHelp,_=t.name,w=t.autoComplete,S=t.id,k=t.value,C=t.invalid,E=t.placeholder,M=t.disabled,P=t.activeIndex,O=t.allHelp,T=t.picker,N=function(t,e){var n=o.locale.parse(a.locale,t,[e]);return n&&o.isValidate(n)?n:null},A=n[0],D=r.useCallback((function(t){return bO(t,{locale:a,format:A,generateConfig:o})}),[a,o,A]),L=r.useMemo((function(){return k.map(D)}),[k,D]),I=r.useMemo((function(){var t="time"===T?8:10,e="function"==typeof A?A(o.getNow()).length:A.length;return Math.max(t,e)+2}),[A,T,o]),z=function(t){for(var e=0;e<n.length;e+=1){var r=n[e];if("string"==typeof r){var i=N(t,r);if(i)return i}}return!1};return[function(n){function r(t){return void 0!==n?t[n]:t}var o=Lm(Lm({},Kw(t,{aria:!0,data:!0})),{},{format:i,validateFormat:function(t){return!!z(t)},preserveInvalidOnBlur:s,readOnly:l,required:c,"aria-required":u,name:_,autoComplete:w,size:I,id:r(S),value:r(L)||"",invalid:r(C),placeholder:r(E),active:P===n,helped:O||x&&P===n,disabled:r(M),onFocus:function(t){h(t,n)},onBlur:function(t){p(t,n)},onSubmit:d,onChange:function(t){f();var e=z(t);if(e)return m(!1,n),void b(e,n);m(!!t,n)},onHelp:function(){v(!0,{index:n})},onKeyDown:function(t){var e=!1;if(null==y||y(t,(function(){"production"!==process.env.NODE_ENV&&Om(!1,"`preventDefault` callback is deprecated. Please call `event.preventDefault` directly."),e=!0})),!t.defaultPrevented&&!e)switch(t.key){case"Escape":v(!1,{index:n});break;case"Enter":g||v(!0)}}},null==e?void 0:e({valueTexts:L}));return Object.keys(o).forEach((function(t){void 0===o[t]&&delete o[t]})),o},D]}"production"!==process.env.NODE_ENV&&(oT.displayName="PanelPicker");var dT=["onMouseEnter","onMouseLeave"];function hT(t){return r.useMemo((function(){return YP(t,dT)}),[t])}var pT=["icon","type"],fT=["onClear"];function mT(t){var e=t.icon,n=t.type,i=hv(t,pT),o=r.useContext($P).prefixCls;return e?r.createElement("span",gm({className:"".concat(o,"-").concat(n)},i),e):null}function gT(t){var e=t.onClear,n=hv(t,fT);return r.createElement(mT,gm({},n,{type:"clear",role:"button",onMouseDown:function(t){t.preventDefault()},onClick:function(t){t.stopPropagation(),e()}}))}var vT=["YYYY","MM","DD","HH","mm","ss","SSS"],yT=function(){function t(e){Cg(this,t),Am(this,"format",void 0),Am(this,"maskFormat",void 0),Am(this,"cells",void 0),Am(this,"maskCells",void 0),this.format=e;var n=vT.map((function(t){return"(".concat(t,")")})).join("|"),r=new RegExp(n,"g");this.maskFormat=e.replace(r,(function(t){return"顧".repeat(t.length)}));var i=new RegExp("(".concat(vT.join("|"),")")),o=(e.split(i)||[]).filter((function(t){return t})),a=0;this.cells=o.map((function(t){var e=vT.includes(t),n=a,r=a+t.length;return a=r,{text:t,mask:e,start:n,end:r}})),this.maskCells=this.cells.filter((function(t){return t.mask}))}return Mg(t,[{key:"getSelection",value:function(t){var e=this.maskCells[t]||{};return[e.start||0,e.end||0]}},{key:"match",value:function(t){for(var e=0;e<this.maskFormat.length;e+=1){var n=this.maskFormat[e],r=t[e];if(!r||"顧"!==n&&n!==r)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(t){for(var e=Number.MAX_SAFE_INTEGER,n=0,r=0;r<this.maskCells.length;r+=1){var i=this.maskCells[r],o=i.start,a=i.end;if(t>=o&&t<=a)return r;var s=Math.min(Math.abs(t-o),Math.abs(t-a));s<e&&(e=s,n=r)}return n}}]),t}();var bT=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],xT=r.forwardRef((function(t,e){var n=t.active,i=t.showActiveCls,o=void 0===i||i,a=t.suffixIcon,s=t.format,l=t.validateFormat,c=t.onChange;t.onInput;var u=t.helped,d=t.onHelp,h=t.onSubmit,p=t.onKeyDown,f=t.preserveInvalidOnBlur,m=void 0!==f&&f,g=t.invalid,v=t.clearIcon,y=hv(t,bT),b=t.value,x=t.onFocus,_=t.onBlur,w=t.onMouseUp,S=r.useContext($P),k=S.prefixCls,C=S.input,E=void 0===C?"input":C,M="".concat(k,"-input"),P=Ug(r.useState(!1),2),O=P[0],T=P[1],N=Ug(r.useState(b),2),A=N[0],D=N[1],L=Ug(r.useState(""),2),I=L[0],z=L[1],R=Ug(r.useState(null),2),F=R[0],$=R[1],j=Ug(r.useState(null),2),B=j[0],H=j[1],W=A||"";r.useEffect((function(){D(b)}),[b]);var V=r.useRef(),Y=r.useRef();r.useImperativeHandle(e,(function(){return{nativeElement:V.current,inputElement:Y.current,focus:function(t){Y.current.focus(t)},blur:function(){Y.current.blur()}}}));var q=r.useMemo((function(){return new yT(s||"")}),[s]),X=Ug(r.useMemo((function(){return u?[0,0]:q.getSelection(F)}),[q,F,u]),2),U=X[0],Z=X[1],G=function(t){t&&t!==s&&t!==b&&d()},K=Hx((function(t){l(t)&&c(t),D(t),G(t)})),J=r.useRef(!1),Q=function(t){_(t)};EO(n,(function(){n||m||D(b)}));var tt=function(t){"Enter"===t.key&&l(W)&&h(),null==p||p(t)},et=r.useRef();Rv((function(){if(O&&s&&!J.current){if(q.match(W))return Y.current.setSelectionRange(U,Z),et.current=Yg((function(){Y.current.setSelectionRange(U,Z)})),function(){Yg.cancel(et.current)};K(s)}}),[q,s,O,W,F,U,Z,B,K]);var nt=s?{onFocus:function(t){T(!0),$(0),z(""),x(t)},onBlur:function(t){T(!1),Q(t)},onKeyDown:function(t){tt(t);var e=t.key,n=null,r=null,i=Z-U,o=s.slice(U,Z),a=function(t){$((function(e){var n=e+t;return n=Math.max(n,0),n=Math.min(n,q.size()-1)}))},l=function(t){var e=function(t){return{YYYY:[0,9999,(new Date).getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[t]}(o),n=Ug(e,3),r=n[0],i=n[1],a=n[2],s=W.slice(U,Z),l=Number(s);if(isNaN(l))return String(a||(t>0?r:i));var c=i-r+1;return String(r+(c+(l+t)-r)%c)};switch(e){case"Backspace":case"Delete":n="",r=o;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",r=l(1);break;case"ArrowDown":n="",r=l(-1);break;default:isNaN(Number(e))||(r=n=I+e)}if(null!==n&&(z(n),n.length>=i&&(a(1),z(""))),null!==r){var c=W.slice(0,U)+HP(r,i)+W.slice(Z);K(c.slice(0,s.length))}H({})},onMouseDown:function(){J.current=!0},onMouseUp:function(t){var e=t.target.selectionStart,n=q.getMaskCellIndex(e);$(n),H({}),null==w||w(t),J.current=!1},onPaste:function(t){var e=t.clipboardData.getData("text");l(e)&&K(e)}}:{};return r.createElement("div",{ref:V,className:mm(M,Am(Am({},"".concat(M,"-active"),n&&o),"".concat(M,"-placeholder"),u))},r.createElement(E,gm({ref:Y,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:tt,onBlur:Q},nt,{value:W,onChange:function(t){if(!s){var e=t.target.value;G(e),D(e),c(e)}}})),r.createElement(mT,{type:"suffix",icon:a}),v)}));"production"!==process.env.NODE_ENV&&(xT.displayName="Input");var _T=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],wT=["index"];function ST(t,e){var n=t.id,i=t.prefix,o=t.clearIcon,a=t.suffixIcon,s=t.separator,l=void 0===s?"~":s,c=t.activeIndex;t.activeHelp,t.allHelp;var u=t.focused;t.onFocus,t.onBlur,t.onKeyDown,t.locale,t.generateConfig;var d=t.placeholder,h=t.className,p=t.style,f=t.onClick,m=t.onClear,g=t.value;t.onChange,t.onSubmit,t.onInputChange,t.format,t.maskFormat,t.preserveInvalidOnBlur,t.onInvalid;var v=t.disabled,y=t.invalid;t.inputReadOnly;var b=t.direction;t.onOpenChange;var x=t.onActiveInfo;t.placement;var _=t.onMouseDown;t.required,t["aria-required"];var w=t.autoFocus,S=t.tabIndex,k=hv(t,_T),C="rtl"===b,E=r.useContext($P).prefixCls,M=r.useMemo((function(){if("string"==typeof n)return[n];var t=n||{};return[t.start,t.end]}),[n]),P=r.useRef(),O=r.useRef(),T=r.useRef(),N=function(t){var e;return null===(e=[O,T][t])||void 0===e?void 0:e.current};r.useImperativeHandle(e,(function(){return{nativeElement:P.current,focus:function(t){if("object"===Tm(t)){var e,n=t||{},r=n.index,i=void 0===r?0:r,o=hv(n,wT);null===(e=N(i))||void 0===e||e.focus(o)}else{var a;null===(a=N(null!=t?t:0))||void 0===a||a.focus()}},blur:function(){var t,e;null===(t=N(0))||void 0===t||t.blur(),null===(e=N(1))||void 0===e||e.blur()}}}));var A=hT(k),D=r.useMemo((function(){return Array.isArray(d)?d:[d,d]}),[d]),L=Ug(uT(Lm(Lm({},t),{},{id:M,placeholder:D})),1)[0],I=Ug(r.useState({position:"absolute",width:0}),2),z=I[0],R=I[1],F=Hx((function(){var t=N(c);if(t){var e=t.nativeElement.getBoundingClientRect(),n=P.current.getBoundingClientRect(),r=e.left-n.left;R((function(t){return Lm(Lm({},t),{},{width:e.width,left:r})})),x([e.left,e.right,n.width])}}));r.useEffect((function(){F()}),[c]);var $=o&&(g[0]&&!v[0]||g[1]&&!v[1]),j=w&&!v[0],B=w&&!j&&!v[1];return r.createElement(Fg,{onResize:F},r.createElement("div",gm({},A,{className:mm(E,"".concat(E,"-range"),Am(Am(Am(Am({},"".concat(E,"-focused"),u),"".concat(E,"-disabled"),v.every((function(t){return t}))),"".concat(E,"-invalid"),y.some((function(t){return t}))),"".concat(E,"-rtl"),C),h),style:p,ref:P,onClick:f,onMouseDown:function(t){var e=t.target;e!==O.current.inputElement&&e!==T.current.inputElement&&t.preventDefault(),null==_||_(t)}}),i&&r.createElement("div",{className:"".concat(E,"-prefix")},i),r.createElement(xT,gm({ref:O},L(0),{autoFocus:j,tabIndex:S,"date-range":"start"})),r.createElement("div",{className:"".concat(E,"-range-separator")},l),r.createElement(xT,gm({ref:T},L(1),{autoFocus:B,tabIndex:S,"date-range":"end"})),r.createElement("div",{className:"".concat(E,"-active-bar"),style:z}),r.createElement(mT,{type:"suffix",icon:a}),$&&r.createElement(gT,{icon:o,onClear:m})))}var kT=r.forwardRef(ST);function CT(t,e){var n=null!=t?t:e;return Array.isArray(n)?n:[n,n]}function ET(t){return 1===t?"end":"start"}function MT(t,e){var n=wO(t,(function(){var e=t.disabled,n=t.allowEmpty;return{disabled:CT(e,!1),allowEmpty:CT(n,!1)}})),i=Ug(n,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=o.prefixCls,h=o.styles,p=o.classNames,f=o.defaultValue,m=o.value,g=o.needConfirm,v=o.onKeyDown,y=o.disabled,b=o.allowEmpty,x=o.disabledDate,_=o.minDate,w=o.maxDate,S=o.defaultOpen,k=o.open,C=o.onOpenChange,E=o.locale,M=o.generateConfig,P=o.picker,O=o.showNow,T=o.showToday,N=o.showTime,A=o.mode,D=o.onPanelChange,L=o.onCalendarChange,I=o.onOk,z=o.defaultPickerValue,R=o.pickerValue,F=o.onPickerValueChange,$=o.inputReadOnly,j=o.suffixIcon,B=o.onFocus,H=o.onBlur,W=o.presets,V=o.ranges,Y=o.components,q=o.cellRender,X=o.dateRender,U=o.monthCellRender,Z=o.onClick,G=kO(e),K=Ug(SO(k,S,y,C),2),J=K[0],Q=K[1],tt=function(t,e){!y.some((function(t){return!t}))&&t||Q(t,e)},et=Ug(IO(M,E,l,!0,!1,f,m,L,I),5),nt=et[0],rt=et[1],it=et[2],ot=et[3],at=et[4],st=it(),lt=Ug(MO(y,b,J),9),ct=lt[0],ut=lt[1],dt=lt[2],ht=lt[3],pt=lt[4],ft=lt[5],mt=lt[6],gt=lt[7],vt=lt[8],yt=function(t,e){ut(!0),null==B||B(t,{range:ET(null!=e?e:ht)})},bt=function(t,e){ut(!1),null==H||H(t,{range:ET(null!=e?e:ht)})},xt=r.useMemo((function(){if(!N)return null;var t=N.disabledTime,e=t?function(e){var n=ET(ht),r=XP(st,mt,ht);return t(e,n,{from:r})}:void 0;return Lm(Lm({},N),{},{disabledTime:e})}),[N,ht,st,mt]),_t=Ug(qx([P,P],{value:A}),2),wt=_t[0],St=_t[1],kt=wt[ht]||P,Ct="date"===kt&&xt?"datetime":kt,Et=Ct===P&&"time"!==Ct,Mt=RO(P,kt,O,T,!0),Pt=Ug(zO(o,nt,rt,it,ot,y,l,ct,J,u),2),Ot=Pt[0],Tt=Pt[1],Nt=function(t,e,n,r,i,o){var a=n[n.length-1];return function(s,l){var c=Ug(t,2),u=c[0],d=c[1],h=Lm(Lm({},l),{},{from:XP(t,n)});return!(1!==a||!e[0]||!u||gO(r,i,u,s,h.type)||!r.isAfter(u,s))||!(0!==a||!e[1]||!d||gO(r,i,d,s,h.type)||!r.isAfter(s,d))||(null==o?void 0:o(s,h))}}(st,y,mt,M,E,x),At=Ug(GP(st,u,b),2),Dt=At[0],Lt=At[1],It=Ug(TO(M,E,st,wt,J,ht,a,Et,z,R,null==xt?void 0:xt.defaultOpenValue,F,_,w),2),zt=It[0],Rt=It[1],Ft=Hx((function(t,e,n){var r=VP(wt,ht,e);if(r[0]===wt[0]&&r[1]===wt[1]||St(r),D&&!1!==n){var i=Zg(st);t&&(i[ht]=t),D(i,r)}})),$t=function(t,e){return VP(st,e,t)},jt=function(t,e){var n=st;t&&(n=$t(t,ht)),gt(ht);var r=ft(n);ot(n),Ot(ht,null===r),null===r?tt(!1,{force:!0}):e||G.current.focus({index:r})},Bt=Ug(r.useState(null),2),Ht=Bt[0],Wt=Bt[1],Vt=Ug(r.useState(null),2),Yt=Vt[0],qt=Vt[1],Xt=r.useMemo((function(){return Yt||st}),[st,Yt]);r.useEffect((function(){J||qt(null)}),[J]);var Ut=Ug(r.useState([0,0,0]),2),Zt=Ut[0],Gt=Ut[1],Kt=CO(W,V),Jt=ZP(q,X,U,ET(ht)),Qt=st[ht]||null,te=Hx((function(t){return u(t,{activeIndex:ht})})),ee=r.useMemo((function(){var t=Kw(o,!1);return OS(o,[].concat(Zg(Object.keys(t)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))}),[o]),ne=r.createElement(cT,gm({},ee,{showNow:Mt,showTime:xt,range:!0,multiplePanel:Et,activeInfo:Zt,disabledDate:Nt,onFocus:function(t){tt(!0),yt(t)},onBlur:bt,onPanelMouseDown:function(){dt("panel")},picker:P,mode:kt,internalMode:Ct,onPanelChange:Ft,format:c,value:Qt,isInvalid:te,onChange:null,onSelect:function(t){var e=VP(st,ht,t);ot(e),g||s||a!==Ct||jt(t)},pickerValue:zt,defaultOpenValue:WP(null==N?void 0:N.defaultOpenValue)[ht],onPickerValueChange:Rt,hoverValue:Xt,onHover:function(t){qt(t?$t(t,ht):null),Wt("cell")},needConfirm:g,onSubmit:jt,onOk:at,presets:Kt,onPresetHover:function(t){qt(t),Wt("preset")},onPresetSubmit:function(t){Tt(t)&&tt(!1,{force:!0})},onNow:function(t){jt(t)},cellRender:Jt})),re=r.useMemo((function(){return{prefixCls:d,locale:E,generateConfig:M,button:Y.button,input:Y.input}}),[d,E,M,Y.button,Y.input]);if(Rv((function(){J&&void 0!==ht&&Ft(null,P,!1)}),[J,ht,P]),Rv((function(){var t=dt();J||"input"!==t||(tt(!1),jt(null,!0)),J||!s||g||"panel"!==t||(tt(!0),jt())}),[J]),"production"!==process.env.NODE_ENV){y.some((function(t,e){return t&&function(t){return!(null!=m&&m[t]||null!=f&&f[t])}(e)&&!b[e]}))&&Om(!1,"`disabled` should not set with empty `value`. You should set `allowEmpty` or `value` instead.")}return r.createElement($P.Provider,{value:re},r.createElement(BP,gm({},UP(o),{popupElement:ne,popupStyle:h.popup,popupClassName:p.popup,visible:J,onClose:function(){tt(!1)},range:!0}),r.createElement(kT,gm({},o,{ref:G,suffixIcon:j,activeIndex:ct||J?ht:null,activeHelp:!!Yt,allHelp:!!Yt&&"preset"===Ht,focused:ct,onFocus:function(t,e){var n=mt.length,r=mt[n-1];n&&r!==e&&g&&!b[r]&&!vt(r)&&st[r]?G.current.focus({index:r}):(dt("input"),tt(!0,{inherit:!0}),ht!==e&&J&&!g&&s&&jt(null,!0),pt(e),yt(t,e))},onBlur:function(t,e){if(tt(!1),!g&&"input"===dt()){var n=ft(st);Ot(ht,null===n)}bt(t,e)},onKeyDown:function(t,e){"Tab"===t.key&&jt(null,!0),null==v||v(t,e)},onSubmit:jt,value:Xt,maskFormat:c,onChange:function(t,e){var n=$t(t,e);ot(n)},onInputChange:function(){dt("input")},format:l,inputReadOnly:$,disabled:y,open:J,onOpenChange:tt,onClick:function(t){var e,n=t.target.getRootNode();if(!G.current.nativeElement.contains(null!==(e=n.activeElement)&&void 0!==e?e:document.activeElement)){var r=y.findIndex((function(t){return!t}));r>=0&&G.current.focus({index:r})}tt(!0),null==Z||Z(t)},onClear:function(){Tt(null),tt(!1,{force:!0})},invalid:Dt,onInvalid:Lt,onActiveInfo:Gt}))))}"production"!==process.env.NODE_ENV&&(kT.displayName="RangeSelector");var PT=r.forwardRef(MT);function OT(t){var e=t.prefixCls,n=t.value,i=t.onRemove,o=t.removeIcon,a=void 0===o?"×":o,s=t.formatDate,l=t.disabled,c=t.maxTagCount,u=t.placeholder,d="".concat(e,"-selector"),h="".concat(e,"-selection"),p="".concat(h,"-overflow");function f(t,e){return r.createElement("span",{className:mm("".concat(h,"-item")),title:"string"==typeof t?t:null},r.createElement("span",{className:"".concat(h,"-item-content")},t),!l&&e&&r.createElement("span",{onMouseDown:function(t){t.preventDefault()},onClick:e,className:"".concat(h,"-item-remove")},a))}return r.createElement("div",{className:d},r.createElement(SM,{prefixCls:p,data:n,renderItem:function(t){return f(s(t),(function(e){e&&e.stopPropagation(),i(t)}))},renderRest:function(t){return f("+ ".concat(t.length," ..."))},itemKey:function(t){return s(t)},maxCount:c}),!n.length&&r.createElement("span",{className:"".concat(e,"-selection-placeholder")},u))}"production"!==process.env.NODE_ENV&&(PT.displayName="RefRangePicker");var TT=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function NT(t,e){t.id;var n=t.open,i=t.prefix,o=t.clearIcon,a=t.suffixIcon;t.activeHelp,t.allHelp;var s=t.focused;t.onFocus,t.onBlur,t.onKeyDown;var l=t.locale,c=t.generateConfig,u=t.placeholder,d=t.className,h=t.style,p=t.onClick,f=t.onClear,m=t.internalPicker,g=t.value,v=t.onChange,y=t.onSubmit;t.onInputChange;var b=t.multiple,x=t.maxTagCount;t.format,t.maskFormat,t.preserveInvalidOnBlur,t.onInvalid;var _=t.disabled,w=t.invalid;t.inputReadOnly;var S=t.direction;t.onOpenChange;var k=t.onMouseDown;t.required,t["aria-required"];var C=t.autoFocus,E=t.tabIndex,M=t.removeIcon,P=hv(t,TT),O="rtl"===S,T=r.useContext($P).prefixCls,N=r.useRef(),A=r.useRef();r.useImperativeHandle(e,(function(){return{nativeElement:N.current,focus:function(t){var e;null===(e=A.current)||void 0===e||e.focus(t)},blur:function(){var t;null===(t=A.current)||void 0===t||t.blur()}}}));var D=hT(P),L=uT(Lm(Lm({},t),{},{onChange:function(t){v([t])}}),(function(t){return{value:t.valueTexts[0]||"",active:s}})),I=Ug(L,2),z=I[0],R=I[1],F=!(!o||!g.length||_),$=b?r.createElement(r.Fragment,null,r.createElement(OT,{prefixCls:T,value:g,onRemove:function(t){var e=g.filter((function(e){return e&&!gO(c,l,e,t,m)}));v(e),n||y()},formatDate:R,maxTagCount:x,disabled:_,removeIcon:M,placeholder:u}),r.createElement("input",{className:"".concat(T,"-multiple-input"),value:g.map(R).join(","),ref:A,readOnly:!0,autoFocus:C,tabIndex:E}),r.createElement(mT,{type:"suffix",icon:a}),F&&r.createElement(gT,{icon:o,onClear:f})):r.createElement(xT,gm({ref:A},z(),{autoFocus:C,tabIndex:E,suffixIcon:a,clearIcon:F&&r.createElement(gT,{icon:o,onClear:f}),showActiveCls:!1}));return r.createElement("div",gm({},D,{className:mm(T,Am(Am(Am(Am(Am({},"".concat(T,"-multiple"),b),"".concat(T,"-focused"),s),"".concat(T,"-disabled"),_),"".concat(T,"-invalid"),w),"".concat(T,"-rtl"),O),d),style:h,ref:N,onClick:p,onMouseDown:function(t){var e;t.target!==(null===(e=A.current)||void 0===e?void 0:e.inputElement)&&t.preventDefault(),null==k||k(t)}}),i&&r.createElement("div",{className:"".concat(T,"-prefix")},i),$)}var AT=r.forwardRef(NT);function DT(t,e){var n=Ug(wO(t),6),i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=i,d=u.prefixCls,h=u.styles,p=u.classNames,f=u.order,m=u.defaultValue,g=u.value,v=u.needConfirm,y=u.onChange,b=u.onKeyDown,x=u.disabled,_=u.disabledDate,w=u.minDate,S=u.maxDate,k=u.defaultOpen,C=u.open,E=u.onOpenChange,M=u.locale,P=u.generateConfig,O=u.picker,T=u.showNow,N=u.showToday,A=u.showTime,D=u.mode,L=u.onPanelChange,I=u.onCalendarChange,z=u.onOk,R=u.multiple,F=u.defaultPickerValue,$=u.pickerValue,j=u.onPickerValueChange,B=u.inputReadOnly,H=u.suffixIcon,W=u.removeIcon,V=u.onFocus,Y=u.onBlur,q=u.presets,X=u.components,U=u.cellRender,Z=u.dateRender,G=u.monthCellRender,K=u.onClick,J=kO(e);function Q(t){return null===t?null:R?t:t[0]}var tt=HO(P,M,o),et=Ug(SO(C,k,[x],E),2),nt=et[0],rt=et[1],it=Ug(IO(P,M,s,!1,f,m,g,(function(t,e,n){if(I){var r=Lm({},n);delete r.range,I(Q(t),Q(e),r)}}),(function(t){null==z||z(Q(t))})),5),ot=it[0],at=it[1],st=it[2],lt=it[3],ct=it[4],ut=st(),dt=Ug(MO([x]),4),ht=dt[0],pt=dt[1],ft=dt[2],mt=dt[3],gt=function(t){pt(!0),null==V||V(t,{})},vt=function(t){pt(!1),null==Y||Y(t,{})},yt=Ug(qx(O,{value:D}),2),bt=yt[0],xt=yt[1],_t="date"===bt&&A?"datetime":bt,wt=RO(O,bt,T,N),St=y&&function(t,e){y(Q(t),Q(e))},kt=Ug(zO(Lm(Lm({},i),{},{onChange:St}),ot,at,st,lt,[],s,ht,nt,c),2)[1],Ct=Ug(GP(ut,c),2),Et=Ct[0],Mt=Ct[1],Pt=r.useMemo((function(){return Et.some((function(t){return t}))}),[Et]),Ot=Ug(TO(P,M,ut,[bt],nt,mt,o,!1,F,$,WP(null==A?void 0:A.defaultOpenValue),(function(t,e){if(j){var n=Lm(Lm({},e),{},{mode:e.mode[0]});delete n.range,j(t[0],n)}}),w,S),2),Tt=Ot[0],Nt=Ot[1],At=Hx((function(t,e,n){if(xt(e),L&&!1!==n){var r=t||ut[ut.length-1];L(r,e)}})),Dt=function(){kt(st()),rt(!1,{force:!0})},Lt=Ug(r.useState(null),2),It=Lt[0],zt=Lt[1],Rt=Ug(r.useState(null),2),Ft=Rt[0],$t=Rt[1],jt=r.useMemo((function(){var t=[Ft].concat(Zg(ut)).filter((function(t){return t}));return R?t:t.slice(0,1)}),[ut,Ft,R]),Bt=r.useMemo((function(){return!R&&Ft?[Ft]:ut.filter((function(t){return t}))}),[ut,Ft,R]);r.useEffect((function(){nt||$t(null)}),[nt]);var Ht=CO(q),Wt=function(t){var e=R?tt(st(),t):[t];kt(e)&&!R&&rt(!1,{force:!0})},Vt=ZP(U,Z,G),Yt=r.useMemo((function(){var t=Kw(i,!1);return Lm(Lm({},OS(i,[].concat(Zg(Object.keys(t)),["onChange","onCalendarChange","style","className","onPanelChange"]))),{},{multiple:i.multiple})}),[i]),qt=r.createElement(cT,gm({},Yt,{showNow:wt,showTime:A,disabledDate:_,onFocus:function(t){rt(!0),gt(t)},onBlur:vt,picker:O,mode:bt,internalMode:_t,onPanelChange:At,format:l,value:ut,isInvalid:c,onChange:null,onSelect:function(t){if(ft("panel"),!R||_t===O){var e=R?tt(st(),t):[t];lt(e),v||a||o!==_t||Dt()}},pickerValue:Tt,defaultOpenValue:null==A?void 0:A.defaultOpenValue,onPickerValueChange:Nt,hoverValue:jt,onHover:function(t){$t(t),zt("cell")},needConfirm:v,onSubmit:Dt,onOk:ct,presets:Ht,onPresetHover:function(t){$t(t),zt("preset")},onPresetSubmit:Wt,onNow:function(t){Wt(t)},cellRender:Vt})),Xt=r.useMemo((function(){return{prefixCls:d,locale:M,generateConfig:P,button:X.button,input:X.input}}),[d,M,P,X.button,X.input]);return Rv((function(){nt&&void 0!==mt&&At(null,O,!1)}),[nt,mt,O]),Rv((function(){var t=ft();nt||"input"!==t||(rt(!1),Dt()),nt||!a||v||"panel"!==t||(rt(!0),Dt())}),[nt]),r.createElement($P.Provider,{value:Xt},r.createElement(BP,gm({},UP(i),{popupElement:qt,popupStyle:h.popup,popupClassName:p.popup,visible:nt,onClose:function(){rt(!1)}}),r.createElement(AT,gm({},i,{ref:J,suffixIcon:H,removeIcon:W,activeHelp:!!Ft,allHelp:!!Ft&&"preset"===It,focused:ht,onFocus:function(t){ft("input"),rt(!0,{inherit:!0}),gt(t)},onBlur:function(t){rt(!1),vt(t)},onKeyDown:function(t,e){"Tab"===t.key&&Dt(),null==b||b(t,e)},onSubmit:Dt,value:Bt,maskFormat:l,onChange:function(t){lt(t)},onInputChange:function(){ft("input")},internalPicker:o,format:s,inputReadOnly:B,disabled:x,open:nt,onOpenChange:rt,onClick:function(t){x||J.current.nativeElement.contains(document.activeElement)||J.current.focus(),rt(!0),null==K||K(t)},onClear:function(){kt(null),rt(!1,{force:!0})},invalid:Pt,onInvalid:function(t){Mt(t,0)}}))))}"production"!==process.env.NODE_ENV&&(AT.displayName="SingleSelector");var LT=r.forwardRef(DT);function IT(t){return Gx(t,{inputAffixPadding:t.paddingXXS})}"production"!==process.env.NODE_ENV&&(LT.displayName="RefPicker");const zT=t=>{const{controlHeight:e,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:f,controlOutlineWidth:m,controlOutline:g,colorErrorOutline:v,colorWarningOutline:y,colorBgContainer:b}=t;return{paddingBlock:Math.max(Math.round((e-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:h,activeBorderColor:f,hoverBorderColor:p,activeShadow:`0 0 0 ${m}px ${g}`,errorActiveShadow:`0 0 0 ${m}px ${v}`,warningActiveShadow:`0 0 0 ${m}px ${y}`,hoverBg:b,activeBg:b,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},RT=t=>({borderColor:t.hoverBorderColor,backgroundColor:t.hoverBg}),FT=t=>({color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},RT(Gx(t,{hoverBorderColor:t.colorBorder,hoverBg:t.colorBgContainerDisabled})))}),$T=(t,e)=>({background:t.colorBgContainer,borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:e.borderColor,"&:hover":{borderColor:e.hoverBorderColor,backgroundColor:t.hoverBg},"&:focus, &:focus-within":{borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:t.activeBg}}),jT=(t,e)=>({[`&${t.componentCls}-status-${e.status}:not(${t.componentCls}-disabled)`]:Object.assign(Object.assign({},$T(t,e)),{[`${t.componentCls}-prefix, ${t.componentCls}-suffix`]:{color:e.affixColor}}),[`&${t.componentCls}-status-${e.status}${t.componentCls}-disabled`]:{borderColor:e.borderColor}}),BT=(t,e)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$T(t,{borderColor:t.colorBorder,hoverBorderColor:t.hoverBorderColor,activeBorderColor:t.activeBorderColor,activeShadow:t.activeShadow})),{[`&${t.componentCls}-disabled, &[disabled]`]:Object.assign({},FT(t))}),jT(t,{status:"error",borderColor:t.colorError,hoverBorderColor:t.colorErrorBorderHover,activeBorderColor:t.colorError,activeShadow:t.errorActiveShadow,affixColor:t.colorError})),jT(t,{status:"warning",borderColor:t.colorWarning,hoverBorderColor:t.colorWarningBorderHover,activeBorderColor:t.colorWarning,activeShadow:t.warningActiveShadow,affixColor:t.colorWarning})),e)}),HT=(t,e)=>({[`&${t.componentCls}-group-wrapper-status-${e.status}`]:{[`${t.componentCls}-group-addon`]:{borderColor:e.addonBorderColor,color:e.addonColor}}}),WT=t=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${t.componentCls}-group`]:{"&-addon":{background:t.addonBg,border:`${Nv(t.lineWidth)} ${t.lineType} ${t.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},HT(t,{status:"error",addonBorderColor:t.colorError,addonColor:t.colorErrorText})),HT(t,{status:"warning",addonBorderColor:t.colorWarning,addonColor:t.colorWarningText})),{[`&${t.componentCls}-group-wrapper-disabled`]:{[`${t.componentCls}-group-addon`]:Object.assign({},FT(t))}})}),VT=(t,e)=>{const{componentCls:n}=t;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:t.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:t.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:t.colorWarning}}},e)}},YT=(t,e)=>({background:e.bg,borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==e?void 0:e.inputColor},"&:hover":{background:e.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:e.activeBorderColor,backgroundColor:t.activeBg}}),qT=(t,e)=>({[`&${t.componentCls}-status-${e.status}:not(${t.componentCls}-disabled)`]:Object.assign(Object.assign({},YT(t,e)),{[`${t.componentCls}-prefix, ${t.componentCls}-suffix`]:{color:e.affixColor}})}),XT=(t,e)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},YT(t,{bg:t.colorFillTertiary,hoverBg:t.colorFillSecondary,activeBorderColor:t.activeBorderColor})),{[`&${t.componentCls}-disabled, &[disabled]`]:Object.assign({},FT(t))}),qT(t,{status:"error",bg:t.colorErrorBg,hoverBg:t.colorErrorBgHover,activeBorderColor:t.colorError,inputColor:t.colorErrorText,affixColor:t.colorError})),qT(t,{status:"warning",bg:t.colorWarningBg,hoverBg:t.colorWarningBgHover,activeBorderColor:t.colorWarning,inputColor:t.colorWarningText,affixColor:t.colorWarning})),e)}),UT=(t,e)=>({[`&${t.componentCls}-group-wrapper-status-${e.status}`]:{[`${t.componentCls}-group-addon`]:{background:e.addonBg,color:e.addonColor}}}),ZT=t=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${t.componentCls}-group`]:{"&-addon":{background:t.colorFillTertiary},[`${t.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Nv(t.lineWidth)} ${t.lineType} ${t.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Nv(t.lineWidth)} ${t.lineType} ${t.colorSplit}`}}}},UT(t,{status:"error",addonBg:t.colorErrorBg,addonColor:t.colorErrorText})),UT(t,{status:"warning",addonBg:t.colorWarningBg,addonColor:t.colorWarningText})),{[`&${t.componentCls}-group-wrapper-disabled`]:{[`${t.componentCls}-group`]:{"&-addon":{background:t.colorFillTertiary,color:t.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Nv(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderTop:`${Nv(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderBottom:`${Nv(t.lineWidth)} ${t.lineType} ${t.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Nv(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderTop:`${Nv(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderBottom:`${Nv(t.lineWidth)} ${t.lineType} ${t.colorBorder}`}}}})}),GT=(t,e)=>({background:t.colorBgContainer,borderWidth:`0 0 ${Nv(t.lineWidth)} 0`,borderStyle:`none none ${t.lineType} none`,borderColor:e.borderColor,borderRadius:0,"&:hover":{borderColor:e.hoverBorderColor,backgroundColor:t.hoverBg},"&:focus, &:focus-within":{borderColor:e.activeBorderColor,outline:0,backgroundColor:t.activeBg}}),KT=(t,e)=>({[`&${t.componentCls}-status-${e.status}:not(${t.componentCls}-disabled)`]:Object.assign(Object.assign({},GT(t,e)),{[`${t.componentCls}-prefix, ${t.componentCls}-suffix`]:{color:e.affixColor}}),[`&${t.componentCls}-status-${e.status}${t.componentCls}-disabled`]:{borderColor:e.borderColor}}),JT=(t,e)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},GT(t,{borderColor:t.colorBorder,hoverBorderColor:t.hoverBorderColor,activeBorderColor:t.activeBorderColor,activeShadow:t.activeShadow})),{[`&${t.componentCls}-disabled, &[disabled]`]:{color:t.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:t.colorBorder}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),KT(t,{status:"error",borderColor:t.colorError,hoverBorderColor:t.colorErrorBorderHover,activeBorderColor:t.colorError,activeShadow:t.errorActiveShadow,affixColor:t.colorError})),KT(t,{status:"warning",borderColor:t.colorWarning,hoverBorderColor:t.colorWarningBorderHover,activeBorderColor:t.colorWarning,activeShadow:t.warningActiveShadow,affixColor:t.colorWarning})),e)}),QT=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),tN=t=>{const{paddingBlockLG:e,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=t;return{padding:`${Nv(e)} ${Nv(i)}`,fontSize:t.inputFontSizeLG,lineHeight:n,borderRadius:r}},eN=t=>({padding:`${Nv(t.paddingBlockSM)} ${Nv(t.paddingInlineSM)}`,fontSize:t.inputFontSizeSM,borderRadius:t.borderRadiusSM}),nN=t=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Nv(t.paddingBlock)} ${Nv(t.paddingInline)}`,color:t.colorText,fontSize:t.inputFontSize,lineHeight:t.lineHeight,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid}`},QT(t.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},tN(t)),"&-sm":Object.assign({},eN(t)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),rN=t=>{const{componentCls:e,antCls:n}=t;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:t.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:Object.assign({},tN(t)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:Object.assign({},eN(t)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:t.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:t.controlHeightSM},[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Nv(t.paddingInline)}`,color:t.colorText,fontWeight:"normal",fontSize:t.inputFontSize,textAlign:"center",borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Nv(t.calc(t.paddingBlock).add(1).mul(-1).equal())} ${Nv(t.calc(t.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Nv(t.lineWidth)} ${t.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Nv(t.calc(t.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[e]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:t.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${e}-affix-wrapper,\n & > ${e}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal(),borderInlineEndWidth:t.lineWidth},[e]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${e},\n & > ${n}-cascader-picker ${e},\n & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:t.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${e},\n & > ${n}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${e},\n & > ${n}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:t.lineWidth,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius},[`& > ${n}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:t.calc(t.lineWidth).mul(-1).equal(),[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:t.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:t.borderRadius}}}})}},iN=t=>{const{componentCls:e,controlHeightSM:n,lineWidth:r,calc:i}=t,o=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m_(t)),nN(t)),BT(t)),XT(t)),VT(t)),JT(t)),{'&[type="color"]':{height:t.controlHeight,[`&${e}-lg`]:{height:t.controlHeightLG},[`&${e}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},oN=t=>{const{componentCls:e}=t;return{[`${e}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:t.colorTextTertiary},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Nv(t.inputAffixPadding)}`}}}},aN=t=>{const{componentCls:e,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=t,l=`${e}-affix-wrapper`,c=`${e}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},nN(t)),{display:"inline-flex",[`&:not(${e}-disabled):hover`]:{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${e}`]:{padding:0},[`> input${e}, > textarea${e}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[e]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:t.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:t.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),oN(t)),{[`${s}${e}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[`${e}-underlined`]:{borderRadius:0},[c]:{[`${s}${e}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},sN=t=>{const{componentCls:e,borderRadiusLG:n,borderRadiusSM:r}=t;return{[`${e}-group`]:Object.assign(Object.assign(Object.assign({},m_(t)),rN(t)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:n,fontSize:t.inputFontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:r}}},WT(t)),ZT(t)),{[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-item`]:{[`${e}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},lN=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-search`;return{[r]:{[e]:{"&:hover, &:focus":{[`+ ${e}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{height:t.controlHeight,borderRadius:0},[`${e}-lg`]:{lineHeight:t.calc(t.lineHeightLG).sub(2e-4).equal()},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${e}-affix-wrapper, ${r}-button`]:{height:t.controlHeightLG}},"&-small":{[`${e}-affix-wrapper, ${r}-button`]:{height:t.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:t.calc(t.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button,\n > ${e},\n ${e}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}},cN=t=>{const{componentCls:e}=t;return{[`${e}-out-of-range`]:{[`&, & input, & textarea, ${e}-show-count-suffix, ${e}-data-count`]:{color:t.colorError}}}};x_(["Input","Shared"],(t=>{const e=Gx(t,IT(t));return[iN(e),aN(e)]}),zT,{resetFont:!1}),x_(["Input","Component"],(t=>{const e=Gx(t,IT(t));return[sN(e),lN(e),cN(e),SC(e)]}),zT,{resetFont:!1});const uN=(t,e)=>{const{componentCls:n,controlHeight:r}=t,i=e?`${n}-${e}`:"",o=(t=>{const{multipleSelectItemHeight:e,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=t,o=t.max(t.calc(n).sub(r).equal(),0);return{basePadding:o,containerPadding:t.max(t.calc(o).sub(i).equal(),0),itemHeight:Nv(e),itemLineHeight:Nv(t.calc(e).sub(t.calc(t.lineWidth).mul(2)).equal())}})(t);return[{[`${n}-multiple${i}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:Nv(o.itemLineHeight)}}}]};var dN=t=>{const{componentCls:e,calc:n,lineWidth:r}=t,i=Gx(t,{fontHeight:t.fontSize,selectHeight:t.controlHeightSM,multipleSelectItemHeight:t.multipleItemHeightSM,borderRadius:t.borderRadiusSM,borderRadiusSM:t.borderRadiusXS,controlHeight:t.controlHeightSM}),o=Gx(t,{fontHeight:n(t.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:t.fontSizeLG,selectHeight:t.controlHeightLG,multipleSelectItemHeight:t.multipleItemHeightLG,borderRadius:t.borderRadiusLG,borderRadiusSM:t.borderRadius,controlHeight:t.controlHeightLG});return[uN(i,"small"),uN(t),uN(o,"large"),{[`${e}${e}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${e}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${e}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:t.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${t.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:t.colorTextPlaceholder,pointerEvents:"none"}}},UM(t)),{[`${e}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]};const hN=t=>{const{pickerCellCls:e,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:o,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:h,cellBgDisabled:p,colorFillSecondary:f}=t;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Nv(r),borderRadius:i,transition:`background ${o}`},[`&:hover:not(${e}-in-view):not(${e}-disabled),\n &:hover:not(${e}-selected):not(${e}-range-start):not(${e}-range-end):not(${e}-disabled)`]:{[n]:{background:a}},[`&-in-view${e}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Nv(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${e}-in-range,\n &-in-view${e}-range-start,\n &-in-view${e}-range-end`]:{position:"relative",[`&:not(${e}-disabled):before`]:{background:u}},[`&-in-view${e}-selected,\n &-in-view${e}-range-start,\n &-in-view${e}-range-end`]:{[`&:not(${e}-disabled) ${n}`]:{color:d,background:c},[`&${e}-disabled ${n}`]:{background:f}},[`&-in-view${e}-range-start:not(${e}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${e}-range-end:not(${e}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${e}-range-start:not(${e}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${e}-range-end:not(${e}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:h,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${e}-today ${n}::before`]:{borderColor:h}}},pN=t=>{const{componentCls:e,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:o,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:d,lineType:h,borderRadiusLG:p,colorPrimary:f,colorTextHeading:m,colorSplit:g,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:b,motionDurationMid:x,colorIconHover:_,fontWeightStrong:w,cellHeight:S,pickerCellPaddingVertical:k,colorTextDisabled:C,colorText:E,fontSize:M,motionDurationSlow:P,withoutTimeCellHeight:O,pickerQuarterPanelContentHeight:T,borderRadiusSM:N,colorTextLightSolid:A,cellHoverBg:D,timeColumnHeight:L,timeColumnWidth:I,timeCellHeight:z,controlItemBgActive:R,marginXXS:F,pickerDatePanelPaddingHorizontal:$,pickerControlIconMargin:j}=t,B=t.calc(a).mul(7).add(t.calc($).mul(2)).equal();return{[e]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:f},"&-rtl":{[`${e}-prev-icon,\n ${e}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${e}-next-icon,\n ${e}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${e}-time-panel`]:{[`${e}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:B},"&-header":{display:"flex",padding:`0 ${Nv(l)}`,color:m,borderBottom:`${Nv(d)} ${h} ${g}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:Nv(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${x}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:_},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:w,lineHeight:Nv(b),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:f}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${Nv(v)} 0`,borderInlineWidth:`${Nv(v)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:j,insetInlineStart:j,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockWidth:`${Nv(v)} 0`,borderInlineWidth:`${Nv(v)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:t.calc(S).add(t.calc(k).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Nv(k)} 0`,color:C,cursor:"pointer","&-in-view":{color:E}},hN(t)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${e}-content`]:{height:t.calc(O).mul(4).equal()},[r]:{padding:`0 ${Nv(l)}`}},"&-quarter-panel":{[`${e}-content`]:{height:T}},"&-decade-panel":{[r]:{padding:`0 ${Nv(t.calc(l).div(2).equal())}`},[`${e}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${e}-body`]:{padding:`0 ${Nv(l)}`},[r]:{width:i}},"&-date-panel":{[`${e}-body`]:{padding:`${Nv(l)} ${Nv($)}`},[`${e}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${e}-cell`]:{[`&:hover ${r},\n &-selected ${r},\n ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${x}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:D},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:f},[`&${e}-cell-week`]:{color:new Wb(A).setA(.5).toHexString()},[r]:{color:A}}},"&-range-hover td:before":{background:R}}},"&-week-panel, &-date-panel-show-week":{[`${e}-body`]:{padding:`${Nv(l)} ${Nv(s)}`},[`${e}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${e}-time-panel`]:{borderInlineStart:`${Nv(d)} ${h} ${g}`},[`${e}-date-panel,\n ${e}-time-panel`]:{transition:`opacity ${P}`},"&-active":{[`${e}-date-panel,\n ${e}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${e}-content`]:{display:"flex",flex:"auto",height:L},"&-column":{flex:"1 0 auto",width:I,margin:`${Nv(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${x}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:t.colorTextTertiary,borderRadius:t.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${t.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${Nv(z)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Nv(d)} ${h} ${g}`},"&-active":{background:new Wb(R).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${e}-time-panel-cell`]:{marginInline:F,[`${e}-time-panel-cell-inner`]:{display:"block",width:t.calc(I).sub(t.calc(F).mul(2)).equal(),height:z,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:t.calc(I).sub(z).div(2).equal(),color:E,lineHeight:Nv(z),borderRadius:N,cursor:"pointer",transition:`background ${x}`,"&:hover":{background:D}},"&-selected":{[`${e}-time-panel-cell-inner`]:{background:R}},"&-disabled":{[`${e}-time-panel-cell-inner`]:{color:C,background:"transparent",cursor:"not-allowed"}}}}}}}}};var fN=t=>{const{componentCls:e,textHeight:n,lineWidth:r,paddingSM:i,antCls:o,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=t;return{[`${e}-dropdown`]:{[`${e}-footer`]:{borderTop:`${Nv(r)} ${c} ${u}`,"&-extra":{padding:`0 ${Nv(i)}`,lineHeight:Nv(t.calc(n).sub(t.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Nv(r)} ${c} ${u}`}}},[`${e}-panels + ${e}-footer ${e}-ranges`]:{justifyContent:"space-between"},[`${e}-ranges`]:{marginBlock:0,paddingInline:Nv(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Nv(t.calc(n).sub(t.calc(r).mul(2)).equal()),display:"inline-block"},[`${e}-now-btn-disabled`]:{pointerEvents:"none",color:t.colorTextDisabled},[`${e}-preset > ${o}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${e}-ok`]:{paddingBlock:t.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}};var mN=t=>{const{componentCls:e}=t;return{[e]:[Object.assign(Object.assign(Object.assign(Object.assign({},BT(t)),JT(t)),XT(t)),VT(t)),{"&-outlined":{[`&${e}-multiple ${e}-selection-item`]:{background:t.multipleItemBg,border:`${Nv(t.lineWidth)} ${t.lineType} ${t.multipleItemBorderColor}`}},"&-filled":{[`&${e}-multiple ${e}-selection-item`]:{background:t.colorBgContainer,border:`${Nv(t.lineWidth)} ${t.lineType} ${t.colorSplit}`}},"&-borderless":{[`&${e}-multiple ${e}-selection-item`]:{background:t.multipleItemBg,border:`${Nv(t.lineWidth)} ${t.lineType} ${t.multipleItemBorderColor}`}},"&-underlined":{[`&${e}-multiple ${e}-selection-item`]:{background:t.multipleItemBg,border:`${Nv(t.lineWidth)} ${t.lineType} ${t.multipleItemBorderColor}`}}}]}};const gN=(t,e,n,r)=>{const i=t.calc(n).add(2).equal(),o=t.max(t.calc(e).sub(i).div(2).equal(),0),a=t.max(t.calc(e).sub(i).sub(o).equal(),0);return{padding:`${Nv(o)} ${Nv(r)} ${Nv(a)}`}},vN=t=>{const{componentCls:e,colorError:n,colorWarning:r}=t;return{[`${e}:not(${e}-disabled):not([disabled])`]:{[`&${e}-status-error`]:{[`${e}-active-bar`]:{background:n}},[`&${e}-status-warning`]:{[`${e}-active-bar`]:{background:r}}}}},yN=t=>{const{componentCls:e,antCls:n,controlHeight:r,paddingInline:i,lineWidth:o,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:d,controlHeightLG:h,fontSizeLG:p,controlHeightSM:f,paddingInlineSM:m,paddingXS:g,marginXS:v,colorTextDescription:y,lineWidthBold:b,colorPrimary:x,motionDurationSlow:_,zIndexPopup:w,paddingXXS:S,sizePopupArrow:k,colorBgElevated:C,borderRadiusLG:E,boxShadowSecondary:M,borderRadiusSM:P,colorSplit:O,cellHoverBg:T,presetsWidth:N,presetsMaxWidth:A,boxShadowPopoverArrow:D,fontHeight:L,fontHeightLG:I,lineHeightLG:z}=t;return[{[e]:Object.assign(Object.assign(Object.assign({},m_(t)),gN(t,r,L,i)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${e}-prefix`]:{marginInlineEnd:t.inputAffixPadding},[`${e}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:t.fontSize,lineHeight:t.lineHeight,transition:`all ${c}`},QT(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},gN(t,h,I,i)),{[`${e}-input > input`]:{fontSize:p,lineHeight:z}}),"&-small":Object.assign({},gN(t,f,L,m)),[`${e}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:t.calc(g).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:v}}},[`${e}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${e}-clear`]:{opacity:1},[`${e}-suffix:not(:last-child)`]:{opacity:0}},[`${e}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${e}-focused &`]:{color:y},[`${e}-range-separator &`]:{[`${e}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${e}-active-bar`]:{bottom:t.calc(o).mul(-1).equal(),height:b,background:x,opacity:0,transition:`all ${_} ease-out`,pointerEvents:"none"},[`&${e}-focused`]:{[`${e}-active-bar`]:{opacity:1}},[`${e}-range-separator`]:{alignItems:"center",padding:`0 ${Nv(g)}`,lineHeight:1}},"&-range, &-multiple":{[`${e}-clear`]:{insetInlineEnd:i},[`&${e}-small`]:{[`${e}-clear`]:{insetInlineEnd:m}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},m_(t)),pN(t)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:w,[`&${e}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${e}-dropdown-placement-bottomLeft,\n &${e}-dropdown-placement-bottomRight`]:{[`${e}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${e}-dropdown-placement-topLeft,\n &${e}-dropdown-placement-topRight`]:{[`${e}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${e}-dropdown-placement-topLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${e}-dropdown-placement-topRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${e}-dropdown-placement-topLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${e}-dropdown-placement-topRight`]:{animationName:jk},[`&${n}-slide-up-enter${n}-slide-up-enter-active${e}-dropdown-placement-bottomLeft,\n &${n}-slide-up-enter${n}-slide-up-enter-active${e}-dropdown-placement-bottomRight,\n &${n}-slide-up-appear${n}-slide-up-appear-active${e}-dropdown-placement-bottomLeft,\n &${n}-slide-up-appear${n}-slide-up-appear-active${e}-dropdown-placement-bottomRight`]:{animationName:Fk},[`&${n}-slide-up-leave ${e}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${e}-dropdown-placement-topLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${e}-dropdown-placement-topRight`]:{animationName:Bk},[`&${n}-slide-up-leave${n}-slide-up-leave-active${e}-dropdown-placement-bottomLeft,\n &${n}-slide-up-leave${n}-slide-up-leave-active${e}-dropdown-placement-bottomRight`]:{animationName:$k},[`${e}-panel > ${e}-time-panel`]:{paddingTop:S},[`${e}-range-wrapper`]:{display:"flex",position:"relative"},[`${e}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:t.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${_} ease-out`},sP(t,C,D)),{"&:before":{insetInlineStart:t.calc(i).mul(1.5).equal()}}),[`${e}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:C,borderRadius:E,boxShadow:M,transition:`margin ${_}`,display:"inline-block",pointerEvents:"auto",[`${e}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${e}-presets`]:{display:"flex",flexDirection:"column",minWidth:N,maxWidth:A,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:g,borderInlineEnd:`${Nv(o)} ${a} ${O}`,li:Object.assign(Object.assign({},f_),{borderRadius:P,paddingInline:g,paddingBlock:t.calc(f).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${_}`,"+ li":{marginTop:v},"&:hover":{background:T}})}},[`${e}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${e}-panel`]:{borderWidth:0}}},[`${e}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${e}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${Nv(t.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${e}-separator`]:{transform:"rotate(180deg)"},[`${e}-footer`]:{"&-extra":{direction:"rtl"}}}})},Xk(t,"slide-up"),Xk(t,"slide-down"),Rk(t,"move-up"),Rk(t,"move-down")]};var bN=x_("DatePicker",(t=>{const e=Gx(IT(t),(t=>{const{componentCls:e,controlHeightLG:n,paddingXXS:r,padding:i}=t;return{pickerCellCls:`${e}-cell`,pickerCellInnerCls:`${e}-cell-inner`,pickerYearMonthCellWidth:t.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:t.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:t.calc(r).add(t.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:t.calc(i).add(t.calc(r).div(2)).equal()}})(t),{inputPaddingHorizontalBase:t.calc(t.paddingSM).sub(1).equal(),multipleSelectItemHeight:t.multipleItemHeight,selectHeight:t.controlHeight});return[fN(e),yN(e),mN(e),vN(e),dN(e),SC(t,{focusElCls:`${t.componentCls}-focused`})]}),(t=>Object.assign(Object.assign(Object.assign(Object.assign({},zT(t)),(t=>{const{colorBgContainerDisabled:e,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:o,lineWidth:a}=t,s=2*o,l=2*a,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),d=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:t.controlItemBgHover,cellActiveWithRangeBg:t.controlItemBgActive,cellHoverWithRangeBg:new Wb(t.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Wb(t.colorPrimary).lighten(20).toHexString(),cellBgDisabled:e,timeColumnWidth:1.4*i,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*r,cellHeight:r,textHeight:i,withoutTimeCellHeight:1.65*i,multipleItemBg:t.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:e,multipleItemColorDisabled:t.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}})(t)),function(t){const{sizePopupArrow:e,borderRadiusXS:n,borderRadiusOuter:r}=t,i=e/2,o=i,a=1*r/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),l=i-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*i-l,d=c,h=2*i-a,p=s,f=2*i-0,m=o,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:g,arrowPath:`path('M 0 ${o} A ${r} ${r} 0 0 0 ${a} ${s} L ${l} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${h} ${p} A ${r} ${r} 0 0 0 ${f} ${m} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*i-v}px 100%, ${v}px 100%)`}}(t)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:t.zIndexPopupBase+50}))),xN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},_N=function(t,e){return r.createElement(jw,gm({},t,{ref:e,icon:xN}))},wN=r.forwardRef(_N);"production"!==process.env.NODE_ENV&&(wN.displayName="CalendarOutlined");var SN=wN,kN={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},CN=function(t,e){return r.createElement(jw,gm({},t,{ref:e,icon:kN}))},EN=r.forwardRef(CN);"production"!==process.env.NODE_ENV&&(EN.displayName="ClockCircleOutlined");var MN=EN,PN={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},ON=function(t,e){return r.createElement(jw,gm({},t,{ref:e,icon:PN}))},TN=r.forwardRef(ON);"production"!==process.env.NODE_ENV&&(TN.displayName="SwapRightOutlined");var NN=TN;function AN(t,e,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder}function DN(t,e,n){return void 0!==n?n:"year"===e&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:"quarter"===e&&t.lang.quarterPlaceholder?t.lang.rangeQuarterPlaceholder:"month"===e&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:"week"===e&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:"time"===e&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder}function LN(t,e){const{allowClear:n=!0}=t,{clearIcon:i,removeIcon:o}=function(t){let{suffixIcon:e,clearIcon:n,menuItemSelectedIcon:i,removeIcon:o,loading:a,multiple:s,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:h,componentName:p}=t;"production"!==process.env.NODE_ENV&&wb(p).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const f=null!=n?n:r.createElement(Vw,null),m=t=>null!==e||l||h?r.createElement(r.Fragment,null,!1!==u&&t,l&&d):null;let g=null;if(void 0!==e)g=m(e);else if(a)g=m(r.createElement(aS,{spin:!0}));else{const t=`${c}-suffix`;g=e=>{let{open:n,showSearch:i}=e;return m(n&&i?r.createElement(aP,{className:t}):r.createElement(nP,{className:t}))}}let v=null;v=void 0!==i?i:s?r.createElement(JM,null):null;let y=null;return y=void 0!==o?o:r.createElement(Uw,null),{clearIcon:f,suffixIcon:g,itemIcon:v,removeIcon:y}}(Object.assign(Object.assign({},t),{prefixCls:e,componentName:"DatePicker"}));return[r.useMemo((()=>{if(!1===n)return!1;const t=!0===n?{}:n;return Object.assign({clearIcon:i},t)}),[n,i]),o]}const[IN,zN]=["week","WeekPicker"],[RN,FN]=["month","MonthPicker"],[$N,jN]=["year","YearPicker"],[BN,HN]=["quarter","QuarterPicker"],[WN,VN]=["time","TimePicker"];var YN=t=>r.createElement(AC,Object.assign({size:"small",type:"primary"},t));function qN(t){return o((()=>Object.assign({button:YN},t)),[t])}var XN=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};var UN=t=>{const e=h(((e,n)=>{var i;const{prefixCls:o,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:d,disabled:h,bordered:f=!0,placeholder:m,popupClassName:g,dropdownClassName:v,status:b,rootClassName:x,variant:_,picker:w}=e,S=XN(e,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),k=r.useRef(null),{getPrefixCls:C,direction:E,getPopupContainer:M,rangePicker:P}=p(Cx),O=C("picker",o),{compactSize:T,compactItemClassnames:N}=WS(O,E),A=C(),[D,L]=XM("rangePicker",_,f),I=nS(O),[z,R,F]=bN(O,I);if("production"!==process.env.NODE_ENV){const t=wb("DatePicker.RangePicker");t.deprecated(!v,"dropdownClassName","popupClassName"),t.deprecated(!("bordered"in e),"bordered","variant")}const[$]=LN(e,O),j=qN(s),B=BS((t=>{var e;return null!==(e=null!=d?d:T)&&void 0!==e?e:t})),H=r.useContext(Nx),W=null!=h?h:H,V=p(eM),{hasFeedback:Y,status:q,feedbackIcon:X}=V,U=r.createElement(r.Fragment,null,w===WN?r.createElement(MN,null):r.createElement(SN,null),Y&&X);y(n,(()=>k.current));const[Z]=Db("Calendar",Mb),G=Object.assign(Object.assign({},Z),e.locale),[K]=hS("DatePicker",null===(i=e.popupStyle)||void 0===i?void 0:i.zIndex);return z(r.createElement(iM,{space:!0},r.createElement(PT,Object.assign({separator:r.createElement("span",{"aria-label":"to",className:`${O}-separator`},r.createElement(NN,null)),disabled:W,ref:k,placement:u,placeholder:DN(G,w,m),suffixIcon:U,prevIcon:r.createElement("span",{className:`${O}-prev-icon`}),nextIcon:r.createElement("span",{className:`${O}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${O}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${O}-super-next-icon`}),transitionName:`${A}-slide-up`,picker:w},S,{className:mm({[`${O}-${B}`]:B,[`${O}-${D}`]:L},YM(O,qM(q,b),Y),R,N,l,null==P?void 0:P.className,F,I,x),style:Object.assign(Object.assign({},null==P?void 0:P.style),c),locale:G.lang,prefixCls:O,getPopupContainer:a||M,generateConfig:t,components:j,direction:E,classNames:{popup:mm(R,g||v,F,I,x)},styles:{popup:Object.assign(Object.assign({},e.popupStyle),{zIndex:K})},allowClear:$}))))}));return"production"!==process.env.NODE_ENV&&(e.displayName="RangePicker"),e},ZN=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};var GN=t=>{const e=(e,n)=>{const i=n===VN?"timePicker":"datePicker",o=h(((o,a)=>{var s;const{prefixCls:l,getPopupContainer:c,components:u,style:d,className:h,rootClassName:f,size:m,bordered:g,placement:v,placeholder:b,popupClassName:x,dropdownClassName:_,disabled:w,status:S,variant:k,onCalendarChange:C}=o,E=ZN(o,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:M,direction:P,getPopupContainer:O,[i]:T}=p(Cx),N=M("picker",l),{compactSize:A,compactItemClassnames:D}=WS(N,P),L=r.useRef(null),[I,z]=XM("datePicker",k,g),R=nS(N),[F,$,j]=bN(N,R);y(a,(()=>L.current));const B=e||o.picker,H=M(),{onSelect:W,multiple:V}=E,Y=W&&"time"===e&&!V;if("production"!==process.env.NODE_ENV){const t=wb(n||"DatePicker");"production"!==process.env.NODE_ENV&&t("quarter"!==e,"deprecated",`DatePicker.${n} is legacy usage. Please use DatePicker[picker='${e}'] directly.`),t.deprecated(!_,"dropdownClassName","popupClassName"),t.deprecated(!("bordered"in o),"bordered","variant"),t.deprecated(!Y,"onSelect","onCalendarChange")}const[q,X]=LN(o,N),U=qN(u),Z=BS((t=>{var e;return null!==(e=null!=m?m:A)&&void 0!==e?e:t})),G=r.useContext(Nx),K=null!=w?w:G,J=p(eM),{hasFeedback:Q,status:tt,feedbackIcon:et}=J,nt=r.createElement(r.Fragment,null,"time"===B?r.createElement(MN,null):r.createElement(SN,null),Q&&et),[rt]=Db("DatePicker",Mb),it=Object.assign(Object.assign({},rt),o.locale),[ot]=hS("DatePicker",null===(s=o.popupStyle)||void 0===s?void 0:s.zIndex);return F(r.createElement(iM,{space:!0},r.createElement(LT,Object.assign({ref:L,placeholder:AN(it,B,b),suffixIcon:nt,placement:v,prevIcon:r.createElement("span",{className:`${N}-prev-icon`}),nextIcon:r.createElement("span",{className:`${N}-next-icon`}),superPrevIcon:r.createElement("span",{className:`${N}-super-prev-icon`}),superNextIcon:r.createElement("span",{className:`${N}-super-next-icon`}),transitionName:`${H}-slide-up`,picker:e,onCalendarChange:(t,e,n)=>{null==C||C(t,e,n),Y&&W(t)}},{showToday:!0},E,{locale:it.lang,className:mm({[`${N}-${Z}`]:Z,[`${N}-${I}`]:z},YM(N,qM(tt,S),Q),$,D,null==T?void 0:T.className,h,j,R,f),style:Object.assign(Object.assign({},null==T?void 0:T.style),d),prefixCls:N,getPopupContainer:c||O,generateConfig:t,components:U,direction:P,disabled:K,classNames:{popup:mm($,j,R,f,x||_)},styles:{popup:Object.assign(Object.assign({},o.popupStyle),{zIndex:ot})},allowClear:q,removeIcon:X}))))}));return"production"!==process.env.NODE_ENV&&n&&(o.displayName=n),o},n=e(),i=e(IN,zN),o=e(RN,FN),a=e($N,jN),s=e(BN,HN);return{DatePicker:n,WeekPicker:i,MonthPicker:o,YearPicker:a,TimePicker:e(WN,VN),QuarterPicker:s}};var KN=t=>{const{DatePicker:e,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:o,QuarterPicker:a}=GN(t),s=UN(t),l=e;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=i,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=a,"production"!==process.env.NODE_ENV&&(l.displayName="DatePicker"),l};const JN=KN(FP),QN=oM(JN,"popupAlign",void 0,"picker");JN._InternalPanelDoNotUseOrYouWillBeFired=QN;const tA=oM(JN.RangePicker,"popupAlign",void 0,"picker");JN._InternalRangePanelDoNotUseOrYouWillBeFired=tA,JN.generatePicker=KN;var eA=JN,nA="DatePicker-module_datePicker__9BVwE";const rA=({value:e,onChange:n,...r})=>t(eA,{...r,value:e?hP(e):null,onChange:(t,e)=>{n?.(e)},className:`${nA} ${r.className}`});var iA="Directory-module_moreIcon__V7kXf",oA="Directory-module_directory__koFRz",aA="Directory-module_path__lw-xg",sA={container:"Popover-module_container__-idjE",content:"Popover-module_content__TTNdo",arrow:"Popover-module_arrow__ODp-E",bottom:"Popover-module_bottom__Dq-dO",bottomStart:"Popover-module_bottomStart__eZAKA",bottomEnd:"Popover-module_bottomEnd__YAoIK",top:"Popover-module_top__gphPv",topStart:"Popover-module_topStart__UL0EG",topEnd:"Popover-module_topEnd__rr7Hq",right:"Popover-module_right__gx1MF",rightStart:"Popover-module_rightStart__jScCt",rightEnd:"Popover-module_rightEnd__FI5TB",left:"Popover-module_left__0Ng53",leftStart:"Popover-module_leftStart__OsJTm",leftEnd:"Popover-module_leftEnd__lr3aT"};const lA={Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",Space:" "};var cA="Portal-module_container__QcS9f";const uA=({children:e})=>(l((()=>{const t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}}),[]),E.createPortal(t("div",{className:cA,children:e}),document.body));var dA=a((({placement:n="bottom",content:r,trigger:i="click",children:o,open:a,containerProps:c,contentProps:h,arrow:p=!1,arrowPlacement:f})=>{const m=s(null),g=s(null),v=s(null),[y,b]=u(a);!function(t,e){l((()=>{const n=n=>{n.key===lA[t]&&e(n)};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)}),[t,e])}("Escape",(()=>{y&&b(!1)})),l((()=>{b(a)}),[a]);const{targetPosition:x,calculatePosition:_}=J({containerRef:v,targetRef:g,initialPlacement:n});K({refs:[m,g],onClickOutside:()=>"click"===i&&b(!1)}),d((()=>{y&&_()}),[y,_]);return e(j,{ref:m,...{onMouseEnter:()=>{"hover"===i&&b(!0)},onMouseLeave:()=>"hover"===i&&b(!1),onClick:()=>"click"===i&&b(!0)},...c,className:sA.container,children:[t(j,{ref:v,children:o}),y&&t(uA,{children:e(j,{ref:g,style:{...x},...h,className:`${h?.className} ${sA.content}`,children:[p&&t("div",{className:`${sA.arrow} ${sA[f||{top:"bottom",topStart:"bottomStart",topEnd:"bottomEnd",bottom:"top",bottomStart:"topStart",bottomEnd:"topEnd",left:"right",leftStart:"rightStart",leftEnd:"rightEnd",right:"left",rightStart:"leftStart",rightEnd:"leftEnd"}[n]]}`}),r]})})]})}));var hA=a((({directory:n,onChangeDirectory:r})=>{const i=n.length>2,o=n.slice(-2),a=n.slice(0,-2);return e(j,{gap:20,className:oA,children:[i&&t(dA,{content:t(j,{direction:"vertical",dimensionX:150,children:a.map(((e,n)=>t(V,{label:e,onClick:()=>r?.(n)},n)))}),placement:"bottomEnd",trigger:"click",children:t(Ua,{name:"dotsHorizontal",className:iA})}),o.map(((n,o)=>{const s=a.length+o;return e(b,{children:[(i||0!==o)&&t(Ua,{name:"chevronRight"}),t(W,{size:"large",className:aA,onClick:()=>r?.(s),children:n})]},n)}))]})})),pA="DropList-module_container__OfA7W",fA="DropList-module_active__3guYr";var mA=a((({active:n=0,length:r=0,maxItems:i,onChange:o,onCreate:a})=>e(j,{className:pA,dimensionX:"fill",alignment:"leftCenter",children:[new Array(r).fill(0).map(((e,r)=>t(ys,{color:"transparent",variant:"filled",keepWidth:!1,onClick:()=>(t=>{o?.(t)})(r),className:n===r&&fA,children:r+1},r))),t(ys,{color:"transparent",variant:"filled",onClick:()=>{i!==r&&a?.()},disabled:i===r,children:"+"})]}))),gA="InputHeader-module_inputHeaderContainer__ozfOk";const vA=a((({className:e,prefix:n,root:r,suffix:i,...o})=>t(B,{className:`${gA} ${e}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:36,...o,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}},suffix:{children:i?.children,...{dimensionX:"hug",alignment:"rightCenter",...i}}})));var yA="Json-module_jsonContainer__cv8rx";var bA=a((({data:e})=>t(W,{className:yA,children:JSON.stringify(e,null,2)}))),xA="ListRow-module_rowContainer__5LCRb";const _A=a((({children:e,...n})=>t(j,{dimensionX:"hug",...n,className:`${n.className}`,children:e}))),wA=a((({children:e,...n})=>t(j,{ref:n.ref,dimensionX:"fill",alignment:"leftCenter",gap:10,...n,className:`${n.className} ${xA}`,children:e})));wA.Cell=_A;const SA=g(null);function kA(){const t=x(SA);if(null==t)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return t}function CA(t,e){const n=t.pane??e.pane;return n?{...t,pane:n}:t}var EA,MA={exports:{}};
|
|
64
|
-
/* @preserve
|
|
65
|
-
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
66
|
-
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
67
|
-
*/var PA=(EA||(EA=1,function(t){var e="1.9.4";function n(t){var e,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(e in i=arguments[n])t[e]=i[e];return t}var r=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function i(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var r=n.call(arguments,2);return function(){return t.apply(e,r.length?r.concat(n.call(arguments)):arguments)}}var o=0;function a(t){return"_leaflet_id"in t||(t._leaflet_id=++o),t._leaflet_id}function s(t,e,n){var r,i,o,a;return a=function(){r=!1,i&&(o.apply(n,i),i=!1)},o=function(){r?i=arguments:(t.apply(n,arguments),setTimeout(a,e),r=!0)},o}function l(t,e,n){var r=e[1],i=e[0],o=r-i;return t===r&&n?t:((t-i)%o+o)%o+i}function c(){return!1}function u(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return d(t).split(/\s+/)}function p(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?r(t.options):{}),e)t.options[n]=e[n];return t.options}function f(t,e,n){var r=[];for(var i in t)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(t[i]));return(e&&-1!==e.indexOf("?")?"&":"?")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,n){var r=e[n];if(void 0===r)throw new Error("No value provided for variable "+t);return"function"==typeof r&&(r=r(e)),r}))}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function y(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function x(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var _=0;function w(t){var e=+new Date,n=Math.max(0,16-(e-_));return _=e+n,window.setTimeout(t,n)}var S=window.requestAnimationFrame||x("RequestAnimationFrame")||w,k=window.cancelAnimationFrame||x("CancelAnimationFrame")||x("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,n){if(!n||S!==w)return S.call(window,i(t,e));t.call(e)}function E(t){t&&k.call(window,t)}var M={__proto__:null,extend:n,create:r,bind:i,get lastId(){return o},stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:u,trim:d,splitWords:h,setOptions:p,getParamString:f,template:g,isArray:v,indexOf:y,emptyImageUrl:b,requestFn:S,cancelFn:k,requestAnimFrame:C,cancelAnimFrame:E};function P(){}function O(t){if("undefined"!=typeof L&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}P.extend=function(t){var e=function(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=e.__super__=this.prototype,o=r(i);for(var a in o.constructor=e,e.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(e[a]=this[a]);return t.statics&&n(e,t.statics),t.includes&&(O(t.includes),n.apply(null,[o].concat(t.includes))),n(o,t),delete o.statics,delete o.includes,o.options&&(o.options=i.options?r(i.options):{},n(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},e},P.include=function(t){var e=this.prototype.options;return n(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},P.mergeOptions=function(t){return n(this.prototype.options,t),this},P.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var T={on:function(t,e,n){if("object"==typeof t)for(var r in t)this._on(r,t[r],e);else for(var i=0,o=(t=h(t)).length;i<o;i++)this._on(t[i],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var r in t)this._off(r,t[r],e);else{t=h(t);for(var i=1===arguments.length,o=0,a=t.length;o<a;o++)i?this._off(t[o]):this._off(t[o],e,n)}else delete this._events;return this},_on:function(t,e,n,r){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var i={fn:e,ctx:n};r&&(i.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(i)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var r,i,o;if(this._events&&(r=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var a=this._listens(t,e,n);if(!1!==a){var s=r[a];this._firingCount&&(s.fn=c,this._events[t]=r=r.slice()),r.splice(a,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(i=0,o=r.length;i<o;i++)r[i].fn=c;delete this._events[t]}},fire:function(t,e,r){if(!this.listens(t,r))return this;var i=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var l=o[a],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(t,e,n,r){"string"!=typeof t&&console.warn('"string" type argument expected');var i=e;"function"!=typeof e&&(r=!!e,i=void 0,n=void 0);var o=this._events&&this._events[t];if(o&&o.length&&!1!==this._listens(t,i,n))return!0;if(r)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,n,r))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var r=this._events[t]||[];if(!e)return!!r.length;n===this&&(n=void 0);for(var i=0,o=r.length;i<o;i++)if(r[i].fn===e&&r[i].ctx===n)return i;return!1},once:function(t,e,n){if("object"==typeof t)for(var r in t)this._on(r,t[r],e,!0);else for(var i=0,o=(t=h(t)).length;i<o;i++)this._on(t[i],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};T.addEventListener=T.on,T.removeEventListener=T.clearAllEventListeners=T.off,T.addOneTimeEventListener=T.once,T.fireEvent=T.fire,T.hasEventListeners=T.listens;var N=P.extend(T);function A(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var D=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function I(t,e,n){return t instanceof A?t:v(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,e,n)}function z(t,e){if(t)for(var n=e?[t,e]:t,r=0,i=n.length;r<i;r++)this.extend(n[r])}function R(t,e){return!t||t instanceof z?t:new z(t,e)}function F(t,e){if(t)for(var n=e?[t,e]:t,r=0,i=n.length;r<i;r++)this.extend(n[r])}function $(t,e){return t instanceof F?t:new F(t,e)}function j(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function B(t,e,n){return t instanceof j?t:v(t)&&"object"!=typeof t[0]?3===t.length?new j(t[0],t[1],t[2]):2===t.length?new j(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new j(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new j(t,e,n)}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(I(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(I(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=D(this.x),this.y=D(this.y),this},distanceTo:function(t){var e=(t=I(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=I(t)).x===this.x&&t.y===this.y},contains:function(t){return t=I(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},z.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof A||"number"==typeof t[0]||"x"in t)e=n=I(t);else if(e=(t=R(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return I((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return I(this.min.x,this.max.y)},getTopRight:function(){return I(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof A?I(t):R(t))instanceof z?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>=e.x&&r.x<=n.x,a=i.y>=e.y&&r.y<=n.y;return o&&a},overlaps:function(t){t=R(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>e.x&&r.x<n.x,a=i.y>e.y&&r.y<n.y;return o&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,r=Math.abs(e.x-n.x)*t,i=Math.abs(e.y-n.y)*t;return R(I(e.x-r,e.y-i),I(n.x+r,n.y+i))},equals:function(t){return!!t&&(t=R(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},F.prototype={extend:function(t){var e,n,r=this._southWest,i=this._northEast;if(t instanceof j)e=t,n=t;else{if(!(t instanceof F))return t?this.extend(B(t)||$(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return r||i?(r.lat=Math.min(e.lat,r.lat),r.lng=Math.min(e.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new j(e.lat,e.lng),this._northEast=new j(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,r=Math.abs(e.lat-n.lat)*t,i=Math.abs(e.lng-n.lng)*t;return new F(new j(e.lat-r,e.lng-i),new j(n.lat+r,n.lng+i))},getCenter:function(){return new j((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof j||"lat"in t?B(t):$(t);var e,n,r=this._southWest,i=this._northEast;return t instanceof F?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=r.lat&&n.lat<=i.lat&&e.lng>=r.lng&&n.lng<=i.lng},intersects:function(t){t=$(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>=e.lat&&r.lat<=n.lat,a=i.lng>=e.lng&&r.lng<=n.lng;return o&&a},overlaps:function(t){t=$(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>e.lat&&r.lat<n.lat,a=i.lng>e.lng&&r.lng<n.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=$(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},j.prototype={equals:function(t,e){return!!t&&(t=B(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,B(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return $([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new j(this.lat,this.lng,this.alt)}};var H={latLngToPoint:function(t,e){var n=this.projection.project(t),r=this.scale(e);return this.transformation._transform(n,r)},pointToLatLng:function(t,e){var n=this.scale(e),r=this.transformation.untransform(t,n);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new z(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new j(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),r=e.lat-n.lat,i=e.lng-n.lng;if(0===r&&0===i)return t;var o=t.getSouthWest(),a=t.getNorthEast();return new F(new j(o.lat-r,o.lng-i),new j(a.lat-r,a.lng-i))}},W=n({},H,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,r=t.lat*n,i=e.lat*n,o=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),s=o*o+Math.cos(r)*Math.cos(i)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),V=6378137,Y={R:V,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,t.lat),-n),i=Math.sin(r*e);return new A(this.R*t.lng*e,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(t){var e=180/Math.PI;return new j((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=V*Math.PI;return new z([-t,-t],[t,t])}()};function q(t,e,n,r){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=r}function X(t,e,n,r){return new q(t,e,n,r)}q.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new A((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var U=n({},W,{code:"EPSG:3857",projection:Y,transformation:function(){var t=.5/(Math.PI*Y.R);return X(t,.5,-t,.5)}()}),Z=n({},U,{code:"EPSG:900913"});function G(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function K(t,e){var n,r,i,o,a,s,l="";for(n=0,i=t.length;n<i;n++){for(r=0,o=(a=t[n]).length;r<o;r++)l+=(r?"L":"M")+(s=a[r]).x+" "+s.y;l+=e?Rt.svg?"z":"x":""}return l||"M0 0"}var J,Q=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),rt=zt("webkit"),it=zt("android"),ot=zt("android 2")||zt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=it&&zt("Google")&&at<537&&!("AudioNode"in window),lt=!!window.opera,ct=!nt&&zt("chrome"),ut=zt("gecko")&&!rt&&!lt&&!tt,dt=!ct&&zt("safari"),ht=zt("phantom"),pt="OTransition"in Q,ft=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in Q,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,vt="MozPerspective"in Q,yt=!window.L_DISABLE_3D&&(mt||gt||vt)&&!pt&&!ht,bt="undefined"!=typeof orientation||zt("mobile"),xt=bt&&rt,_t=bt&>,wt=!window.PointerEvent&&window.MSPointerEvent,St=!(!window.PointerEvent&&!wt),kt="ontouchstart"in window||!!window.TouchEvent,Ct=!window.L_NO_TOUCH&&(kt||St),Et=bt&<,Mt=bt&&ut,Pt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ot=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),Tt=!!document.createElement("canvas").getContext,Nt=!(!document.createElementNS||!G("svg").createSVGRect),At=!!Nt&&((J=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(J.firstChild&&J.firstChild.namespaceURI)),Dt=!Nt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Lt=0===navigator.platform.indexOf("Mac"),It=0===navigator.platform.indexOf("Linux");function zt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Rt={ie:tt,ielt9:et,edge:nt,webkit:rt,android:it,android23:ot,androidStock:st,opera:lt,chrome:ct,gecko:ut,safari:dt,phantom:ht,opera12:pt,win:ft,ie3d:mt,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:bt,mobileWebkit:xt,mobileWebkit3d:_t,msPointer:wt,pointer:St,touch:Ct,touchNative:kt,mobileOpera:Et,mobileGecko:Mt,retina:Pt,passiveEvents:Ot,canvas:Tt,svg:Nt,vml:Dt,inlineSvg:At,mac:Lt,linux:It},Ft=Rt.msPointer?"MSPointerDown":"pointerdown",$t=Rt.msPointer?"MSPointerMove":"pointermove",jt=Rt.msPointer?"MSPointerUp":"pointerup",Bt=Rt.msPointer?"MSPointerCancel":"pointercancel",Ht={touchstart:Ft,touchmove:$t,touchend:jt,touchcancel:Bt},Wt={touchstart:Qt,touchmove:Jt,touchend:Jt,touchcancel:Jt},Vt={},Yt=!1;function qt(t,e,n){return"touchstart"===e&&Kt(),Wt[e]?(n=Wt[e].bind(this,n),t.addEventListener(Ht[e],n,!1),n):(console.warn("wrong event specified:",e),c)}function Xt(t,e,n){Ht[e]?t.removeEventListener(Ht[e],n,!1):console.warn("wrong event specified:",e)}function Ut(t){Vt[t.pointerId]=t}function Zt(t){Vt[t.pointerId]&&(Vt[t.pointerId]=t)}function Gt(t){delete Vt[t.pointerId]}function Kt(){Yt||(document.addEventListener(Ft,Ut,!0),document.addEventListener($t,Zt,!0),document.addEventListener(jt,Gt,!0),document.addEventListener(Bt,Gt,!0),Yt=!0)}function Jt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],Vt)e.touches.push(Vt[n]);e.changedTouches=[e],t(e)}}function Qt(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ue(e),Jt(t,e)}function te(t){var e,n,r={};for(n in t)e=t[n],r[n]=e&&e.bind?e.bind(t):e;return t=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}var ee=200;function ne(t,e){t.addEventListener("dblclick",e);var n,r=0;function i(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var i=Ge(t);if(!i.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||i.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var o=Date.now();o-r<=ee?2==++n&&e(te(t)):n=1,r=o}}}else n=t.detail}return t.addEventListener("click",i),{dblclick:e,simDblclick:i}}function re(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var ie,oe,ae,se,le,ce=Ee(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ue=Ee(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===ue||"OTransition"===ue?ue+"End":"transitionend";function he(t){return"string"==typeof t?document.getElementById(t):t}function pe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);n=r?r[e]:null}return"auto"===n?null:n}function fe(t,e,n){var r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}function me(t){var e=t.parentNode;e&&e.removeChild(t)}function ge(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ve(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ye(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function be(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=Se(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function xe(t,e){if(void 0!==t.classList)for(var n=h(e),r=0,i=n.length;r<i;r++)t.classList.add(n[r]);else if(!be(t,e)){var o=Se(t);we(t,(o?o+" ":"")+e)}}function _e(t,e){void 0!==t.classList?t.classList.remove(e):we(t,d((" "+Se(t)+" ").replace(" "+e+" "," ")))}function we(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function Se(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function ke(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Ce(t,e)}function Ce(t,e){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(r)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+r+"(opacity="+e+")"}function Ee(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Me(t,e,n){var r=e||new A(0,0);t.style[ce]=(Rt.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function Pe(t,e){t._leaflet_pos=e,Rt.any3d?Me(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Oe(t){return t._leaflet_pos||new A(0,0)}if("onselectstart"in document)ie=function(){Fe(window,"selectstart",Ue)},oe=function(){je(window,"selectstart",Ue)};else{var Te=Ee(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ie=function(){if(Te){var t=document.documentElement.style;ae=t[Te],t[Te]="none"}},oe=function(){Te&&(document.documentElement.style[Te]=ae,ae=void 0)}}function Ne(){Fe(window,"dragstart",Ue)}function Ae(){je(window,"dragstart",Ue)}function De(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Le(),se=t,le=t.style.outlineStyle,t.style.outlineStyle="none",Fe(window,"keydown",Le))}function Le(){se&&(se.style.outlineStyle=le,se=void 0,le=void 0,je(window,"keydown",Le))}function Ie(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function ze(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Re={__proto__:null,TRANSFORM:ce,TRANSITION:ue,TRANSITION_END:de,get:he,getStyle:pe,create:fe,remove:me,empty:ge,toFront:ve,toBack:ye,hasClass:be,addClass:xe,removeClass:_e,setClass:we,getClass:Se,setOpacity:ke,testProp:Ee,setTransform:Me,setPosition:Pe,getPosition:Oe,get disableTextSelection(){return ie},get enableTextSelection(){return oe},disableImageDrag:Ne,enableImageDrag:Ae,preventOutline:De,restoreOutline:Le,getSizedParentNode:Ie,getScale:ze};function Fe(t,e,n,r){if(e&&"object"==typeof e)for(var i in e)We(t,i,e[i],n);else for(var o=0,a=(e=h(e)).length;o<a;o++)We(t,e[o],n,r);return this}var $e="_leaflet_events";function je(t,e,n,r){if(1===arguments.length)Be(t),delete t[$e];else if(e&&"object"==typeof e)for(var i in e)Ve(t,i,e[i],n);else if(e=h(e),2===arguments.length)Be(t,(function(t){return-1!==y(e,t)}));else for(var o=0,a=e.length;o<a;o++)Ve(t,e[o],n,r);return this}function Be(t,e){for(var n in t[$e]){var r=n.split(/\d/)[0];e&&!e(r)||Ve(t,r,null,null,n)}}var He={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function We(t,e,n,r){var i=e+a(n)+(r?"_"+a(r):"");if(t[$e]&&t[$e][i])return this;var o=function(e){return n.call(r||t,e||window.event)},s=o;!Rt.touchNative&&Rt.pointer&&0===e.indexOf("touch")?o=qt(t,e,o):Rt.touch&&"dblclick"===e?o=ne(t,o):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(He[e]||e,o,!!Rt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(o=function(e){e=e||window.event,tn(t,e)&&s(e)},t.addEventListener(He[e],o,!1)):t.addEventListener(e,s,!1):t.attachEvent("on"+e,o),t[$e]=t[$e]||{},t[$e][i]=o}function Ve(t,e,n,r,i){i=i||e+a(n)+(r?"_"+a(r):"");var o=t[$e]&&t[$e][i];if(!o)return this;!Rt.touchNative&&Rt.pointer&&0===e.indexOf("touch")?Xt(t,e,o):Rt.touch&&"dblclick"===e?re(t,o):"removeEventListener"in t?t.removeEventListener(He[e]||e,o,!1):t.detachEvent("on"+e,o),t[$e][i]=null}function Ye(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function qe(t){return We(t,"wheel",Ye),this}function Xe(t){return Fe(t,"mousedown touchstart dblclick contextmenu",Ye),t._leaflet_disable_click=!0,this}function Ue(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ze(t){return Ue(t),Ye(t),this}function Ge(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Ke(t,e){if(!e)return new A(t.clientX,t.clientY);var n=ze(e),r=n.boundingClientRect;return new A((t.clientX-r.left)/n.x-e.clientLeft,(t.clientY-r.top)/n.y-e.clientTop)}var Je=Rt.linux&&Rt.chrome?window.devicePixelRatio:Rt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Qe(t){return Rt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Je:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function tn(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var en={__proto__:null,on:Fe,off:je,stopPropagation:Ye,disableScrollPropagation:qe,disableClickPropagation:Xe,preventDefault:Ue,stop:Ze,getPropagationPath:Ge,getMousePosition:Ke,getWheelDelta:Qe,isExternalTarget:tn,addListener:Fe,removeListener:je},nn=N.extend({run:function(t,e,n,r){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=Oe(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),Pe(this._el,n),this.fire("step")},_complete:function(){E(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),rn=N.extend({options:{crs:U,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=p(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(B(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ue&&Rt.any3d&&!Rt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Fe(this._proxy,de,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,r){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(B(t),e,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,r.zoom):this._tryAnimatedPan(t,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,r.pan&&r.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Rt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Rt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var r=this.getZoomScale(e),i=this.getSize().divideBy(2),o=(t instanceof A?t:this.latLngToContainerPoint(t)).subtract(i).multiplyBy(1-1/r),a=this.containerPointToLatLng(i.add(o));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():$(t);var n=I(e.paddingTopLeft||e.padding||[0,0]),r=I(e.paddingBottomRight||e.padding||[0,0]),i=this.getBoundsZoom(t,!1,n.add(r));if((i="number"==typeof e.maxZoom?Math.min(e.maxZoom,i):i)===1/0)return{center:t.getCenter(),zoom:i};var o=r.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),i),s=this.project(t.getNorthEast(),i);return{center:this.unproject(a.add(s).divideBy(2).add(o),i),zoom:i}},fitBounds:function(t,e){if(!(t=$(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=I(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new nn,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){xe(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!Rt.any3d)return this.setView(t,e,n);this._stop();var r=this.project(this.getCenter()),i=this.project(t),o=this.getSize(),a=this._zoom;t=B(t),e=void 0===e?a:e;var s=Math.max(o.x,o.y),l=s*this.getZoomScale(a,e),c=i.distanceTo(r)||1,u=1.42,d=u*u;function h(t){var e=(l*l-s*s+(t?-1:1)*d*d*c*c)/(2*(t?l:s)*d*c),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function p(t){return(Math.exp(t)-Math.exp(-t))/2}function f(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return p(t)/f(t)}var g=h(0);function v(t){return s*(f(g)/f(g+u*t))}function y(t){return s*(f(g)*m(g+u*t)-p(g))/d}function b(t){return 1-Math.pow(1-t,1.5)}var x=Date.now(),_=(h(1)-g)/u,w=n.duration?1e3*n.duration:1e3*_*.8;function S(){var n=(Date.now()-x)/w,o=b(n)*_;n<=1?(this._flyToFrame=C(S,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(y(o)/c)),a),this.getScaleZoom(s/v(o),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),S.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=$(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,$(t));return n.equals(r)||this.panTo(r,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=I((e=e||{}).paddingTopLeft||e.padding||[0,0]),r=I(e.paddingBottomRight||e.padding||[0,0]),i=this.project(this.getCenter()),o=this.project(t),a=this.getPixelBounds(),s=R([a.min.add(n),a.max.subtract(r)]),l=s.getSize();if(!s.contains(o)){this._enforcingBounds=!0;var c=o.subtract(s.getCenter()),u=s.extend(o).getSize().subtract(l);i.x+=c.x<0?-u.x:u.x,i.y+=c.y<0?-u.y:u.y,this.panTo(this.unproject(i),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),o=e.divideBy(2).round(),a=r.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,r,t):navigator.geolocation.getCurrentPosition(e,r,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new j(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(e,r.maxZoom?Math.min(i,r.maxZoom):i)}var o={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),me(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(E(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)me(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=fe("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new F(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=$(t),n=I(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),c=R(this.project(s,r),this.project(a,r)).getSize(),u=Rt.any3d?this.options.zoomSnap:1,d=l.x/c.x,h=l.y/c.y,p=e?Math.max(d,h):Math.min(d,h);return r=this.getScaleZoom(p,r),u&&(r=Math.round(r/(u/100))*(u/100),r=e?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(i,Math.min(o,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new z(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var r=n.zoom(t*n.scale(e));return isNaN(r)?1/0:r},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(B(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(I(t),e)},layerPointToLatLng:function(t){var e=I(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(B(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(B(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds($(t))},distance:function(t,e){return this.options.crs.distance(B(t),B(e))},containerPointToLayerPoint:function(t){return I(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return I(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(I(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(B(t)))},mouseEventToContainerPoint:function(t){return Ke(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=he(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Fe(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Rt.any3d,xe(t,"leaflet-container"+(Rt.touch?" leaflet-touch":"")+(Rt.retina?" leaflet-retina":"")+(Rt.ielt9?" leaflet-oldie":"")+(Rt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=pe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Pe(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(xe(t.markerPane,"leaflet-zoom-hide"),xe(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){Pe(this._mapPane,new A(0,0));var r=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,n)._move(t,e)._moveEnd(i),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,r){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),r?n&&n.pinch&&this.fire("zoom",n):((i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return E(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Pe(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[a(this._container)]=this;var e=t?je:Fe;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Rt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){E(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,r=[],i="mouseout"===e||"mouseover"===e,o=t.target||t.srcElement,s=!1;o;){if((n=this._targets[a(o)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(i&&!tn(o,t))break;if(r.push(n),i)break}if(o===this._container)break;o=o.parentNode}return r.length||s||i||!this.listens(e,!0)||(r=[this]),r},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&De(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,r){if("click"===t.type){var i=n({},t);i.type="preclick",this._fireDOMEvent(i,i.type,r)}var o=this._findEventTargets(t,e);if(r){for(var a=[],s=0;s<r.length;s++)r[s].listens(e,!0)&&a.push(r[s]);o=a.concat(o)}if(o.length){"contextmenu"===e&&Ue(t);var l=o[0],c={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var u=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=u?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=u?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(s=0;s<o.length;s++)if(o[s].fire(e,c,!0),c.originalEvent._stopped||!1===o[s].options.bubblingMouseEvents&&-1!==y(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Oe(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return R([this.project(t.getSouthWest(),e)._subtract(r),this.project(t.getNorthWest(),e)._subtract(r),this.project(t.getSouthEast(),e)._subtract(r),this.project(t.getNorthEast(),e)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var r=this.project(t,e),i=this.getSize().divideBy(2),o=new z(r.subtract(i),r.add(i)),a=this._getBoundsOffset(o,n,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(r.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),r=new z(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(r,e))},_getBoundsOffset:function(t,e,n){var r=R(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),i=r.min.subtract(t.min),o=r.max.subtract(t.max);return new A(this._rebound(i.x,-o.x),this._rebound(i.y,-o.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),r=Rt.any3d?this.options.zoomSnap:1;return r&&(t=Math.round(t/r)*r),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){_e(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=fe("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ce,n=this._proxy.style[e];Me(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){me(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Me(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(e),i=this._getCenterOffset(t)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i)||(C((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,xe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&_e(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function on(t,e){return new rn(t,e)}var an=P.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),r=t._controlCorners[n];return xe(e,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(e,r.firstChild):r.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(me(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),sn=function(t){return new an(t)};rn.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=fe("div",e+"control-container",this._container);function r(r,i){var o=e+r+" "+e+i;t[r+i]=fe("div",o,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)me(this._controlCorners[t]);me(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ln=an.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,r){return n<r?-1:r<n?1:0}},initialize:function(t,e,n){for(var r in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[r],r);for(r in e)this._addLayer(e[r],r,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return an.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){xe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(xe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):_e(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return _e(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=fe("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Xe(e),qe(e);var r=this._section=fe("section",t+"-list");n&&(this._map.on("click",this.collapse,this),Fe(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var i=this._layersLink=fe("a",t+"-toggle",e);i.href="#",i.title="Layers",i.setAttribute("role","button"),Fe(i,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ue(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=fe("div",t+"-base",r),this._separator=fe("div",t+"-separator",r),this._overlaysList=fe("div",t+"-overlays",r),e.appendChild(r)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(i((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ge(this._baseLayersList),ge(this._overlaysList),this._layerControlInputs=[];var t,e,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),e=e||r.overlay,t=t||!r.overlay,i+=r.overlay?0:1;return this.options.hideSingleBase&&(t=t&&i>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(t){var e,n=document.createElement("label"),r=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=r):e=this._createRadioElement("leaflet-base-layers_"+a(this),r),this._layerControlInputs.push(e),e.layerId=a(t.layer),Fe(e,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+t.name;var o=document.createElement("span");return n.appendChild(o),o.appendChild(e),o.appendChild(i),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,e,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?r.push(e):t.checked||i.push(e);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])&&this._map.removeLayer(i[o]);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])||this._map.addLayer(r[o]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)t=n[i],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&r<e.options.minZoom||void 0!==e.options.maxZoom&&r>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,Fe(t,"click",Ue),this.expand();var e=this;setTimeout((function(){je(t,"click",Ue),e._preventClick=!1}))}}),cn=function(t,e,n){return new ln(t,e,n)},un=an.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=fe("div",e+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,r,i){var o=fe("a",n,r);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),Xe(o),Fe(o,"click",Ze),Fe(o,"click",i,this),Fe(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";_e(this._zoomInButton,e),_e(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(xe(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(xe(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});rn.mergeOptions({zoomControl:!0}),rn.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new un,this.addControl(this.zoomControl))}));var dn=function(t){return new un(t)},hn=an.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=fe("div",e),r=this.options;return this._addScales(r,e+"-line",n),t.on(r.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=fe("div",e,n)),t.imperial&&(this._iScale=fe("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,r,i=3.2808399*t;i>5280?(e=i/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),pn=function(t){return new hn(t)},fn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',mn=an.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Rt.inlineSvg?fn+" ":"")+"Leaflet</a>"},initialize:function(t){p(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=fe("div","leaflet-control-attribution"),Xe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});rn.mergeOptions({attributionControl:!0}),rn.addInitHook((function(){this.options.attributionControl&&(new mn).addTo(this)}));var gn=function(t){return new mn(t)};an.Layers=ln,an.Zoom=un,an.Scale=hn,an.Attribution=mn,sn.layers=cn,sn.zoom=dn,sn.scale=pn,sn.attribution=gn;var vn=P.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});vn.addTo=function(t,e){return t.addHandler(e,this),this};var yn={Events:T},bn=Rt.touch?"touchstart mousedown":"mousedown",xn=N.extend({options:{clickTolerance:3},initialize:function(t,e,n,r){p(this,r),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Fe(this._dragStartTarget,bn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(xn._dragging===this&&this.finishDrag(!0),je(this._dragStartTarget,bn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!be(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)xn._dragging===this&&this.finishDrag();else if(!(xn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(xn._dragging=this,this._preventOutline&&De(this._element),Ne(),ie(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Ie(this._element);this._startPoint=new A(e.clientX,e.clientY),this._startPos=Oe(this._element),this._parentScale=ze(n);var r="mousedown"===t.type;Fe(document,r?"mousemove":"touchmove",this._onMove,this),Fe(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new A(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ue(t),this._moved||(this.fire("dragstart"),this._moved=!0,xe(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),xe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Pe(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){_e(document.body,"leaflet-dragging"),this._lastTarget&&(_e(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),je(document,"mousemove touchmove",this._onMove,this),je(document,"mouseup touchend touchcancel",this._onUp,this),Ae(),oe();var e=this._moved&&this._moving;this._moving=!1,xn._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function _n(t,e,n){var r,i,o,a,s,l,c,u,d,h=[1,4,2,8];for(i=0,c=t.length;i<c;i++)t[i]._code=Ln(t[i],e);for(a=0;a<4;a++){for(u=h[a],r=[],i=0,o=(c=t.length)-1;i<c;o=i++)s=t[i],l=t[o],s._code&u?l._code&u||((d=Dn(l,s,u,e,n))._code=Ln(d,e),r.push(d)):(l._code&u&&((d=Dn(l,s,u,e,n))._code=Ln(d,e),r.push(d)),r.push(s));t=r}return t}function wn(t,e){var n,r,i,o,a,s,l,c,u;if(!t||0===t.length)throw new Error("latlngs not passed");Rn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=B([0,0]),h=$(t);h.getNorthWest().distanceTo(h.getSouthWest())*h.getNorthEast().distanceTo(h.getNorthWest())<1700&&(d=Sn(t));var p=t.length,f=[];for(n=0;n<p;n++){var m=B(t[n]);f.push(e.project(B([m.lat-d.lat,m.lng-d.lng])))}for(s=l=c=0,n=0,r=p-1;n<p;r=n++)i=f[n],o=f[r],a=i.y*o.x-o.y*i.x,l+=(i.x+o.x)*a,c+=(i.y+o.y)*a,s+=3*a;u=0===s?f[0]:[l/s,c/s];var g=e.unproject(I(u));return B([g.lat+d.lat,g.lng+d.lng])}function Sn(t){for(var e=0,n=0,r=0,i=0;i<t.length;i++){var o=B(t[i]);e+=o.lat,n+=o.lng,r++}return B([e/r,n/r])}var kn,Cn={__proto__:null,clipPolygon:_n,polygonCenter:wn,centroid:Sn};function En(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=On(t=Nn(t,n),n)}function Mn(t,e,n){return Math.sqrt(zn(t,e,n,!0))}function Pn(t,e,n){return zn(t,e,n)}function On(t,e){var n=t.length,r=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,Tn(t,r,e,0,n-1);var i,o=[];for(i=0;i<n;i++)r[i]&&o.push(t[i]);return o}function Tn(t,e,n,r,i){var o,a,s,l=0;for(a=r+1;a<=i-1;a++)(s=zn(t[a],t[r],t[i],!0))>l&&(o=a,l=s);l>n&&(e[o]=1,Tn(t,e,n,r,o),Tn(t,e,n,o,i))}function Nn(t,e){for(var n=[t[0]],r=1,i=0,o=t.length;r<o;r++)In(t[r],t[i])>e&&(n.push(t[r]),i=r);return i<o-1&&n.push(t[o-1]),n}function An(t,e,n,r,i){var o,a,s,l=r?kn:Ln(t,n),c=Ln(e,n);for(kn=c;;){if(!(l|c))return[t,e];if(l&c)return!1;s=Ln(a=Dn(t,e,o=l||c,n,i),n),o===l?(t=a,l=s):(e=a,c=s)}}function Dn(t,e,n,r,i){var o,a,s=e.x-t.x,l=e.y-t.y,c=r.min,u=r.max;return 8&n?(o=t.x+s*(u.y-t.y)/l,a=u.y):4&n?(o=t.x+s*(c.y-t.y)/l,a=c.y):2&n?(o=u.x,a=t.y+l*(u.x-t.x)/s):1&n&&(o=c.x,a=t.y+l*(c.x-t.x)/s),new A(o,a,i)}function Ln(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function In(t,e){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function zn(t,e,n,r){var i,o=e.x,a=e.y,s=n.x-o,l=n.y-a,c=s*s+l*l;return c>0&&((i=((t.x-o)*s+(t.y-a)*l)/c)>1?(o=n.x,a=n.y):i>0&&(o+=s*i,a+=l*i)),s=t.x-o,l=t.y-a,r?s*s+l*l:new A(o,a)}function Rn(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Fn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Rn(t)}function $n(t,e){var n,r,i,o,a,s,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");Rn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=B([0,0]),d=$(t);d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=Sn(t));var h=t.length,p=[];for(n=0;n<h;n++){var f=B(t[n]);p.push(e.project(B([f.lat-u.lat,f.lng-u.lng])))}for(n=0,r=0;n<h-1;n++)r+=p[n].distanceTo(p[n+1])/2;if(0===r)c=p[0];else for(n=0,o=0;n<h-1;n++)if(a=p[n],s=p[n+1],(o+=i=a.distanceTo(s))>r){l=(o-r)/i,c=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}var m=e.unproject(I(c));return B([m.lat+u.lat,m.lng+u.lng])}var jn={__proto__:null,simplify:En,pointToSegmentDistance:Mn,closestPointOnSegment:Pn,clipSegment:An,_getEdgeIntersection:Dn,_getBitCode:Ln,_sqClosestPointOnSegment:zn,isFlat:Rn,_flat:Fn,polylineCenter:$n},Bn={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new z([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752.314245179,bounds:new z([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,r=t.lat*e,i=this.R_MINOR/n,o=Math.sqrt(1-i*i),a=o*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),o/2);return r=-n*Math.log(Math.max(s,1e-10)),new A(t.lng*e*n,r)},unproject:function(t){for(var e,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,o=Math.sqrt(1-i*i),a=Math.exp(-t.y/r),s=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),s+=c=Math.PI/2-2*Math.atan(a*e)-s;return new j(s*n,t.x*n/r)}},Wn={__proto__:null,LonLat:Bn,Mercator:Hn,SphericalMercator:Y},Vn=n({},W,{code:"EPSG:3395",projection:Hn,transformation:function(){var t=.5/(Math.PI*Hn.R);return X(t,.5,-t,.5)}()}),Yn=n({},W,{code:"EPSG:4326",projection:Bn,transformation:X(1/180,1,-1/180,.5)}),qn=n({},H,{projection:Bn,transformation:X(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,r=e.lat-t.lat;return Math.sqrt(n*n+r*r)},infinite:!0});H.Earth=W,H.EPSG3395=Vn,H.EPSG3857=U,H.EPSG900913=Z,H.EPSG4326=Yn,H.Simple=qn;var Xn=N.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});rn.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=a(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return a(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?v(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;t=void 0===i.minZoom?t:Math.min(t,i.minZoom),e=void 0===i.maxZoom?e:Math.max(e,i.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Un=Xn.extend({initialize:function(t,e){var n,r;if(p(this,e),this._layers={},t)for(n=0,r=t.length;n<r;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,r=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,r);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}}),Zn=function(t,e){return new Un(t,e)},Gn=Un.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Un.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Un.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new F;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Kn=function(t,e){return new Gn(t,e)},Jn=P.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){p(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(r,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(t,e){var n=this.options,r=n[e+"Size"];"number"==typeof r&&(r=[r,r]);var i=I(r),o=I("shadow"===e&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),i&&(t.style.width=i.x+"px",t.style.height=i.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Rt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Qn(t){return new Jn(t)}var tr=Jn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof tr.imagePath&&(tr.imagePath=this._detectIconPath()),(this.options.imagePath||tr.imagePath)+Jn.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var r=e.exec(t);return r&&r[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=fe("div","leaflet-default-icon-path",document.body),e=pe(t,"background-image")||pe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),er=vn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new xn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),xe(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&_e(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,o=Oe(e._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=R(a.min._subtract(s).add(i),a.max._subtract(s).subtract(i));if(!l.contains(o)){var c=I((Math.max(l.max.x,o.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,o.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,o.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,o.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(r);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Pe(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=C(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(E(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,r=Oe(e._icon),i=e._map.layerPointToLatLng(r);n&&Pe(n,r),e._latlng=i,t.latlng=i,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){E(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),nr=Xn.extend({options:{icon:new tr,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){p(this,e),this._latlng=B(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),xe(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Fe(n,"focus",this._panOnFocus,this);var i=t.icon.createShadow(this._shadow),o=!1;i!==this._shadow&&(this._removeShadow(),o=!0),i&&(xe(i,e),i.alt=""),this._shadow=i,t.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&je(this._icon,"focus",this._panOnFocus,this),me(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&me(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Pe(this._icon,t),this._shadow&&Pe(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(xe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),er)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new er(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ke(this._icon,t),this._shadow&&ke(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?I(e.iconSize):I(0,0),r=e.iconAnchor?I(e.iconAnchor):I(0,0);t.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function rr(t,e){return new nr(t,e)}var ir=Xn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return p(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),or=ir.extend({options:{fill:!0,radius:10},initialize:function(t,e){p(this,e),this._latlng=B(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=B(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return ir.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),r=[t+n,e+n];this._pxBounds=new z(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ar(t,e){return new or(t,e)}var sr=or.extend({initialize:function(t,e,r){if("number"==typeof e&&(e=n({},r,{radius:e})),p(this,e),this._latlng=B(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new F(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:ir.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===W.distance){var i=Math.PI/180,o=this._mRadius/W.R/i,a=n.project([e+o,t]),s=n.project([e-o,t]),l=a.add(s).divideBy(2),c=n.unproject(l).lat,u=Math.acos((Math.cos(o*i)-Math.sin(e*i)*Math.sin(c*i))/(Math.cos(e*i)*Math.cos(c*i)))/i;(isNaN(u)||0===u)&&(u=o/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-n.project([c,t-u]).x,this._radiusY=l.y-a.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}});function lr(t,e,n){return new sr(t,e,n)}var cr=ir.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){p(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,r=1/0,i=null,o=zn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],c=1,u=l.length;c<u;c++){var d=o(t,e=l[c-1],n=l[c],!0);d<r&&(r=d,i=o(t,e,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return $n(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=B(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new F,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Rn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Rn(t),r=0,i=t.length;r<i;r++)n?(e[r]=B(t[r]),this._bounds.extend(e[r])):e[r]=this._convertLatLngs(t[r]);return e},_project:function(){var t=new z;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new A(t,t);this._rawPxBounds&&(this._pxBounds=new z([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var r,i,o=t[0]instanceof j,a=t.length;if(o){for(i=[],r=0;r<a;r++)i[r]=this._map.latLngToLayerPoint(t[r]),n.extend(i[r]);e.push(i)}else for(r=0;r<a;r++)this._projectLatlngs(t[r],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,r,i,o,a,s,l=this._parts;for(e=0,r=0,i=this._rings.length;e<i;e++)for(n=0,o=(s=this._rings[e]).length;n<o-1;n++)(a=An(s[n],s[n+1],t,n,!0))&&(l[r]=l[r]||[],l[r].push(a[0]),a[1]===s[n+1]&&n!==o-2||(l[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,r=t.length;n<r;n++)t[n]=En(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,r,i,o,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,o=this._parts.length;n<o;n++)for(r=0,i=(a=(s=this._parts[n]).length)-1;r<a;i=r++)if((e||0!==r)&&Mn(t,s[i],s[r])<=l)return!0;return!1}});function ur(t,e){return new cr(t,e)}cr._flat=Fn;var dr=cr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return wn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=cr.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof j&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){cr.prototype._setLatLngs.call(this,t),Rn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Rn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new A(e,e);if(t=new z(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,o=this._rings.length;i<o;i++)(r=_n(this._rings[i],t,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,r,i,o,a,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,s=this._parts.length;i<s;i++)for(o=0,a=(l=(e=this._parts[i]).length)-1;o<l;a=o++)n=e[o],r=e[a],n.y>t.y!=r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(c=!c);return c||cr.prototype._containsPoint.call(this,t,!0)}});function hr(t,e){return new dr(t,e)}var pr=Gn.extend({initialize:function(t,e){p(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,r,i=v(t)?t:t.features;if(i){for(e=0,n=i.length;e<n;e++)((r=i[e]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var a=fr(t,o);return a?(a.feature=_r(t),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function fr(t,e){var n,r,i,o,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||gr;if(!s&&!a)return null;switch(a.type){case"Point":return mr(c,t,n=u(s),e);case"MultiPoint":for(i=0,o=s.length;i<o;i++)n=u(s[i]),l.push(mr(c,t,n,e));return new Gn(l);case"LineString":case"MultiLineString":return r=vr(s,"LineString"===a.type?0:1,u),new cr(r,e);case"Polygon":case"MultiPolygon":return r=vr(s,"Polygon"===a.type?1:2,u),new dr(r,e);case"GeometryCollection":for(i=0,o=a.geometries.length;i<o;i++){var d=fr({geometry:a.geometries[i],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new Gn(l);case"FeatureCollection":for(i=0,o=a.features.length;i<o;i++){var h=fr(a.features[i],e);h&&l.push(h)}return new Gn(l);default:throw new Error("Invalid GeoJSON object.")}}function mr(t,e,n,r){return t?t(e,n):new nr(n,r&&r.markersInheritOptions&&r)}function gr(t){return new j(t[1],t[0],t[2])}function vr(t,e,n){for(var r,i=[],o=0,a=t.length;o<a;o++)r=e?vr(t[o],e-1,n):(n||gr)(t[o]),i.push(r);return i}function yr(t,e){return void 0!==(t=B(t)).alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function br(t,e,n,r){for(var i=[],o=0,a=t.length;o<a;o++)i.push(e?br(t[o],Rn(t[o])?0:e-1,n,r):yr(t[o],r));return!e&&n&&i.length>0&&i.push(i[0].slice()),i}function xr(t,e){return t.feature?n({},t.feature,{geometry:e}):_r(e)}function _r(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var wr={toGeoJSON:function(t){return xr(this,{type:"Point",coordinates:yr(this.getLatLng(),t)})}};function Sr(t,e){return new pr(t,e)}nr.include(wr),sr.include(wr),or.include(wr),cr.include({toGeoJSON:function(t){var e=!Rn(this._latlngs);return xr(this,{type:(e?"Multi":"")+"LineString",coordinates:br(this._latlngs,e?1:0,!1,t)})}}),dr.include({toGeoJSON:function(t){var e=!Rn(this._latlngs),n=e&&!Rn(this._latlngs[0]),r=br(this._latlngs,n?2:e?1:0,!0,t);return e||(r=[r]),xr(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Un.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),xr(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,r=[];return this.eachLayer((function(e){if(e.toGeoJSON){var i=e.toGeoJSON(t);if(n)r.push(i.geometry);else{var o=_r(i);"FeatureCollection"===o.type?r.push.apply(r,o.features):r.push(o)}}})),n?xr(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var kr=Sr,Cr=Xn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=$(e),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(xe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){me(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ve(this._image),this},bringToBack:function(){return this._map&&ye(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=$(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:fe("img");xe(e,"leaflet-image-layer"),this._zoomAnimated&&xe(e,"leaflet-zoom-animated"),this.options.className&&xe(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=i(this.fire,this,"load"),e.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Me(this._image,n,e)},_reset:function(){var t=this._image,e=new z(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();Pe(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ke(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Er=function(t,e,n){return new Cr(t,e,n)},Mr=Cr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:fe("video");if(xe(e,"leaflet-image-layer"),this._zoomAnimated&&xe(e,"leaflet-zoom-animated"),this.options.className&&xe(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=i(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),r=[],o=0;o<n.length;o++)r.push(n[o].src);this._url=n.length>0?r:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=fe("source");s.src=this._url[a],e.appendChild(s)}}}});function Pr(t,e,n){return new Mr(t,e,n)}var Or=Cr.extend({_initImage:function(){var t=this._image=this._url;xe(t,"leaflet-image-layer"),this._zoomAnimated&&xe(t,"leaflet-zoom-animated"),this.options.className&&xe(t,this.options.className),t.onselectstart=c,t.onmousemove=c}});function Tr(t,e,n){return new Or(t,e,n)}var Nr=Xn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof j||v(t))?(this._latlng=B(t),p(this,e)):(p(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ke(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ke(this._container,1),this.bringToFront(),this.options.interactive&&(xe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ke(this._container,0),this._removeTimeout=setTimeout(i(me,void 0,this._container),200)):me(this._container),this.options.interactive&&(_e(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=B(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ve(this._container),this},bringToBack:function(){return this._map&&ye(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Gn){e=null;var n=this._source._layers;for(var r in n)if(n[r]._map){e=n[r];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=I(this.options.offset),n=this._getAnchor();this._zoomAnimated?Pe(this._container,t.add(n)):e=e.add(t).add(n);var r=this._containerBottom=-e.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}});rn.include({_initOverlay:function(t,e,n,r){var i=e;return i instanceof t||(i=new t(r).setContent(e)),n&&i.setLatLng(n),i}}),Xn.include({_initOverlay:function(t,e,n,r){var i=n;return i instanceof t?(p(i,r),i._source=this):(i=e&&!r?e:new t(r,this)).setContent(n),i}});var Ar=Nr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Nr.prototype.openOn.call(this,t)},onAdd:function(t){Nr.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ir||this._source.on("preclick",Ye))},onRemove:function(t){Nr.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ir||this._source.off("preclick",Ye))},getEvents:function(){var t=Nr.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=fe("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=fe("div",t+"-content-wrapper",e);if(this._contentNode=fe("div",t+"-content",n),Xe(e),qe(this._contentNode),Fe(e,"contextmenu",Ye),this._tipContainer=fe("div",t+"-tip-container",e),this._tip=fe("div",t+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=fe("a",t+"-close-button",e);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">×</span>',Fe(r,"click",(function(t){Ue(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var r=t.offsetHeight,i=this.options.maxHeight,o="leaflet-popup-scrolled";i&&r>i?(e.height=i+"px",xe(t,o)):_e(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Pe(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(pe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,r=this._containerWidth,i=new A(this._containerLeft,-n-this._containerBottom);i._add(Oe(this._container));var o=t.layerPointToContainerPoint(i),a=I(this.options.autoPanPadding),s=I(this.options.autoPanPaddingTopLeft||a),l=I(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),u=0,d=0;o.x+r+l.x>c.x&&(u=o.x+r-c.x+l.x),o.x-u-s.x<0&&(u=o.x-s.x),o.y+n+l.y>c.y&&(d=o.y+n-c.y+l.y),o.y-d-s.y<0&&(d=o.y-s.y),(u||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,d]))}},_getAnchor:function(){return I(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Dr=function(t,e){return new Ar(t,e)};rn.mergeOptions({closePopupOnClick:!0}),rn.include({openPopup:function(t,e,n){return this._initOverlay(Ar,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Xn.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Ar,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Gn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ze(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof ir?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Lr=Nr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Nr.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Nr.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Nr.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=fe("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,r=this._map,i=this._container,o=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(t),s=this.options.direction,l=i.offsetWidth,c=i.offsetHeight,u=I(this.options.offset),d=this._getAnchor();"top"===s?(e=l/2,n=c):"bottom"===s?(e=l/2,n=0):"center"===s?(e=l/2,n=c/2):"right"===s?(e=0,n=c/2):"left"===s?(e=l,n=c/2):a.x<o.x?(s="right",e=0,n=c/2):(s="left",e=l+2*(u.x+d.x),n=c/2),t=t.subtract(I(e,n,!0)).add(u).add(d),_e(i,"leaflet-tooltip-right"),_e(i,"leaflet-tooltip-left"),_e(i,"leaflet-tooltip-top"),_e(i,"leaflet-tooltip-bottom"),xe(i,"leaflet-tooltip-"+s),Pe(i,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ke(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return I(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Ir=function(t,e){return new Lr(t,e)};rn.include({openTooltip:function(t,e,n){return this._initOverlay(Lr,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Xn.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Lr,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Gn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&(Fe(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),Fe(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e="function"==typeof t.getElement&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",(function(){e._openOnceFlag=!1,e._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,n,r=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var zr=Jn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ge(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=I(n.bgPos);e.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Rr(t){return new zr(t)}Jn.Default=tr;var Fr=Xn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Rt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){p(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),me(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ve(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ye(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,r=-t(-1/0,1/0),i=0,o=n.length;i<o;i++)e=n[i].style.zIndex,n[i]!==this._container&&e&&(r=t(r,+e));isFinite(r)&&(this.options.zIndex=r+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Rt.ielt9){ke(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var o=Math.min(1,(t-i.loaded)/200);ke(i.el,o),o<1?e=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=fe("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(me(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[t],i=this._map;return r||((r=this._levels[t]={}).el=fe("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=e,r.origin=i.project(i.unproject(i.getPixelOrigin()),t).round(),r.zoom=t,this._setZoomTransform(r,i.getCenter(),i.getZoom()),c(r.el.offsetWidth),this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var r=e.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)me(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,r){var i=Math.floor(t/2),o=Math.floor(e/2),a=n-1,s=new A(+i,+o);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),a>r&&this._retainParent(i,o,a,r))},_retainChildren:function(t,e,n,r){for(var i=2*t;i<2*t+2;i++)for(var o=2*e;o<2*e+2;o++){var a=new A(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<r&&this._retainChildren(i,o,n+1,r))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,r){var i=Math.round(e);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var o=this.options.updateWhenZooming&&i!==this._tileZoom;r&&!o||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var r=this._map.getZoomScale(n,t.zoom),i=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(e,n)).round();Rt.any3d?Me(t.el,i,r):Pe(t.el,i)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],r).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],r).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],r).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),r=e.getZoomScale(n,this._tileZoom),i=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*r);return new z(i.subtract(o),i.add(o))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(t),i=this._pxBoundsToTileRange(r),o=i.getCenter(),a=[],s=this.options.keepBuffer,l=new z(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new A(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var d=i.min.y;d<=i.max.y;d++)for(var h=i.min.x;h<=i.max.x;h++){var p=new A(h,d);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:a.push(p)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<a.length;h++)this._addTile(a[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return $(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),r=t.scaleBy(n),i=r.add(n);return[e.unproject(r,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new F(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new A(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(me(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){xe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,Rt.ielt9&&this.options.opacity<1&&ke(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),r=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&C(i(this._tileReady,this,t,null,o)),Pe(o,n),this._tiles[r]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var r=this._tileCoordsToKey(t);(n=this._tiles[r])&&(n.loaded=+new Date,this._map._fadeAnimated?(ke(n.el,0),E(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(xe(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Rt.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new A(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new z(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function $r(t){return new Fr(t)}var jr=Fr.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=p(this,e)).detectRetina&&Rt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Fe(n,"load",i(this._tileOnLoad,this,e,n)),Fe(n,"error",i(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Rt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=r),e["-y"]=r}return g(this._url,n(e,this.options))},_tileOnLoad:function(t,e){Rt.ielt9?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var r=this.options.errorTileUrl;r&&e.getAttribute("src")!==r&&(e.src=r),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,!e.complete)){e.src=b;var n=this._tiles[t].coords;me(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",b),Fr.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==b))return Fr.prototype._tileReady.call(this,t,e,n)}});function Br(t,e){return new jr(t,e)}var Hr=jr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var r=n({},this.defaultWmsParams);for(var i in e)i in this.options||(r[i]=e[i]);var o=(e=p(this,e)).detectRetina&&Rt.retina?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,jr.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,r=R(n.project(e[0]),n.project(e[1])),i=r.min,o=r.max,a=(this._wmsVersion>=1.3&&this._crs===Yn?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=jr.prototype.getTileUrl.call(this,t);return s+f(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function Wr(t,e){return new Hr(t,e)}jr.WMS=Hr,Br.wms=Wr;var Vr=Xn.extend({options:{padding:.1},initialize:function(t){p(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),xe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,e),o=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(t,e));Rt.any3d?Me(this._container,o,n):Pe(this._container,o)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new z(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Yr=Vr.extend({options:{tolerance:0},getEvents:function(){var t=Vr.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Vr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Fe(t,"mousemove",this._onMouseMove,this),Fe(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Fe(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){E(this._redrawRequest),delete this._ctx,me(this._container),je(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),r=Rt.retina?2:1;Pe(e,t.min),e.width=r*n.x,e.height=r*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Rt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Vr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,r=e.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,r=t.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){if(e=Number(r[n]),isNaN(e))return;i.push(e)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new z,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)t=r.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,r,i,o,a=t._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(r=0,i=a[n].length;r<i;r++)o=a[n][r],l[r?"lineTo":"moveTo"](o.x,o.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,r=Math.max(Math.round(t._radius),1),i=(Math.max(Math.round(t._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(e.x,e.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,r=this._map.mouseEventToLayerPoint(t),i=this._drawFirst;i;i=i.next)(e=i.layer).options.interactive&&e._containsPoint(r)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(_e(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,r,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(e)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(t),r&&(xe(this._container,"leaflet-interactive"),this._fireEvent([r],t,"mouseover"),this._hoveredLayer=r)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(i((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,r=e.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,r=e.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function qr(t){return Rt.canvas?new Yr(t):null}var Xr=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ur={_initContainer:function(){this._container=fe("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Vr.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Xr("shape");xe(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Xr("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;me(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,r=t.options,i=t._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(e||(e=t._stroke=Xr("stroke")),i.appendChild(e),e.weight=r.weight+"px",e.color=r.color,e.opacity=r.opacity,r.dashArray?e.dashStyle=v(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=r.lineCap.replace("butt","flat"),e.joinstyle=r.lineJoin):e&&(i.removeChild(e),t._stroke=null),r.fill?(n||(n=t._fill=Xr("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),r=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+r+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ve(t._container)},_bringToBack:function(t){ye(t._container)}},Zr=Rt.vml?Xr:G,Gr=Vr.extend({_initContainer:function(){this._container=Zr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Zr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){me(this._container),je(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vr.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Pe(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Zr("path");t.options.className&&xe(e,t.options.className),t.options.interactive&&xe(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){me(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,K(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),r="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",i=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,i)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ve(t._path)},_bringToBack:function(t){ye(t._path)}});function Kr(t){return Rt.svg||Rt.vml?new Gr(t):null}Rt.vml&&Gr.include(Ur),rn.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&qr(t)||Kr(t)}});var Jr=dr.extend({initialize:function(t,e){dr.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=$(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Qr(t,e){return new Jr(t,e)}Gr.create=Zr,Gr.pointsToPath=K,pr.geometryToLayer=fr,pr.coordsToLatLng=gr,pr.coordsToLatLngs=vr,pr.latLngToCoords=yr,pr.latLngsToCoords=br,pr.getFeature=xr,pr.asFeature=_r,rn.mergeOptions({boxZoom:!0});var ti=vn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Fe(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){je(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){me(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),ie(),Ne(),this._startPoint=this._map.mouseEventToContainerPoint(t),Fe(document,{contextmenu:Ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=fe("div","leaflet-zoom-box",this._container),xe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new z(this._point,this._startPoint),n=e.getSize();Pe(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(me(this._box),_e(this._container,"leaflet-crosshair")),oe(),Ae(),je(document,{contextmenu:Ze,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new F(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});rn.addInitHook("addHandler","boxZoom",ti),rn.mergeOptions({doubleClickZoom:!0});var ei=vn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),r=e.options.zoomDelta,i=t.originalEvent.shiftKey?n-r:n+r;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}});rn.addInitHook("addHandler","doubleClickZoom",ei),rn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var ni=vn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new xn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}xe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){_e(this._map._container,"leaflet-grab"),_e(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=$(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-e+n)%t+e-n,o=(r+e+n)%t-e-n,a=Math.abs(i+n)<Math.abs(o+n)?i:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,n=e.options,r=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),r)e.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=i.multiplyBy(a/o),l=s.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),u=s.multiplyBy(c/l),d=c/(n.inertiaDeceleration*a),h=u.multiplyBy(-d/2).round();h.x||h.y?(h=e._limitOffset(h,e.options.maxBounds),C((function(){e.panBy(h,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});rn.addInitHook("addHandler","dragging",ni),rn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ri=vn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Fe(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),je(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,r=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,r=this._panKeys={},i=this.keyCodes;for(e=0,n=i.left.length;e<n;e++)r[i.left[e]]=[-1*t,0];for(e=0,n=i.right.length;e<n;e++)r[i.right[e]]=[t,0];for(e=0,n=i.down.length;e<n;e++)r[i.down[e]]=[0,t];for(e=0,n=i.up.length;e<n;e++)r[i.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,r=this._zoomKeys={},i=this.keyCodes;for(e=0,n=i.zoomIn.length;e<n;e++)r[i.zoomIn[e]]=t;for(e=0,n=i.zoomOut.length;e<n;e++)r[i.zoomOut[e]]=-t},_addHooks:function(){Fe(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){je(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=I(e).multiplyBy(3)),r.options.maxBounds&&(e=r._limitOffset(I(e),r.options.maxBounds)),r.options.worldCopyJump){var i=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(e)));r.panTo(i)}else r.panBy(e)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Ze(t)}}});rn.addInitHook("addHandler","keyboard",ri),rn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ii=vn.extend({addHooks:function(){Fe(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){je(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Qe(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),r),Ze(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,o=n?Math.ceil(i/n)*n:i,a=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});rn.addInitHook("addHandler","scrollWheelZoom",ii);var oi=600;rn.mergeOptions({tapHold:Rt.touchNative&&Rt.safari&&Rt.mobile,tapTolerance:15});var ai=vn.extend({addHooks:function(){Fe(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new A(e.clientX,e.clientY),this._holdTimeout=setTimeout(i((function(){this._cancel(),this._isTapValid()&&(Fe(document,"touchend",Ue),Fe(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),oi),Fe(document,"touchend touchcancel contextmenu",this._cancel,this),Fe(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){je(document,"touchend",Ue),je(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),je(document,"touchend touchcancel contextmenu",this._cancel,this),je(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new A(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});rn.addInitHook("addHandler","tapHold",ai),rn.mergeOptions({touchZoom:Rt.touch,bounceAtZoomLimits:!0});var si=vn.extend({addHooks:function(){xe(this._map._container,"leaflet-touch-zoom"),Fe(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){_e(this._map._container,"leaflet-touch-zoom"),je(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Fe(document,"touchmove",this._onTouchMove,this),Fe(document,"touchend touchcancel",this._onTouchEnd,this),Ue(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(r)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),E(this._animRequest);var s=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=C(s,this,!0),Ue(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,E(this._animRequest),je(document,"touchmove",this._onTouchMove,this),je(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});rn.addInitHook("addHandler","touchZoom",si),rn.BoxZoom=ti,rn.DoubleClickZoom=ei,rn.Drag=ni,rn.Keyboard=ri,rn.ScrollWheelZoom=ii,rn.TapHold=ai,rn.TouchZoom=si,t.Bounds=z,t.Browser=Rt,t.CRS=H,t.Canvas=Yr,t.Circle=sr,t.CircleMarker=or,t.Class=P,t.Control=an,t.DivIcon=zr,t.DivOverlay=Nr,t.DomEvent=en,t.DomUtil=Re,t.Draggable=xn,t.Evented=N,t.FeatureGroup=Gn,t.GeoJSON=pr,t.GridLayer=Fr,t.Handler=vn,t.Icon=Jn,t.ImageOverlay=Cr,t.LatLng=j,t.LatLngBounds=F,t.Layer=Xn,t.LayerGroup=Un,t.LineUtil=jn,t.Map=rn,t.Marker=nr,t.Mixin=yn,t.Path=ir,t.Point=A,t.PolyUtil=Cn,t.Polygon=dr,t.Polyline=cr,t.Popup=Ar,t.PosAnimation=nn,t.Projection=Wn,t.Rectangle=Jr,t.Renderer=Vr,t.SVG=Gr,t.SVGOverlay=Or,t.TileLayer=jr,t.Tooltip=Lr,t.Transformation=q,t.Util=M,t.VideoOverlay=Mr,t.bind=i,t.bounds=R,t.canvas=qr,t.circle=lr,t.circleMarker=ar,t.control=sn,t.divIcon=Rr,t.extend=n,t.featureGroup=Kn,t.geoJSON=Sr,t.geoJson=kr,t.gridLayer=$r,t.icon=Qn,t.imageOverlay=Er,t.latLng=B,t.latLngBounds=$,t.layerGroup=Zn,t.map=on,t.marker=rr,t.point=I,t.polygon=hr,t.polyline=ur,t.popup=Dr,t.rectangle=Qr,t.setOptions=p,t.stamp=a,t.svg=Kr,t.svgOverlay=Tr,t.tileLayer=Br,t.tooltip=Ir,t.transformation=X,t.version=e,t.videoOverlay=Pr;var li=window.L;t.noConflict=function(){return window.L=li,this},window.L=t}(MA.exports)),MA.exports),OA=vt(PA);function TA(t,e,n){return Object.freeze({instance:t,context:e,container:n})}function NA(t,e){return null==e?function(e,n){const r=s(void 0);return r.current||(r.current=t(e,n)),r}:function(n,r){const i=s(void 0);i.current||(i.current=t(n,r));const o=s(n),{instance:a}=i.current;return l((function(){o.current!==n&&(e(a,n,o.current),o.current=n)}),[a,n,e]),i}}function AA(t){return function(e){const n=kA(),r=t(CA(e,n),n);return function(t,e){const n=s(e);l((function(){e!==n.current&&null!=t.attributionControl&&(null!=n.current&&t.attributionControl.removeAttribution(n.current),null!=e&&t.attributionControl.addAttribution(e)),n.current=e}),[t,e])}(n.map,e.attribution),function(t,e){const n=s(void 0);l((function(){return null!=e&&t.instance.on(e),n.current=e,function(){null!=n.current&&t.instance.off(n.current),n.current=null}}),[t,e])}(r.current,e.eventHandlers),function(t,e){l((function(){return(e.layerContainer??e.map).addLayer(t.instance),function(){e.layerContainer?.removeLayer(t.instance),e.map.removeLayer(t.instance)}}),[e,t])}(r.current,n),r}}function DA(t){const e=kA().map;return l((function(){return e.on(t),function(){e.off(t)}}),[e,t]),e}function LA({bounds:t,boundsOptions:e,center:n,children:r,className:o,id:a,placeholder:d,style:h,whenReady:p,zoom:f,...m},g){const[v]=u({className:o,id:a,style:h}),[b,x]=u(null),_=s(void 0);y(g,(()=>b?.map??null),[b]);const w=c((r=>{if(null!==r&&!_.current){const i=new PA.Map(r,m);_.current=i,null!=n&&null!=f?i.setView(n,f):null!=t&&i.fitBounds(t,e),null!=p&&i.whenReady(p),x(function(t){return Object.freeze({__version:1,map:t})}(i))}}),[]);l((()=>()=>{b?.map.remove()}),[b]);const S=b?i.createElement(SA,{value:b},r):d??null;return i.createElement("div",{...v,ref:w},S)}const IA=h(LA),zA=function(t,e){return function(t){function e(e,n){const{instance:r,context:o}=t(e).current;y(n,(()=>r));const{children:a}=e;return null==a?null:i.createElement(SA,{value:o},a)}return h(e)}(AA(NA(t,e)))}((function({position:t,...e},n){const r=new PA.Marker(t,e);return TA(r,(i=n,o={overlayContainer:r},Object.freeze({...i,...o})));var i,o}),(function(t,e,n){e.position!==n.position&&t.setLatLng(e.position),null!=e.icon&&e.icon!==n.icon&&t.setIcon(e.icon),null!=e.zIndexOffset&&e.zIndexOffset!==n.zIndexOffset&&t.setZIndexOffset(e.zIndexOffset),null!=e.opacity&&e.opacity!==n.opacity&&t.setOpacity(e.opacity),null!=t.dragging&&e.draggable!==n.draggable&&(!0===e.draggable?t.dragging.enable():t.dragging.disable())})),RA=function(t,e){return function(t){function e(e,n){const{instance:r}=t(e).current;return y(n,(()=>r)),null}return h(e)}(AA(NA(t,e)))}((function({url:t,...e},n){return TA(new PA.TileLayer(t,CA(e,n)),n)}),(function(t,e,n){!function(t,e,n){const{opacity:r,zIndex:i}=e;null!=r&&r!==n.opacity&&t.setOpacity(r),null!=i&&i!==n.zIndex&&t.setZIndex(i)}(t,e,n);const{url:r}=e;null!=r&&r!==n.url&&t.setUrl(r)}));var FA={map:"Map-module_map__BEwEi",icon:"Map-module_icon__1Y4-P"};const $A=({onMapClick:t})=>(DA({click:e=>{t(e.latlng)}}),null);var jA=a((({coordinates:n,markerIcon:r,scrollWheelZoom:i=!0,zoom:o=13,className:a,onChange:s})=>{const l=OA.divIcon({className:`${FA.icon} ${r?.iconContainerClassName}`,html:T.renderToString(r?.icon||t(Ua,{name:"mapMarker"}))}),[c,d]=u(n||{lat:51.505,lng:-.09});return e(IA,{center:c,zoom:o,scrollWheelZoom:i,className:`${FA.map} ${a}`,children:[t(RA,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",className:FA.tileLayer}),t(zA,{position:c,icon:l}),t($A,{onMapClick:t=>{d(t),s?.(t)}})]})})),BA={modalContainer:"Modal-module_modalContainer__CnoII",modalContent:"Modal-module_modalContent__HNEeB",noOverflow:"Modal-module_noOverflow__oJ1i-",closeButton:"Modal-module_closeButton__AoWmd",growFromCenter:"Modal-module_growFromCenter__2PYLC",zoomIn:"Modal-module_zoomIn__QNDuv",classicModalZoom:"Modal-module_classicModalZoom__W6Xhj",shake:"Modal-module_shake__b-lIf"},HA="ModalHeader-module_modalHeader__Tn8TM";var WA=a((({className:e,prefix:n,root:r,...i})=>t(B,{className:`${HA} ${e}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:36,...i,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}}}))),VA="ModalBody-module_modalBody__WKtQo";var YA=a((({className:e,children:n,...r})=>t(j,{className:`${VA} ${e}`,alignment:"top",dimensionX:"fill",dimensionY:"fill",...r,children:n}))),qA="ModalFooter-module_modalFooter__uS-Sd";var XA=a((({className:e,prefix:n,root:r,suffix:i,...o})=>t(B,{className:`${qA} ${e}`,alignment:"leftCenter",dimensionX:"fill",dimensionY:"hug",...o,prefix:{children:n?.children,...{dimensionX:"hug",alignment:"leftCenter",...n}},root:{children:r?.children,...{dimensionX:"fill",alignment:"leftCenter",...r}},suffix:{children:i?.children,...{dimensionX:"hug",alignment:"rightCenter",...i}}}))),UA="Backdrop-module_container__IkwCT",ZA="Backdrop-module_showBackdrop__MMIy-";const GA=({className:e,children:n,showBackdrop:r=!0,...i})=>t("div",{...i,className:`${UA} ${e} ${r?ZA:""}`,children:n}),KA=a((({className:n,animation:r="growFromCenter",showCloseButton:i=!0,disableClose:o=!1,overflow:a=!0,children:s,onClose:c,showBackdrop:d=!0,backdropType:h="default",backdropClassName:p,backdropProps:f,isOpen:m=!1,...g})=>{const[v,y]=u(m),[b,x]=u(!1),[_,w]=u(!1);l((()=>{y(m)}),[m]);const S=()=>{y(!1),c&&c()};return v?t(uA,{children:e(j,{className:BA.modalContainer,children:[t(GA,{showBackdrop:d,...f,className:p,onClick:()=>{"static"===h?(x(!0),w(!1),setTimeout((()=>{x(!1),w(!0)}),400)):S()}}),e(j,{alignment:"top",direction:"vertical",...g,className:`${BA.modalContent} ${_?"":BA[r]} ${a?"":BA.noOverflow} ${b?BA.shake:""} `,children:[i&&t(ys,{className:BA.closeButton,onClick:S,children:t(Ua,{name:"close"}),variant:"icon"}),s]})]})}):null}));KA.Header=WA,KA.Body=YA,KA.Footer=XA;var JA="SelectOption-module_option__wQb8V",QA="SelectOption-module_disabled__m5fGS",tD="SelectOption-module_selected__A6Rky",eD="SelectOption-module_displayer__lEn8X";var nD=a((({option:e,selected:n,multiple:r,disabled:i,onSelect:o,onClick:a,...l})=>{const[c,h]=u(0),p=s(null),{value:f,label:m}="object"==typeof e?{value:e.value,label:e.label}:{value:e,label:e};return d((()=>{p.current&&h(p.current?.offsetWidth-50)}),[]),t(B,{ref:p,dimensionX:"fill",dimensionY:36,alignment:"leftCenter",onClick:a,className:`${JA} ${n&&tD} ${i&&QA}`,root:{children:t(Kf,{disabled:i,dimensionX:"fill",checked:n,label:m,alignment:"leftCenter",prefix:r?void 0:{children:null},root:{className:`${l.root?.className} ${eD}`},labelProps:{style:{maxWidth:c},className:eD}}),dimensionX:"fill"},...l})})),rD="StorageFileCard-module_container__Qj11y",iD="StorageFileCard-module_viewContainer__MEXDI",oD="StorageFileCard-module_name__U4YHd";const aD=[{regex:/^image\//,viewer:(e,n)=>t("img",{src:e.url,alt:e.name,style:n?.img})},{regex:/^video\//,viewer:()=>t(Ua,{name:"movie",size:72})},{regex:/^(text\/plain|text\/javascript|application\/json)$/,viewer:(e,n)=>t("embed",{type:e.content.type,src:e.url,style:n?.embed})},{regex:/^(application\/vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|text\/csv)$/,viewer:()=>t(Ua,{name:"gridOn",size:72})},{regex:/^application\/pdf/,viewer:(e,n)=>t("embed",{type:e.content.type,src:e.url,style:n?.embed})},{regex:/^application\/zip/,viewer:()=>t(Ua,{name:"folderZip",size:72})}],sD=({file:e,styles:n})=>{if(!e)return null;const r=aD.find((({regex:t})=>t.test(e.content.type)));return r?r.viewer(e,n):t(Ua,{name:"fileDocument",size:72})};var lD=a((({file:n,viewProps:r,nameProps:i,...o})=>{const a=sD({file:n});return e(j,{direction:"vertical",gap:10,dimensionX:200,dimensionY:200,...o,className:`${o.className} ${rD}`,children:[t(j,{alignment:"center",dimensionX:"fill",...r,className:`${r?.className} ${iD}`,children:a}),t(j,{dimensionX:"fill",alignment:"center",className:`${i?.className} ${oD}`,children:t(W,{...i,children:n.name})})]})})),cD="Switch-module_switch__-4EkK",uD="Switch-module_disabled__eRVsQ",dD="Switch-module_slider__sHGGR";var hD=a((({checked:n,disabled:r=!1,containerProps:i,onChange:o})=>t(j,{...i,children:e("label",{className:`${cD} ${r&&uD}`,children:[t("input",{type:"checkbox",checked:n,disabled:r,onChange:()=>{r||o?.(!n)}}),t("span",{className:dD})]})}))),pD="Title-module_title__X4-sx";var fD=a((({type:e="h1",children:n,className:r,...o})=>t(j,{...o,children:i.createElement(e,{className:`${pD} ${r||""}`},n)}))),mD="Accordion-module_accordionGroup__qt51Z",gD="Accordion-module_accordionItem__yV0FU",vD="Accordion-module_icon__ni8rA",yD="Accordion-module_rotate__0j95F",bD="Accordion-module_accordionTitle__JkcQk",xD="Accordion-module_suffixOnHover__hHfy1",_D="Accordion-module_open__C3ogj",wD="Accordion-module_noBackgroundOnFocus__nmKN9",SD="Accordion-module_accordionContent__VnGTH",kD="Accordion-module_accordionContentInner__dFM3D",CD="Accordion-module_bordered__4ZbV1";var ED=a((({title:n,children:r,isOpen:i,onClick:o,icon:a,bordered:s=!1,openClassName:l,itemClassName:c,contentClassName:u,headerClassName:d,suffixOnHover:h=!1,noBackgroundOnFocus:p=!1})=>e("div",{className:`${gD} ${s?CD:""} ${c||""}`,children:[t(B,{dimensionX:"fill",mode:"fill",root:{children:n,alignment:"leftCenter"},suffix:{children:(()=>{if(a&&"string"!=typeof a)return a;return t(Ua,{name:a||"chevronDown",className:`${vD} ${i?yD:""}`})})(),className:h?xD:""},onClick:o,className:`${bD} ${i?l||_D:""} ${d||""} ${p?wD:""}`}),t("div",{className:`${SD} ${i?_D:""} ${u||""}`,children:t("div",{className:kD,children:r})})]})));var MD=a((({items:e,defaultActiveIndex:n=1,icon:r,bordered:i=!1,header:o,openClassName:a,itemClassName:s,contentClassName:l,headerClassName:c,suffixOnHover:d,noBackgroundOnFocus:h,...p})=>{const[f,m]=u(n||null);return t(j,{direction:"vertical",dimensionX:"fill",gap:10,...p,className:`${mD} ${p.className||""}`,children:e.map(((e,n)=>t(ED,{title:e.title,isOpen:f===n+1,onClick:()=>(t=>{m(f===t?null:t)})(n+1),icon:e.icon||r,bordered:i,openClassName:a,itemClassName:s,contentClassName:l,headerClassName:c,suffixOnHover:d,noBackgroundOnFocus:h,children:e.content},e.title+n)))})})),PD="NavigatorItem-module_navigatorItem__wZkYp",OD="NavigatorItem-module_suffixButton__4TRQD";var TD=a((({label:e,prefixIcon:r,suffixIcons:i=[],...o})=>t(B,{dimensionX:"fill",dimensionY:36,mode:"fill",prefix:r&&{children:t(Ua,{name:r})},root:{children:t(W,{dimensionX:"fill",children:e})},suffix:{children:i.length>0&&t(n,{children:i.map((({name:e,onClick:n},r)=>t(ys,{color:"transparent",className:OD,onClick:n,children:t(Ua,{name:e})},r)))})},...o,className:`${PD} ${o.className}`}))),ND="Select-module_container__txDHr",AD="Select-module_disabled__RJ71M",DD="Select-module_displayer__gzmxI",LD="Select-module_selectDropdown__HBmga";var ID=a((({value:r,options:i,placeholder:o="Select an option",placement:a="bottom",multiple:l=!1,disabled:c=!1,maxCount:h,popupClassName:p="",optionProps:f,selectRef:m,disableClick:g,onChange:v,...b})=>{const[x,_]=u(0),[w,S]=u(!1),[k,C]=u(r||(l?[]:null)),E=s(null),M=s(null);K({refs:[M,E],onClickOutside:()=>{g||S(!1)}});const{targetPosition:P,calculatePosition:O}=J({containerRef:E,targetRef:M,initialPlacement:a});d((()=>{E.current&&_(E.current.offsetWidth-50)}),[]),d((()=>{w&&E.current&&M.current&&O()}),[w,i,O]);y(m,(()=>({toggleDropdown:N,clear:T})));const T=()=>{C([]),v?.([]),S(!1)},N=t=>{S(void 0===t?t=>!t:t)},A=t=>"object"!=typeof i[0]?String(t):L(t),D=t=>t.length?"object"==typeof i[0]?t.map((t=>L(t))).join(", "):t.join(", "):o,L=t=>i.find((e=>e.value===t))?.label;return e(n,{children:[t(B,{ref:E,onClick:()=>{c||g||N()},dimensionX:"fill",dimensionY:36,root:{children:t(W,{style:{maxWidth:x,...b.root?.style},className:`${b.root?.className} ${DD}`,children:k?l?D(k):A(k):o}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(Ua,{name:"chevronDown"})},...b,className:`${b.className} ${ND} ${c&&AD}`}),w&&t(j,{ref:M,style:{...P},className:`${p} ${LD}`,direction:"vertical",alignment:"leftTop",gap:0,children:i.map((e=>{const n="object"==typeof e?e.value:e,r=l?Array.isArray(k)&&k.includes(n):k===n,i=l&&!!h&&Array.isArray(k)&&k.length>=h&&!r;return t(nD,{disabled:i,dimensionX:E.current?.offsetWidth,multiple:l,option:e,selected:r,onClick:()=>(t=>{l?(()=>{if(!Array.isArray(k))return;const e=k.includes(t)?k.filter((e=>e!==t)):[...k,t];C(e),v?.(e)})():(C(t),v?.(t),S(!1))})(n),...f},n.toString())}))})]})})),zD="SSOButton-module_ssoButton__UJTqm",RD="SSOButton-module_text__TOexm",FD="SSOButton-module_clicked__ubyV-",$D="SSOButton-module_active__kBZGN";var jD=a((({icon:e,label:n,onClick:r,...i})=>{const[o,a]=u(!1),l=s(null);return K({refs:[l],onClickOutside:()=>a(!1)}),t(B,{ref:l,dimensionX:200,alignment:"leftCenter",mode:"fill",gap:10,prefix:{children:t(Ua,{name:e,size:"sm",className:o?$D:""})},root:{children:t(W,{className:`${RD} ${o?$D:""}`,children:n}),alignment:"leftCenter"},suffix:{children:o?t(Ua,{name:"check",size:"sm",className:$D}):void 0},onClick:()=>{a(!0),r&&r()},...i,className:` ${i.className} ${zD} ${o?FD:""}`})})),BD="StorageFilter-module_container__ZnTbe",HD="StorageFilter-module_select__DyJK0",WD="StorageFilter-module_content__-Mtu6",VD="StorageFilter-module_left__uaxf1",YD="StorageFilter-module_chip__V-Qgq",qD="StorageFilter-module_active__pDnAF",XD=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===UD}(t)}(t)};var UD="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ZD(t,e){return!1!==e.clone&&e.isMergeableObject(t)?KD((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function GD(t,e,n){return t.concat(e).map((function(t){return ZD(t,n)}))}function KD(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||GD,n.isMergeableObject=n.isMergeableObject||XD;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):function(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach((function(e){r[e]=ZD(t[e],n)})),Object.keys(e).forEach((function(i){n.isMergeableObject(e[i])&&t[i]?r[i]=KD(t[i],e[i],n):r[i]=ZD(e[i],n)})),r}(t,e,n):ZD(e,n)}KD.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return KD(t,n,e)}),{})};var JD=KD,QD="object"==typeof global&&global&&global.Object===Object&&global,tL="object"==typeof self&&self&&self.Object===Object&&self,eL=QD||tL||Function("return this")(),nL=eL.Symbol,rL=Object.prototype,iL=rL.hasOwnProperty,oL=rL.toString,aL=nL?nL.toStringTag:void 0;var sL=Object.prototype.toString;var lL=nL?nL.toStringTag:void 0;function cL(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":lL&&lL in Object(t)?function(t){var e=iL.call(t,aL),n=t[aL];try{t[aL]=void 0;var r=!0}catch(t){}var i=oL.call(t);return r&&(e?t[aL]=n:delete t[aL]),i}(t):function(t){return sL.call(t)}(t)}function uL(t,e){return function(n){return t(e(n))}}var dL=uL(Object.getPrototypeOf,Object);function hL(t){return null!=t&&"object"==typeof t}var pL=Function.prototype,fL=Object.prototype,mL=pL.toString,gL=fL.hasOwnProperty,vL=mL.call(Object);function yL(t){if(!hL(t)||"[object Object]"!=cL(t))return!1;var e=dL(t);if(null===e)return!0;var n=gL.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&mL.call(n)==vL}function bL(t,e){return t===e||t!=t&&e!=e}function xL(t,e){for(var n=t.length;n--;)if(bL(t[n][0],e))return n;return-1}var _L=Array.prototype.splice;function wL(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function SL(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}wL.prototype.clear=function(){this.__data__=[],this.size=0},wL.prototype.delete=function(t){var e=this.__data__,n=xL(e,t);return!(n<0)&&(n==e.length-1?e.pop():_L.call(e,n,1),--this.size,!0)},wL.prototype.get=function(t){var e=this.__data__,n=xL(e,t);return n<0?void 0:e[n][1]},wL.prototype.has=function(t){return xL(this.__data__,t)>-1},wL.prototype.set=function(t,e){var n=this.__data__,r=xL(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function kL(t){if(!SL(t))return!1;var e=cL(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var CL=eL["__core-js_shared__"],EL=function(){var t=/[^.]+$/.exec(CL&&CL.keys&&CL.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var ML=Function.prototype.toString;function PL(t){if(null!=t){try{return ML.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var OL=/^\[object .+?Constructor\]$/,TL=Function.prototype,NL=Object.prototype,AL=TL.toString,DL=NL.hasOwnProperty,LL=RegExp("^"+AL.call(DL).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function IL(t){return!(!SL(t)||function(t){return!!EL&&EL in t}(t))&&(kL(t)?LL:OL).test(PL(t))}function zL(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return IL(n)?n:void 0}var RL=zL(eL,"Map"),FL=zL(Object,"create");var $L=Object.prototype.hasOwnProperty;var jL=Object.prototype.hasOwnProperty;function BL(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function HL(t,e){var n=t.__data__;return function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map}function WL(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}BL.prototype.clear=function(){this.__data__=FL?FL(null):{},this.size=0},BL.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},BL.prototype.get=function(t){var e=this.__data__;if(FL){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return $L.call(e,t)?e[t]:void 0},BL.prototype.has=function(t){var e=this.__data__;return FL?void 0!==e[t]:jL.call(e,t)},BL.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=FL&&void 0===e?"__lodash_hash_undefined__":e,this},WL.prototype.clear=function(){this.size=0,this.__data__={hash:new BL,map:new(RL||wL),string:new BL}},WL.prototype.delete=function(t){var e=HL(this,t).delete(t);return this.size-=e?1:0,e},WL.prototype.get=function(t){return HL(this,t).get(t)},WL.prototype.has=function(t){return HL(this,t).has(t)},WL.prototype.set=function(t,e){var n=HL(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function VL(t){var e=this.__data__=new wL(t);this.size=e.size}VL.prototype.clear=function(){this.__data__=new wL,this.size=0},VL.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},VL.prototype.get=function(t){return this.__data__.get(t)},VL.prototype.has=function(t){return this.__data__.has(t)},VL.prototype.set=function(t,e){var n=this.__data__;if(n instanceof wL){var r=n.__data__;if(!RL||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new WL(r)}return n.set(t,e),this.size=n.size,this};var YL=function(){try{var t=zL(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),qL=YL;function XL(t,e,n){"__proto__"==e&&qL?qL(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var UL=Object.prototype.hasOwnProperty;function ZL(t,e,n){var r=t[e];UL.call(t,e)&&bL(r,n)&&(void 0!==n||e in t)||XL(t,e,n)}function GL(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),i?XL(n,s,l):ZL(n,s,l)}return n}function KL(t){return hL(t)&&"[object Arguments]"==cL(t)}var JL=Object.prototype,QL=JL.hasOwnProperty,tI=JL.propertyIsEnumerable,eI=KL(function(){return arguments}())?KL:function(t){return hL(t)&&QL.call(t,"callee")&&!tI.call(t,"callee")},nI=Array.isArray;var rI="object"==typeof exports&&exports&&!exports.nodeType&&exports,iI=rI&&"object"==typeof module&&module&&!module.nodeType&&module,oI=iI&&iI.exports===rI?eL.Buffer:void 0,aI=(oI?oI.isBuffer:void 0)||function(){return!1},sI=/^(?:0|[1-9]\d*)$/;function lI(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&sI.test(t))&&t>-1&&t%1==0&&t<e}function cI(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var uI={};function dI(t){return function(e){return t(e)}}uI["[object Float32Array]"]=uI["[object Float64Array]"]=uI["[object Int8Array]"]=uI["[object Int16Array]"]=uI["[object Int32Array]"]=uI["[object Uint8Array]"]=uI["[object Uint8ClampedArray]"]=uI["[object Uint16Array]"]=uI["[object Uint32Array]"]=!0,uI["[object Arguments]"]=uI["[object Array]"]=uI["[object ArrayBuffer]"]=uI["[object Boolean]"]=uI["[object DataView]"]=uI["[object Date]"]=uI["[object Error]"]=uI["[object Function]"]=uI["[object Map]"]=uI["[object Number]"]=uI["[object Object]"]=uI["[object RegExp]"]=uI["[object Set]"]=uI["[object String]"]=uI["[object WeakMap]"]=!1;var hI="object"==typeof exports&&exports&&!exports.nodeType&&exports,pI=hI&&"object"==typeof module&&module&&!module.nodeType&&module,fI=pI&&pI.exports===hI&&QD.process,mI=function(){try{var t=pI&&pI.require&&pI.require("util").types;return t||fI&&fI.binding&&fI.binding("util")}catch(t){}}(),gI=mI,vI=gI&&gI.isTypedArray,yI=vI?dI(vI):function(t){return hL(t)&&cI(t.length)&&!!uI[cL(t)]},bI=Object.prototype.hasOwnProperty;function xI(t,e){var n=nI(t),r=!n&&eI(t),i=!n&&!r&&aI(t),o=!n&&!r&&!i&&yI(t),a=n||r||i||o,s=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],l=s.length;for(var c in t)!e&&!bI.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||lI(c,l))||s.push(c);return s}var _I=Object.prototype;function wI(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_I)}var SI=uL(Object.keys,Object),kI=Object.prototype.hasOwnProperty;function CI(t){return null!=t&&cI(t.length)&&!kL(t)}function EI(t){return CI(t)?xI(t):function(t){if(!wI(t))return SI(t);var e=[];for(var n in Object(t))kI.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}var MI=Object.prototype.hasOwnProperty;function PI(t){if(!SL(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=wI(t),n=[];for(var r in t)("constructor"!=r||!e&&MI.call(t,r))&&n.push(r);return n}function OI(t){return CI(t)?xI(t,!0):PI(t)}var TI="object"==typeof exports&&exports&&!exports.nodeType&&exports,NI=TI&&"object"==typeof module&&module&&!module.nodeType&&module,AI=NI&&NI.exports===TI?eL.Buffer:void 0,DI=AI?AI.allocUnsafe:void 0;function LI(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function II(){return[]}var zI=Object.prototype.propertyIsEnumerable,RI=Object.getOwnPropertySymbols,FI=RI?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}(RI(t),(function(e){return zI.call(t,e)})))}:II,$I=FI;function jI(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var BI=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)jI(e,$I(t)),t=dL(t);return e}:II,HI=BI;function WI(t,e,n){var r=e(t);return nI(t)?r:jI(r,n(t))}function VI(t){return WI(t,EI,$I)}function YI(t){return WI(t,OI,HI)}var qI=zL(eL,"DataView"),XI=zL(eL,"Promise"),UI=zL(eL,"Set"),ZI=zL(eL,"WeakMap"),GI="[object Map]",KI="[object Promise]",JI="[object Set]",QI="[object WeakMap]",tz="[object DataView]",ez=PL(qI),nz=PL(RL),rz=PL(XI),iz=PL(UI),oz=PL(ZI),az=cL;(qI&&az(new qI(new ArrayBuffer(1)))!=tz||RL&&az(new RL)!=GI||XI&&az(XI.resolve())!=KI||UI&&az(new UI)!=JI||ZI&&az(new ZI)!=QI)&&(az=function(t){var e=cL(t),n="[object Object]"==e?t.constructor:void 0,r=n?PL(n):"";if(r)switch(r){case ez:return tz;case nz:return GI;case rz:return KI;case iz:return JI;case oz:return QI}return e});var sz=az,lz=Object.prototype.hasOwnProperty;var cz=eL.Uint8Array;function uz(t){var e=new t.constructor(t.byteLength);return new cz(e).set(new cz(t)),e}var dz=/\w*$/;var hz=nL?nL.prototype:void 0,pz=hz?hz.valueOf:void 0;function fz(t,e,n){var r,i=t.constructor;switch(e){case"[object ArrayBuffer]":return uz(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var n=e?uz(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var n=e?uz(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,dz.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return r=t,pz?Object(pz.call(r)):{}}}var mz=Object.create,gz=function(){function t(){}return function(e){if(!SL(e))return{};if(mz)return mz(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),vz=gz;var yz=gI&&gI.isMap,bz=yz?dI(yz):function(t){return hL(t)&&"[object Map]"==sz(t)};var xz=gI&&gI.isSet,_z=xz?dI(xz):function(t){return hL(t)&&"[object Set]"==sz(t)},wz="[object Arguments]",Sz="[object Function]",kz="[object Object]",Cz={};function Ez(t,e,n,r,i,o){var a,s=1&e,l=2&e,c=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!SL(t))return t;var u=nI(t);if(u){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&lz.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return LI(t,a)}else{var d=sz(t),h=d==Sz||"[object GeneratorFunction]"==d;if(aI(t))return function(t,e){if(e)return t.slice();var n=t.length,r=DI?DI(n):new t.constructor(n);return t.copy(r),r}(t,s);if(d==kz||d==wz||h&&!i){if(a=l||h?{}:function(t){return"function"!=typeof t.constructor||wI(t)?{}:vz(dL(t))}(t),!s)return l?function(t,e){return GL(t,HI(t),e)}(t,function(t,e){return t&&GL(e,OI(e),t)}(a,t)):function(t,e){return GL(t,$I(t),e)}(t,function(t,e){return t&&GL(e,EI(e),t)}(a,t))}else{if(!Cz[d])return i?t:{};a=fz(t,d,s)}}o||(o=new VL);var p=o.get(t);if(p)return p;o.set(t,a),_z(t)?t.forEach((function(r){a.add(Ez(r,e,n,r,t,o))})):bz(t)&&t.forEach((function(r,i){a.set(i,Ez(r,e,n,i,t,o))}));var f=u?void 0:(c?l?YI:VI:l?OI:EI)(t);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););}(f||t,(function(r,i){f&&(r=t[i=r]),ZL(a,i,Ez(r,e,n,i,t,o))})),a}Cz[wz]=Cz["[object Array]"]=Cz["[object ArrayBuffer]"]=Cz["[object DataView]"]=Cz["[object Boolean]"]=Cz["[object Date]"]=Cz["[object Float32Array]"]=Cz["[object Float64Array]"]=Cz["[object Int8Array]"]=Cz["[object Int16Array]"]=Cz["[object Int32Array]"]=Cz["[object Map]"]=Cz["[object Number]"]=Cz[kz]=Cz["[object RegExp]"]=Cz["[object Set]"]=Cz["[object String]"]=Cz["[object Symbol]"]=Cz["[object Uint8Array]"]=Cz["[object Uint8ClampedArray]"]=Cz["[object Uint16Array]"]=Cz["[object Uint32Array]"]=!0,Cz["[object Error]"]=Cz[Sz]=Cz["[object WeakMap]"]=!1;var Mz,Pz;function Oz(t){return Ez(t,5)}var Tz=function(){if(Pz)return Mz;Pz=1;var t=Array.isArray,e=Object.keys,n=Object.prototype.hasOwnProperty,r="undefined"!=typeof Element;function i(o,a){if(o===a)return!0;if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,c,u=t(o),d=t(a);if(u&&d){if((l=o.length)!=a.length)return!1;for(s=l;0!=s--;)if(!i(o[s],a[s]))return!1;return!0}if(u!=d)return!1;var h=o instanceof Date,p=a instanceof Date;if(h!=p)return!1;if(h&&p)return o.getTime()==a.getTime();var f=o instanceof RegExp,m=a instanceof RegExp;if(f!=m)return!1;if(f&&m)return o.toString()==a.toString();var g=e(o);if((l=g.length)!==e(a).length)return!1;for(s=l;0!=s--;)if(!n.call(a,g[s]))return!1;if(r&&o instanceof Element&&a instanceof Element)return o===a;for(s=l;0!=s--;)if(!("_owner"===(c=g[s])&&o.$$typeof||i(o[c],a[c])))return!1;return!0}return o!=o&&a!=a}return Mz=function(t,e){try{return i(t,e)}catch(t){if(t.message&&t.message.match(/stack|recursion/i)||-2146828260===t.number)return console.warn("Warning: react-fast-compare does not handle circular references.",t.name,t.message),!1;throw t}},Mz}(),Nz=vt(Tz),Az="production"===process.env.NODE_ENV;function Dz(t,e){if(!Az){if(t)return;var n="Warning: "+e;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(t){}}}function Lz(t){return Ez(t,4)}function Iz(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function zz(t){return"symbol"==typeof t||hL(t)&&"[object Symbol]"==cL(t)}function Rz(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Rz.Cache||WL),n}Rz.Cache=WL;var Fz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$z=/\\(\\)?/g,jz=function(t){var e=Rz(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Fz,(function(t,n,r,i){e.push(r?i.replace($z,"$1"):n||t)})),e})),Bz=jz;function Hz(t){if("string"==typeof t||zz(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}var Wz=nL?nL.prototype:void 0,Vz=Wz?Wz.toString:void 0;function Yz(t){if("string"==typeof t)return t;if(nI(t))return Iz(t,Yz)+"";if(zz(t))return Vz?Vz.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function qz(t){return nI(t)?Iz(t,Hz):zz(t)?[t]:LI(Bz(function(t){return null==t?"":Yz(t)}(t)))}function Xz(){return Xz=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xz.apply(this,arguments)}function Uz(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}function Zz(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Gz=g(void 0);Gz.displayName="FormikContext",Gz.Provider,Gz.Consumer;var Kz=function(t){return Array.isArray(t)&&0===t.length},Jz=function(t){return"function"==typeof t},Qz=function(t){return null!==t&&"object"==typeof t},tR=function(t){return String(Math.floor(Number(t)))===t},eR=function(t){return"[object String]"===Object.prototype.toString.call(t)},nR=function(t){return Qz(t)&&Jz(t.then)};function rR(t,e,n,r){void 0===r&&(r=0);for(var i=qz(e);t&&r<i.length;)t=t[i[r++]];return r===i.length||t?void 0===t?n:t:n}function iR(t,e,n){for(var r=Lz(t),i=r,o=0,a=qz(e);o<a.length-1;o++){var s=a[o],l=rR(t,a.slice(0,o+1));if(l&&(Qz(l)||Array.isArray(l)))i=i[s]=Lz(l);else{var c=a[o+1];i=i[s]=tR(c)&&Number(c)>=0?[]:{}}}return(0===o?t:i)[a[o]]===n?t:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}function oR(t,e,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(t);i<o.length;i++){var a=o[i],s=t[a];Qz(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},oR(s,e,n,r[a])):r[a]=e}return r}var aR={},sR={};function lR(t){var e=t.validateOnChange,n=void 0===e||e,r=t.validateOnBlur,i=void 0===r||r,a=t.validateOnMount,d=void 0!==a&&a,h=t.isInitialValid,p=t.enableReinitialize,f=void 0!==p&&p,m=t.onSubmit,g=Uz(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=Xz({validateOnChange:n,validateOnBlur:i,validateOnMount:d,onSubmit:m},g),y=s(v.initialValues),b=s(v.initialErrors||aR),x=s(v.initialTouched||sR),_=s(v.initialStatus),w=s(!1),S=s({});"production"!==process.env.NODE_ENV&&l((function(){void 0!==h&&("production"!==process.env.NODE_ENV?Dz(!1,"isInitialValid has been deprecated and will be removed in future versions of Formik. Please use initialErrors or validateOnMount instead."):Dz(!1))}),[]),l((function(){return w.current=!0,function(){w.current=!1}}),[]);var k=u(0)[1],C=s({values:Oz(v.initialValues),errors:Oz(v.initialErrors)||aR,touched:Oz(v.initialTouched)||sR,status:Oz(v.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),E=C.current,M=c((function(t){var e=C.current;C.current=function(t,e){switch(e.type){case"SET_VALUES":return Xz({},t,{values:e.payload});case"SET_TOUCHED":return Xz({},t,{touched:e.payload});case"SET_ERRORS":return Nz(t.errors,e.payload)?t:Xz({},t,{errors:e.payload});case"SET_STATUS":return Xz({},t,{status:e.payload});case"SET_ISSUBMITTING":return Xz({},t,{isSubmitting:e.payload});case"SET_ISVALIDATING":return Xz({},t,{isValidating:e.payload});case"SET_FIELD_VALUE":return Xz({},t,{values:iR(t.values,e.payload.field,e.payload.value)});case"SET_FIELD_TOUCHED":return Xz({},t,{touched:iR(t.touched,e.payload.field,e.payload.value)});case"SET_FIELD_ERROR":return Xz({},t,{errors:iR(t.errors,e.payload.field,e.payload.value)});case"RESET_FORM":return Xz({},t,e.payload);case"SET_FORMIK_STATE":return e.payload(t);case"SUBMIT_ATTEMPT":return Xz({},t,{touched:oR(t.values,!0),isSubmitting:!0,submitCount:t.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Xz({},t,{isSubmitting:!1});default:return t}}(e,t),e!==C.current&&k((function(t){return t+1}))}),[]),P=c((function(t,e){return new Promise((function(n,r){var i=v.validate(t,e);null==i?n(aR):nR(i)?i.then((function(t){n(t||aR)}),(function(t){"production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validate />",t),r(t)})):n(i)}))}),[v.validate]),O=c((function(t,e){var n=v.validationSchema,r=Jz(n)?n(e):n,i=e&&r.validateAt?r.validateAt(e,t):function(t,e,n,r){void 0===n&&(n=!1);var i=uR(t);return e[n?"validateSync":"validate"](i,{abortEarly:!1,context:r||i})}(t,r);return new Promise((function(t,e){i.then((function(){t(aR)}),(function(n){"ValidationError"===n.name?t(function(t){var e={};if(t.inner){if(0===t.inner.length)return iR(e,t.path,t.message);var n=t.inner,r=Array.isArray(n),i=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;rR(e,a.path)||(e=iR(e,a.path,a.message))}}return e}(n)):("production"!==process.env.NODE_ENV&&console.warn("Warning: An unhandled error was caught during validation in <Formik validationSchema />",n),e(n))}))}))}),[v.validationSchema]),T=c((function(t,e){return new Promise((function(n){return n(S.current[t].validate(e))}))}),[]),N=c((function(t){var e=Object.keys(S.current).filter((function(t){return Jz(S.current[t].validate)})),n=e.length>0?e.map((function(e){return T(e,rR(t,e))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(t){return t.reduce((function(t,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(t=iR(t,e[r],n)),t}),{})}))}),[T]),A=c((function(t){return Promise.all([N(t),v.validationSchema?O(t):{},v.validate?P(t):{}]).then((function(t){var e=t[0],n=t[1],r=t[2];return JD.all([e,n,r],{arrayMerge:dR})}))}),[v.validate,v.validationSchema,N,P,O]),D=pR((function(t){return void 0===t&&(t=E.values),M({type:"SET_ISVALIDATING",payload:!0}),A(t).then((function(t){return w.current&&(M({type:"SET_ISVALIDATING",payload:!1}),M({type:"SET_ERRORS",payload:t})),t}))}));l((function(){d&&!0===w.current&&Nz(y.current,v.initialValues)&&D(y.current)}),[d,D]);var L=c((function(t){var e=t&&t.values?t.values:y.current,n=t&&t.errors?t.errors:b.current?b.current:v.initialErrors||{},r=t&&t.touched?t.touched:x.current?x.current:v.initialTouched||{},i=t&&t.status?t.status:_.current?_.current:v.initialStatus;y.current=e,b.current=n,x.current=r,_.current=i;var o=function(){M({type:"RESET_FORM",payload:{isSubmitting:!!t&&!!t.isSubmitting,errors:n,touched:r,status:i,values:e,isValidating:!!t&&!!t.isValidating,submitCount:t&&t.submitCount&&"number"==typeof t.submitCount?t.submitCount:0}})};if(v.onReset){var a=v.onReset(E.values,Q);nR(a)?a.then(o):o()}else o()}),[v.initialErrors,v.initialStatus,v.initialTouched,v.onReset]);l((function(){!0!==w.current||Nz(y.current,v.initialValues)||f&&(y.current=v.initialValues,L(),d&&D(y.current))}),[f,v.initialValues,L,d,D]),l((function(){f&&!0===w.current&&!Nz(b.current,v.initialErrors)&&(b.current=v.initialErrors||aR,M({type:"SET_ERRORS",payload:v.initialErrors||aR}))}),[f,v.initialErrors]),l((function(){f&&!0===w.current&&!Nz(x.current,v.initialTouched)&&(x.current=v.initialTouched||sR,M({type:"SET_TOUCHED",payload:v.initialTouched||sR}))}),[f,v.initialTouched]),l((function(){f&&!0===w.current&&!Nz(_.current,v.initialStatus)&&(_.current=v.initialStatus,M({type:"SET_STATUS",payload:v.initialStatus}))}),[f,v.initialStatus,v.initialTouched]);var I=pR((function(t){if(S.current[t]&&Jz(S.current[t].validate)){var e=rR(E.values,t),n=S.current[t].validate(e);return nR(n)?(M({type:"SET_ISVALIDATING",payload:!0}),n.then((function(t){return t})).then((function(e){M({type:"SET_FIELD_ERROR",payload:{field:t,value:e}}),M({type:"SET_ISVALIDATING",payload:!1})}))):(M({type:"SET_FIELD_ERROR",payload:{field:t,value:n}}),Promise.resolve(n))}return v.validationSchema?(M({type:"SET_ISVALIDATING",payload:!0}),O(E.values,t).then((function(t){return t})).then((function(e){M({type:"SET_FIELD_ERROR",payload:{field:t,value:rR(e,t)}}),M({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),z=c((function(t,e){var n=e.validate;S.current[t]={validate:n}}),[]),R=c((function(t){delete S.current[t]}),[]),F=pR((function(t,e){return M({type:"SET_TOUCHED",payload:t}),(void 0===e?i:e)?D(E.values):Promise.resolve()})),$=c((function(t){M({type:"SET_ERRORS",payload:t})}),[]),j=pR((function(t,e){var r=Jz(t)?t(E.values):t;return M({type:"SET_VALUES",payload:r}),(void 0===e?n:e)?D(r):Promise.resolve()})),B=c((function(t,e){M({type:"SET_FIELD_ERROR",payload:{field:t,value:e}})}),[]),H=pR((function(t,e,r){return M({type:"SET_FIELD_VALUE",payload:{field:t,value:e}}),(void 0===r?n:r)?D(iR(E.values,t,e)):Promise.resolve()})),W=c((function(t,e){var n,r=e,i=t;if(!eR(t)){t.persist&&t.persist();var o=t.target?t.target:t.currentTarget,a=o.type,s=o.name,l=o.id,c=o.value,u=o.checked,d=o.outerHTML,h=o.options,p=o.multiple;(r=e||(s||l))||"production"===process.env.NODE_ENV||cR({htmlContent:d,documentationAnchorLink:"handlechange-e-reactchangeeventany--void",handlerName:"handleChange"}),i=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(t,e,n){if("boolean"==typeof t)return Boolean(e);var r=[],i=!1,o=-1;if(Array.isArray(t))r=t,i=(o=t.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(e);if(e&&n&&!i)return r.concat(n);if(!i)return r;return r.slice(0,o).concat(r.slice(o+1))}(rR(E.values,r),u,c):h&&p?function(t){return Array.from(t).filter((function(t){return t.selected})).map((function(t){return t.value}))}(h):c}r&&H(r,i)}),[H,E.values]),V=pR((function(t){if(eR(t))return function(e){return W(e,t)};W(t)})),Y=pR((function(t,e,n){return void 0===e&&(e=!0),M({type:"SET_FIELD_TOUCHED",payload:{field:t,value:e}}),(void 0===n?i:n)?D(E.values):Promise.resolve()})),q=c((function(t,e){t.persist&&t.persist();var n=t.target,r=n.name,i=n.id,o=n.outerHTML,a=e||(r||i);a||"production"===process.env.NODE_ENV||cR({htmlContent:o,documentationAnchorLink:"handleblur-e-any--void",handlerName:"handleBlur"}),Y(a,!0)}),[Y]),X=pR((function(t){if(eR(t))return function(e){return q(e,t)};q(t)})),U=c((function(t){Jz(t)?M({type:"SET_FORMIK_STATE",payload:t}):M({type:"SET_FORMIK_STATE",payload:function(){return t}})}),[]),Z=c((function(t){M({type:"SET_STATUS",payload:t})}),[]),G=c((function(t){M({type:"SET_ISSUBMITTING",payload:t})}),[]),K=pR((function(){return M({type:"SUBMIT_ATTEMPT"}),D().then((function(t){var e=t instanceof Error;if(!e&&0===Object.keys(t).length){var n;try{if(void 0===(n=tt()))return}catch(t){throw t}return Promise.resolve(n).then((function(t){return w.current&&M({type:"SUBMIT_SUCCESS"}),t})).catch((function(t){if(w.current)throw M({type:"SUBMIT_FAILURE"}),t}))}if(w.current&&(M({type:"SUBMIT_FAILURE"}),e))throw t}))})),J=pR((function(t){if(t&&t.preventDefault&&Jz(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&Jz(t.stopPropagation)&&t.stopPropagation(),"production"!==process.env.NODE_ENV&&"undefined"!=typeof document){var e=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}();null!==e&&e instanceof HTMLButtonElement&&(e.attributes&&e.attributes.getNamedItem("type")||("production"!==process.env.NODE_ENV?Dz(!1,'You submitted a Formik form using a button with an unspecified `type` attribute. Most browsers default button elements to `type="submit"`. If this is not a submit button, please add `type="button"`.'):Dz(!1)))}K().catch((function(t){console.warn("Warning: An unhandled error was caught from submitForm()",t)}))})),Q={resetForm:L,validateForm:D,validateField:I,setErrors:$,setFieldError:B,setFieldTouched:Y,setFieldValue:H,setStatus:Z,setSubmitting:G,setTouched:F,setValues:j,setFormikState:U,submitForm:K},tt=pR((function(){return m(E.values,Q)})),et=pR((function(t){t&&t.preventDefault&&Jz(t.preventDefault)&&t.preventDefault(),t&&t.stopPropagation&&Jz(t.stopPropagation)&&t.stopPropagation(),L()})),nt=c((function(t){return{value:rR(E.values,t),error:rR(E.errors,t),touched:!!rR(E.touched,t),initialValue:rR(y.current,t),initialTouched:!!rR(x.current,t),initialError:rR(b.current,t)}}),[E.errors,E.touched,E.values]),rt=c((function(t){return{setValue:function(e,n){return H(t,e,n)},setTouched:function(e,n){return Y(t,e,n)},setError:function(e){return B(t,e)}}}),[H,Y,B]),it=c((function(t){var e=Qz(t),n=e?t.name:t,r=rR(E.values,n),i={name:n,value:r,onChange:V,onBlur:X};if(e){var o=t.type,a=t.value,s=t.as,l=t.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i}),[X,V,E.values]),ot=o((function(){return!Nz(y.current,E.values)}),[y.current,E.values]),at=o((function(){return void 0!==h?ot?E.errors&&0===Object.keys(E.errors).length:!1!==h&&Jz(h)?h(v):h:E.errors&&0===Object.keys(E.errors).length}),[h,ot,E.errors,v]);return Xz({},E,{initialValues:y.current,initialErrors:b.current,initialTouched:x.current,initialStatus:_.current,handleBlur:X,handleChange:V,handleReset:et,handleSubmit:J,resetForm:L,setErrors:$,setFormikState:U,setFieldTouched:Y,setFieldValue:H,setFieldError:B,setStatus:Z,setSubmitting:G,setTouched:F,setValues:j,submitForm:K,validateForm:D,validateField:I,isValid:at,dirty:ot,unregisterField:R,registerField:z,getFieldProps:it,getFieldMeta:nt,getFieldHelpers:rt,validateOnBlur:i,validateOnChange:n,validateOnMount:d})}function cR(t){var e=t.htmlContent,n=t.documentationAnchorLink,r=t.handlerName;console.warn("Warning: Formik called `"+r+"`, but you forgot to pass an `id` or `name` attribute to your input:\n "+e+"\n Formik cannot determine which value to update. For more info see https://formik.org/docs/api/formik#"+n+"\n ")}function uR(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);!0===Array.isArray(t[r])?e[r]=t[r].map((function(t){return!0===Array.isArray(t)||yL(t)?uR(t):""!==t?t:void 0})):yL(t[r])?e[r]=uR(t[r]):e[r]=""!==t[r]?t[r]:void 0}return e}function dR(t,e,n){var r=t.slice();return e.forEach((function(e,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(e);r[i]=o?JD(Array.isArray(e)?[]:{},e,n):e}else n.isMergeableObject(e)?r[i]=JD(t[i],e,n):-1===t.indexOf(e)&&r.push(e)})),r}var hR="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d:l;function pR(t){var e=s(t);return hR((function(){e.current=t})),c((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.current.apply(void 0,n)}),[])}h((function(t,e){var n,r=t.action,i=Uz(t,["action"]),o=null!=r?r:"#",a=((n=p(Gz))||("production"!==process.env.NODE_ENV?Dz(!1,"Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component."):Dz(!1)),n),s=a.handleReset,l=a.handleSubmit;return _("form",Xz({onSubmit:l,ref:e,onReset:s,action:o},i))})).displayName="Form";var fR=function(t,e,n){var r=mR(t);return r.splice(e,0,n),r},mR=function(t){if(t){if(Array.isArray(t))return[].concat(t);var e=Object.keys(t).map((function(t){return parseInt(t)})).reduce((function(t,e){return e>t?e:t}),0);return Array.from(Xz({},t,{length:e+1}))}return[]},gR=function(t,e){var n="function"==typeof t?t:e;return function(t){if(Array.isArray(t)||Qz(t)){var e=mR(t);return n(e)}return t}},vR=function(t){var e,n;function r(e){var n;return(n=t.call(this,e)||this).updateArrayField=function(t,e,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)((function(n){var i=gR(r,t),a=gR(e,t),s=iR(n.values,o,t(rR(n.values,o))),l=r?i(rR(n.errors,o)):void 0,c=e?a(rR(n.touched,o)):void 0;return Kz(l)&&(l=void 0),Kz(c)&&(c=void 0),Xz({},n,{values:s,errors:r?iR(n.errors,o,l):n.errors,touched:e?iR(n.touched,o,c):n.touched})}))},n.push=function(t){return n.updateArrayField((function(e){return[].concat(mR(e),[Oz(t)])}),!1,!1)},n.handlePush=function(t){return function(){return n.push(t)}},n.swap=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=mR(t),i=r[e];return r[e]=r[n],r[n]=i,r}(n,t,e)}),!0,!0)},n.handleSwap=function(t,e){return function(){return n.swap(t,e)}},n.move=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=mR(t),i=r[e];return r.splice(e,1),r.splice(n,0,i),r}(n,t,e)}),!0,!0)},n.handleMove=function(t,e){return function(){return n.move(t,e)}},n.insert=function(t,e){return n.updateArrayField((function(n){return fR(n,t,e)}),(function(e){return fR(e,t,null)}),(function(e){return fR(e,t,null)}))},n.handleInsert=function(t,e){return function(){return n.insert(t,e)}},n.replace=function(t,e){return n.updateArrayField((function(n){return function(t,e,n){var r=mR(t);return r[e]=n,r}(n,t,e)}),!1,!1)},n.handleReplace=function(t,e){return function(){return n.replace(t,e)}},n.unshift=function(t){var e=-1;return n.updateArrayField((function(n){var r=n?[t].concat(n):[t];return e=r.length,r}),(function(t){return t?[null].concat(t):[null]}),(function(t){return t?[null].concat(t):[null]})),e},n.handleUnshift=function(t){return function(){return n.unshift(t)}},n.handleRemove=function(t){return function(){return n.remove(t)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Zz(n)),n.pop=n.pop.bind(Zz(n)),n}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var i=r.prototype;return i.componentDidUpdate=function(t){this.props.validateOnChange&&this.props.formik.validateOnChange&&!Nz(rR(t.formik.values,t.name),rR(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},i.remove=function(t){var e;return this.updateArrayField((function(n){var r=n?mR(n):[];return e||(e=r[t]),Jz(r.splice)&&r.splice(t,1),Jz(r.every)&&r.every((function(t){return void 0===t}))?[]:r}),!0,!0),e},i.pop=function(){var t;return this.updateArrayField((function(e){var n=e.slice();return t||(t=n&&n.pop&&n.pop()),n}),!0,!0),t},i.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},e=this.props,n=e.component,r=e.render,i=e.children,o=e.name,a=Xz({},t,{form:Uz(e.formik,["validate","validationSchema"]),name:o});return n?_(n,a):r?r(a):i?"function"==typeof i?i(a):function(t){return 0===v.count(t)}(i)?null:v.only(i):null},r}(w);vR.defaultProps={validateOnChange:!0};const yR=[{value:"jpg",label:"JPG"},{value:"png",label:"PNG"},{value:"mp4",label:"MP4"}],bR=["kb","mb","gb","tb"],xR=[{value:"last_1_hour",label:"Last 1 Hour"},{value:"last_6_hour",label:"Last 6 Hour"},{value:"last_12_hour",label:"Last 12 Hour"},{value:"last_24_hour",label:"Last 24 Hour"},{value:"last_2_days",label:"Last 2 Days"},{value:"last_7_days",label:"Last 7 Days"},{value:"last_14_days",label:"Last 14 Days"},{value:"last_28_days",label:"Last 28 Days"},{value:"today",label:"Today"},{value:"yesterday",label:"Yesterday"},{value:"this_week",label:"This Week"},{value:"last_week",label:"Last Week"}];var _R=a((({onApply:n,onCancel:r})=>{const i=lR({initialValues:{type:["jpg","png","mp4"],fileSize:{min:{value:1,unit:"mb"},max:{value:10,unit:"gb"}},quickdate:null,dateRange:{from:null,to:null}},onSubmit:t=>o(t)}),o=t=>{n?.(t)};return t("form",{onSubmit:i.handleSubmit,children:e(j,{dimensionX:515,dimensionY:350,gap:10,className:BD,direction:"vertical",children:[t(B,{dimensionX:"fill",prefix:{children:t(W,{children:"Type"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(ID,{dimensionY:"hug",options:yR,value:i.values.type,onChange:t=>i.setFieldValue("type",t),dimensionX:200,alignment:"rightCenter",placeholder:"",multiple:!0,className:`${HD} ${WD}`})}}),t(B,{dimensionX:"fill",prefix:{children:t(W,{children:"File Size"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:e(j,{className:WD,children:[e(j,{className:VD,children:[t(Z,{value:i.values.fileSize.min.value,type:"number",dimensionX:45,onChange:t=>i.setFieldValue("fileSize.min.value",t.target.value)}),t(ID,{dimensionY:"hug",options:bR,dimensionX:60,onChange:t=>i.setFieldValue("fileSize.min.unit",t),alignment:"rightCenter",placeholder:"",value:i.values.fileSize.min.unit,className:HD})]}),e(j,{children:[t(Z,{value:i.values.fileSize.max.value,type:"number",dimensionX:45,onChange:t=>i.setFieldValue("fileSize.max.value",t.target.value)}),t(ID,{dimensionY:"hug",options:bR,dimensionX:60,onChange:t=>i.setFieldValue("fileSize.max.unit",t),alignment:"rightCenter",placeholder:"",value:i.values.fileSize.max.unit,className:HD})]})]})}}),t(W,{dimensionX:"fill",children:"Created At"}),t(j,{direction:"wrap",dimensionX:"fill",children:xR.map((e=>{const n=i.values.quickdate===e.value;return t(Qf,{gap:5,dimensionX:120,label:e.label,className:`${YD} ${n&&qD}`,variant:"outlined",suffixIcon:n?"check":void 0,onClick:()=>i.setFieldValue("quickdate",e.value)},e.value)}))}),t(B,{dimensionX:"fill",prefix:{children:t(W,{children:"From"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(j,{className:WD,dimensionY:31.5,dimensionX:200,children:t(rA,{onChange:t=>i.setFieldValue("dateRange.from",t),value:i.values.dateRange.from||null,placeholder:"Date",suffixIcon:t(Ua,{name:"chevronDown"}),format:"YYYY-MM-DD HH:mm:ss",showTime:!0})})}}),t(B,{dimensionX:"fill",prefix:{children:t(W,{children:"To"}),dimensionX:"fill",alignment:"leftCenter"},suffix:{children:t(j,{className:WD,dimensionY:31.5,dimensionX:200,children:t(rA,{onChange:t=>i.setFieldValue("dateRange.to",t),value:i.values.dateRange.to,placeholder:"Date",suffixIcon:t(Ua,{name:"chevronDown"}),format:"YYYY-MM-DD HH:mm:ss",showTime:!0})})}}),e(j,{dimensionX:"fill",alignment:"rightCenter",children:[e(ys,{color:"transparent",variant:"text",onClick:()=>{r?.()},children:[t(Ua,{name:"close"}),"Cancel"]}),e(ys,{type:"submit",children:[t(Ua,{name:"filter"})," Apply"]})]})]})})})),wR="Timeline-module_pan__6qEQq",SR="Timeline-module_container__s3lvD",kR="Timeline-module_date__z5hHi",CR="Timeline-module_from__K9jIK",ER="Timeline-module_to__gGj9w";const MR="label";function PR(t,e){"function"==typeof t?t(e):t&&(t.current=e)}function OR(t,e){t.labels=e}function TR(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:MR;const r=[];t.datasets=e.map((e=>{const i=t.datasets.find((t=>t[n]===e[n]));return i&&e.data&&!r.includes(i)?(r.push(i),Object.assign(i,e),i):{...e}}))}function NR(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:MR;const n={labels:[],datasets:[]};return OR(n,t.labels),TR(n,t.datasets,e),n}function AR(t,e){const{height:n=150,width:r=300,redraw:o=!1,datasetIdKey:a,type:c,data:u,options:d,plugins:h=[],fallbackContent:p,updateMode:f,...m}=t,g=s(null),v=s(null),y=()=>{g.current&&(v.current=new Yh(g.current,{type:c,data:NR(u,a),options:d&&{...d},plugins:h}),PR(e,v.current))},b=()=>{PR(e,null),v.current&&(v.current.destroy(),v.current=null)};return l((()=>{!o&&v.current&&d&&function(t,e){const n=t.options;n&&e&&Object.assign(n,e)}(v.current,d)}),[o,d]),l((()=>{!o&&v.current&&OR(v.current.config.data,u.labels)}),[o,u.labels]),l((()=>{!o&&v.current&&u.datasets&&TR(v.current.config.data,u.datasets,a)}),[o,u.datasets]),l((()=>{v.current&&(o?(b(),setTimeout(y)):v.current.update(f))}),[o,d,u.labels,u.datasets,f]),l((()=>{v.current&&(b(),setTimeout(y))}),[c]),l((()=>(y(),()=>b())),[]),i.createElement("canvas",{ref:g,role:"img",height:n,width:r,...m},p)}const DR=h(AR);function LR(t,e){return Yh.register(e),h(((e,n)=>i.createElement(DR,{...e,ref:n,type:t})))}const IR=LR("bar",pd);var zR,RR={exports:{}};
|
|
68
|
-
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
69
|
-
* http://hammerjs.github.io/
|
|
70
|
-
*
|
|
71
|
-
* Copyright (c) 2016 Jorik Tangelder;
|
|
72
|
-
* Licensed under the MIT license */var FR=(zR||(zR=1,function(t){!function(e,n,r,i){var o,a=["","webkit","Moz","MS","ms","o"],s=n.createElement("div"),l=Math.round,c=Math.abs,u=Date.now;function d(t,e,n){return setTimeout(y(t,n),e)}function h(t,e,n){return!!Array.isArray(t)&&(p(t,n[e],n),!0)}function p(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==i)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function f(t,n,r){var i="DEPRECATED METHOD: "+n+"\n"+r+" AT \n";return function(){var n=new Error("get-stack-trace"),r=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=e.console&&(e.console.warn||e.console.log);return o&&o.call(e.console,i,r),t.apply(this,arguments)}}o="function"!=typeof Object.assign?function(t){if(t===i||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==i&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(e[o]=r[o])}return e}:Object.assign;var m=f((function(t,e,n){for(var r=Object.keys(e),o=0;o<r.length;)(!n||n&&t[r[o]]===i)&&(t[r[o]]=e[r[o]]),o++;return t}),"extend","Use `assign`."),g=f((function(t,e){return m(t,e,!0)}),"merge","Use `assign`.");function v(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&o(r,n)}function y(t,e){return function(){return t.apply(e,arguments)}}function b(t,e){return"function"==typeof t?t.apply(e&&e[0]||i,e):t}function x(t,e){return t===i?e:t}function _(t,e,n){p(C(e),(function(e){t.addEventListener(e,n,!1)}))}function w(t,e,n){p(C(e),(function(e){t.removeEventListener(e,n,!1)}))}function S(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function k(t,e){return t.indexOf(e)>-1}function C(t){return t.trim().split(/\s+/g)}function E(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function M(t){return Array.prototype.slice.call(t,0)}function P(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var a=e?t[o][e]:t[o];E(i,a)<0&&r.push(t[o]),i[o]=a,o++}return n&&(r=e?r.sort((function(t,n){return t[e]>n[e]})):r.sort()),r}function O(t,e){for(var n,r,o=e[0].toUpperCase()+e.slice(1),s=0;s<a.length;){if((r=(n=a[s])?n+o:e)in t)return r;s++}return i}var T=1;function N(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}var A="ontouchstart"in e,D=O(e,"PointerEvent")!==i,L=A&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),I="touch",z="mouse",R=24,F=["x","y"],$=["clientX","clientY"];function j(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){b(t.options.enable,[t])&&n.handler(e)},this.init()}function B(t,e,n){var r=n.pointers.length,o=n.changedPointers.length,a=1&e&&r-o==0,s=12&e&&r-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,o=r.length;n.firstInput||(n.firstInput=H(e)),o>1&&!n.firstMultiple?n.firstMultiple=H(e):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,l=s?s.center:a.center,d=e.center=W(r);e.timeStamp=u(),e.deltaTime=e.timeStamp-a.timeStamp,e.angle=X(l,d),e.distance=q(l,d),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=Y(e.deltaX,e.deltaY);var h,p,f=V(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=f.x,e.overallVelocityY=f.y,e.overallVelocity=c(f.x)>c(f.y)?f.x:f.y,e.scale=s?(h=s.pointers,q((p=r)[0],p[1],$)/q(h[0],h[1],$)):1,e.rotation=s?function(t,e){return X(e[1],e[0],$)+X(t[1],t[0],$)}(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,o,a,s=t.lastInterval||e,l=e.timeStamp-s.timeStamp;if(8!=e.eventType&&(l>25||s.velocity===i)){var u=e.deltaX-s.deltaX,d=e.deltaY-s.deltaY,h=V(l,u,d);r=h.x,o=h.y,n=c(h.x)>c(h.y)?h.x:h.y,a=Y(u,d),t.lastInterval=e}else n=s.velocity,r=s.velocityX,o=s.velocityY,a=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=o,e.direction=a}(n,e);var m=t.element;S(e.srcEvent.target,m)&&(m=e.srcEvent.target),e.target=m}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function H(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:l(t.pointers[n].clientX),clientY:l(t.pointers[n].clientY)},n++;return{timeStamp:u(),pointers:e,center:W(e),deltaX:t.deltaX,deltaY:t.deltaY}}function W(t){var e=t.length;if(1===e)return{x:l(t[0].clientX),y:l(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:l(n/e),y:l(r/e)}}function V(t,e,n){return{x:e/t||0,y:n/t||0}}function Y(t,e){return t===e?1:c(t)>=c(e)?t<0?2:4:e<0?8:16}function q(t,e,n){n||(n=F);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function X(t,e,n){n||(n=F);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}j.prototype={handler:function(){},init:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(N(this.element),this.evWin,this.domHandler)}};var U={mousedown:1,mousemove:2,mouseup:4},Z="mousedown",G="mousemove mouseup";function K(){this.evEl=Z,this.evWin=G,this.pressed=!1,j.apply(this,arguments)}v(K,j,{handler:function(t){var e=U[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:z,srcEvent:t}))}});var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Q={2:I,3:"pen",4:z,5:"kinect"},tt="pointerdown",et="pointermove pointerup pointercancel";function nt(){this.evEl=tt,this.evWin=et,j.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(tt="MSPointerDown",et="MSPointerMove MSPointerUp MSPointerCancel"),v(nt,j,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=J[r],o=Q[t.pointerType]||t.pointerType,a=o==I,s=E(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var rt={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function it(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,j.apply(this,arguments)}function ot(t,e){var n=M(t.touches),r=M(t.changedTouches);return 12&e&&(n=P(n.concat(r),"identifier",!0)),[n,r]}v(it,j,{handler:function(t){var e=rt[t.type];if(1===e&&(this.started=!0),this.started){var n=ot.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:I,srcEvent:t})}}});var at={touchstart:1,touchmove:2,touchend:4,touchcancel:8},st="touchstart touchmove touchend touchcancel";function lt(){this.evTarget=st,this.targetIds={},j.apply(this,arguments)}function ct(t,e){var n=M(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=M(t.changedTouches),s=[],l=this.target;if(o=n.filter((function(t){return S(t.target,l)})),1===e)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),12&e&&delete r[a[i].identifier],i++;return s.length?[P(o.concat(s),"identifier",!0),s]:void 0}function ut(){j.apply(this,arguments);var t=y(this.handler,this);this.touch=new lt(this.manager,t),this.mouse=new K(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function dt(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ht.call(this,e)):12&t&&ht.call(this,e)}function ht(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)}),2500)}}function pt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}v(lt,j,{handler:function(t){var e=at[t.type],n=ct.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:I,srcEvent:t})}}),v(ut,j,{handler:function(t,e,n){var r=n.pointerType==I,i=n.pointerType==z;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)dt.call(this,e,n);else if(i&&pt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ft=O(s.style,"touchAction"),mt=ft!==i,gt="compute",vt="auto",yt="manipulation",bt="none",xt="pan-x",_t="pan-y",wt=function(){if(!mt)return!1;var t={},n=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){t[r]=!n||e.CSS.supports("touch-action",r)})),t}();function St(t,e){this.manager=t,this.set(e)}St.prototype={set:function(t){t==gt&&(t=this.compute()),mt&&this.manager.element.style&&wt[t]&&(this.manager.element.style[ft]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return p(this.manager.recognizers,(function(e){b(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(k(t,bt))return bt;var e=k(t,xt),n=k(t,_t);return e&&n?bt:e||n?e?xt:_t:k(t,yt)?yt:vt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=k(r,bt)&&!wt[bt],o=k(r,_t)&&!wt[_t],a=k(r,xt)&&!wt[xt];if(i){var s=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(s&&l&&c)return}if(!a||!o)return i||o&&6&n||a&&n&R?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var kt=32;function Ct(t){this.options=o({},this.defaults,t||{}),this.id=T++,this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Et(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Mt(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Pt(t,e){var n=e.manager;return n?n.get(t):t}function Ot(){Ct.apply(this,arguments)}function Tt(){Ot.apply(this,arguments),this.pX=null,this.pY=null}function Nt(){Ot.apply(this,arguments)}function At(){Ct.apply(this,arguments),this._timer=null,this._input=null}function Dt(){Ot.apply(this,arguments)}function Lt(){Ot.apply(this,arguments)}function It(){Ct.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function zt(t,e){return(e=e||{}).recognizers=x(e.recognizers,zt.defaults.preset),new Rt(t,e)}function Rt(t,e){var n;this.options=o({},zt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(D?nt:L?lt:A?ut:K))(n,B),this.touchAction=new St(this,this.options.touchAction),Ft(this,!0),p(this.options.recognizers,(function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}function Ft(t,e){var n,r=t.element;r.style&&(p(t.options.cssProps,(function(i,o){n=O(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Ct.prototype={defaults:{},set:function(t){return o(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(h(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Pt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return h(t,"dropRecognizeWith",this)||(t=Pt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(h(t,"requireFailure",this))return this;var e=this.requireFail;return-1===E(e,t=Pt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(h(t,"dropRequireFailure",this))return this;t=Pt(t,this);var e=E(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+Et(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+Et(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=kt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=o({},t);if(!b(this.options.enable,[this,e]))return this.reset(),void(this.state=kt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},v(Ot,Ct,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:kt}}),v(Tt,Ot,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(_t),t&R&&e.push(xt),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return Ot.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Mt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),v(Nt,Ot,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),v(At,Ct,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[vt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=d((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return kt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}}),v(Dt,Ot,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),v(Lt,Ot,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Tt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:n&R&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&c(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Mt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),v(It,Ct,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[yt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||q(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=d((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return kt},failTimeout:function(){return this._timer=d((function(){this.state=kt}),this.options.interval,this),kt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),zt.VERSION="2.0.7",zt.defaults={domEvents:!1,touchAction:gt,enable:!0,inputTarget:null,inputClass:null,preset:[[Dt,{enable:!1}],[Nt,{enable:!1},["rotate"]],[Lt,{direction:6}],[Tt,{direction:6},["swipe"]],[It],[It,{event:"doubletap",taps:2},["tap"]],[At]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Rt.prototype={set:function(t){return o(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Ct)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(h(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(h(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=E(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==i&&e!==i){var n=this.handlers;return p(C(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==i){var n=this.handlers;return p(C(t),(function(t){e?n[t]&&n[t].splice(E(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var r=n.createEvent("Event");r.initEvent(t,!0,!0),r.gesture=e,e.target.dispatchEvent(r)}(t,e);var r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<r.length;)r[i](e),i++}},destroy:function(){this.element&&Ft(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(zt,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:kt,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:R,DIRECTION_ALL:30,Manager:Rt,Input:j,TouchAction:St,TouchInput:lt,MouseInput:K,PointerEventInput:nt,TouchMouseInput:ut,SingleTouchInput:it,Recognizer:Ct,AttrRecognizer:Ot,Tap:It,Pan:Tt,Swipe:Lt,Pinch:Nt,Rotate:Dt,Press:At,on:_,off:w,each:p,merge:g,extend:m,assign:o,inherit:v,bindFn:y,prefixed:O}),(void 0!==e?e:"undefined"!=typeof self?self:{}).Hammer=zt,t.exports?t.exports=zt:e.Hammer=zt}(window,document)}(RR)),RR.exports),$R=vt(FR);
|
|
73
|
-
/*!
|
|
74
|
-
* chartjs-plugin-zoom v2.2.0
|
|
75
|
-
* https://www.chartjs.org/chartjs-plugin-zoom/2.2.0/
|
|
76
|
-
* (c) 2016-2024 chartjs-plugin-zoom Contributors
|
|
77
|
-
* Released under the MIT License
|
|
78
|
-
*/
|
|
79
|
-
const jR=t=>t&&t.enabled&&t.modifierKey,BR=(t,e)=>t&&e[t+"Key"],HR=(t,e)=>t&&!e[t+"Key"];function WR(t,e,n){return void 0===t||("string"==typeof t?-1!==t.indexOf(e):"function"==typeof t&&-1!==t({chart:n}).indexOf(e))}function VR(t,e){return"function"==typeof t&&(t=t({chart:e})),"string"==typeof t?{x:-1!==t.indexOf("x"),y:-1!==t.indexOf("y")}:{x:!1,y:!1}}function YR(t,e,n){const{mode:r="xy",scaleMode:i,overScaleMode:o}=t||{},a=function({x:t,y:e},n){const r=n.scales,i=Object.keys(r);for(let n=0;n<i.length;n++){const o=r[i[n]];if(e>=o.top&&e<=o.bottom&&t>=o.left&&t<=o.right)return o}return null}(e,n),s=VR(r,n),l=VR(i,n);if(o){const t=VR(o,n);for(const e of["x","y"])t[e]&&(l[e]=s[e],s[e]=!1)}if(a&&l[a.axis])return[a];const c=[];return ll(n.scales,(function(t){s[t.axis]&&c.push(t)})),c}const qR=new WeakMap;function XR(t){let e=qR.get(t);return e||(e={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{},dragging:!1,panning:!1},qR.set(t,e)),e}function UR(t,e,n,r){const i=Math.max(0,Math.min(1,(t-e)/n||0));return{min:r*i,max:r*(1-i)}}function ZR(t,e){const n=t.isHorizontal()?e.x:e.y;return t.getValueForPixel(n)}function GR(t,e,n){const r=t.max-t.min,i=r*(e-1);return UR(ZR(t,n),t.min,r,i)}function KR(t,e,n,r,i){let o=n[r];if("original"===o){const n=t.originalScaleLimits[e.id][r];o=ol(n.options,n.scale)}return ol(o,i)}function JR(t,{min:e,max:n},r,i=!1){const o=XR(t.chart),{options:a}=t,s=function(t,e){return e&&(e[t.id]||e[t.axis])||{}}(t,r),{minRange:l=0}=s,c=KR(o,t,s,"min",-1/0),u=KR(o,t,s,"max",1/0);if("pan"===i&&(e<c||n>u))return!0;const d=t.max-t.min,h=i?Math.max(n-e,l):d;if(i&&h===l&&d<=l)return!0;const p=function(t,{min:e,max:n,minLimit:r,maxLimit:i},o){const a=(t-n+e)/2;e-=a,n+=a;const s=o.min.options??o.min.scale,l=o.max.options??o.max.scale,c=t/1e6;return Al(e,s,c)&&(e=s),Al(n,l,c)&&(n=l),e<r?(e=r,n=Math.min(r+t,i)):n>i&&(n=i,e=Math.max(i-t,r)),{min:e,max:n}}(h,{min:e,max:n,minLimit:c,maxLimit:u},o.originalScaleLimits[t.id]);return a.min=p.min,a.max=p.max,o.updatedScaleLimits[t.id]=p,t.parse(p.min)!==t.min||t.parse(p.max)!==t.max}const QR=t=>0===t||isNaN(t)?0:t<0?Math.min(Math.round(t),-1):Math.max(Math.round(t),1);const tF={second:500,minute:3e4,hour:18e5,day:432e5,week:3024e5,month:1296e6,quarter:5184e6,year:157248e5};function eF(t,e,n,r=!1){const{min:i,max:o,options:a}=t,s=a.time&&a.time.round,l=tF[s]||0,c=t.getValueForPixel(t.getPixelForValue(i+l)-e),u=t.getValueForPixel(t.getPixelForValue(o+l)-e);return!(!isNaN(c)&&!isNaN(u))||JR(t,{min:c,max:u},n,!!r&&"pan")}function nF(t,e,n){return eF(t,e,n,!0)}const rF={category:function(t,e,n,r){const i=GR(t,e,n);return t.min===t.max&&e<1&&function(t){const e=t.getLabels().length-1;t.min>0&&(t.min-=1),t.max<e&&(t.max+=1)}(t),JR(t,{min:t.min+QR(i.min),max:t.max-QR(i.max)},r,!0)},default:function(t,e,n,r){const i=GR(t,e,n);return JR(t,{min:t.min+i.min,max:t.max-i.max},r,!0)},logarithmic:function(t,e,n,r){const i=function(t,e,n){const r=ZR(t,n);if(void 0===r)return{min:t.min,max:t.max};const i=Math.log10(t.min),o=Math.log10(t.max),a=o-i,s=UR(Math.log10(r),i,a,a*(e-1));return{min:Math.pow(10,i+s.min),max:Math.pow(10,o-s.max)}}(t,e,n);return JR(t,i,r,!0)}},iF={default:function(t,e,n,r){JR(t,function(t,e,n){const r=t.getValueForPixel(e),i=t.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}(t,e,n),r,!0)}},oF={category:function(t,e,n){const r=t.getLabels().length-1;let{min:i,max:o}=t;const a=Math.max(o-i,1),s=Math.round(function(t){return t.isHorizontal()?t.width:t.height}(t)/Math.max(a,10)),l=Math.round(Math.abs(e/s));let c;return e<-s?(o=Math.min(o+l,r),i=1===a?o:o-a,c=o===r):e>s&&(i=Math.max(0,i-l),o=1===a?i:i+a,c=0===i),JR(t,{min:i,max:o},n)||c},default:eF,logarithmic:nF,timeseries:nF};function aF(t,e){ll(t,((n,r)=>{e[r]||delete t[r]}))}function sF(t,e){const{scales:n}=t,{originalScaleLimits:r,updatedScaleLimits:i}=e;return ll(n,(function(t){(function(t,e,n){const{id:r,options:{min:i,max:o}}=t;if(!e[r]||!n[r])return!0;const a=n[r];return a.min!==i||a.max!==o})(t,r,i)&&(r[t.id]={min:{scale:t.min,options:t.options.min},max:{scale:t.max,options:t.options.max}})})),aF(r,n),aF(i,n),r}function lF(t,e,n,r){sl(rF[t.type]||rF.default,[t,e,n,r])}function cF(t,e,n,r){sl(iF[t.type]||iF.default,[t,e,n,r])}function uF(t){const e=t.chartArea;return{x:(e.left+e.right)/2,y:(e.top+e.bottom)/2}}function dF(t,e,n="none",r="api"){const{x:i=1,y:o=1,focalPoint:a=uF(t)}="number"==typeof e?{x:e,y:e}:e,s=XR(t),{options:{limits:l,zoom:c}}=s;sF(t,s);const u=1!==i,d=1!==o;ll(YR(c,a,t)||t.scales,(function(t){t.isHorizontal()&&u?lF(t,i,a,l):!t.isHorizontal()&&d&&lF(t,o,a,l)})),t.update(n),sl(c.onZoom,[{chart:t,trigger:r}])}function hF(t,e,n,r="none",i="api"){const o=XR(t),{options:{limits:a,zoom:s}}=o,{mode:l="xy"}=s;sF(t,o);const c=WR(l,"x",t),u=WR(l,"y",t);ll(t.scales,(function(t){t.isHorizontal()&&c?cF(t,e.x,n.x,a):!t.isHorizontal()&&u&&cF(t,e.y,n.y,a)})),t.update(r),sl(s.onZoom,[{chart:t,trigger:i}])}function pF(t){const e=XR(t);let n=1,r=1;return ll(t.scales,(function(t){const i=function(t,e){const n=t.originalScaleLimits[e];if(!n)return;const{min:r,max:i}=n;return ol(i.options,i.scale)-ol(r.options,r.scale)}(e,t.id);if(i){const e=Math.round(i/(t.max-t.min)*100)/100;n=Math.min(n,e),r=Math.max(r,e)}})),n<1?n:r}function fF(t,e,n,r){const{panDelta:i}=r,o=i[t.id]||0;Nl(o)===Nl(e)&&(e+=o);sl(oF[t.type]||oF.default,[t,e,n])?i[t.id]=0:i[t.id]=e}function mF(t,e,n,r="none"){const{x:i=0,y:o=0}="number"==typeof e?{x:e,y:e}:e,a=XR(t),{options:{pan:s,limits:l}}=a,{onPan:c}=s||{};sF(t,a);const u=0!==i,d=0!==o;ll(n||t.scales,(function(t){t.isHorizontal()&&u?fF(t,i,l,a):!t.isHorizontal()&&d&&fF(t,o,l,a)})),t.update(r),sl(c,[{chart:t}])}function gF(t){const e=XR(t);sF(t,e);const n={};for(const r of Object.keys(t.scales)){const{min:t,max:i}=e.originalScaleLimits[r]||{min:{},max:{}};n[r]={min:t.scale,max:i.scale}}return n}function vF(t){const e=XR(t);return e.panning||e.dragging}const yF=(t,e,n)=>Math.min(n,Math.max(e,t));function bF(t,e){const{handlers:n}=XR(t),r=n[e];r&&r.target&&(r.target.removeEventListener(e,r),delete n[e])}function xF(t,e,n,r){const{handlers:i,options:o}=XR(t),a=i[n];if(a&&a.target===e)return;bF(t,n),i[n]=e=>r(t,e,o),i[n].target=e;const s="wheel"!==n&&void 0;e.addEventListener(n,i[n],{passive:s})}function _F(t,e){const n=XR(t);n.dragStart&&(n.dragging=!0,n.dragEnd=e,t.update("none"))}function wF(t,e){const n=XR(t);n.dragStart&&"Escape"===e.key&&(bF(t,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,t.update("none"))}function SF(t,e){if(t.target!==e.canvas){const n=e.canvas.getBoundingClientRect();return{x:t.clientX-n.left,y:t.clientY-n.top}}return wu(t,e)}function kF(t,e,n){const{onZoomStart:r,onZoomRejected:i}=n;if(r){if(!1===sl(r,[{chart:t,event:e,point:SF(e,t)}]))return sl(i,[{chart:t,event:e}]),!1}}function CF(t,e){if(t.legend){if(Oc(wu(e,t),t.legend))return}const n=XR(t),{pan:r,zoom:i={}}=n.options;if(0!==e.button||BR(jR(r),e)||HR(jR(i.drag),e))return sl(i.onZoomRejected,[{chart:t,event:e}]);!1!==kF(t,e,i)&&(n.dragStart=e,xF(t,t.canvas.ownerDocument,"mousemove",_F),xF(t,window.document,"keydown",wF))}function EF(t,e,n,{min:r,max:i,prop:o}){t[r]=yF(Math.min(n.begin[o],n.end[o]),e[r],e[i]),t[i]=yF(Math.max(n.begin[o],n.end[o]),e[r],e[i])}function MF(t,e,n){const r={begin:SF(e.dragStart,t),end:SF(e.dragEnd,t)};if(n){!function({begin:t,end:e},n){let r=e.x-t.x,i=e.y-t.y;const o=Math.abs(r/i);o>n?r=Math.sign(r)*Math.abs(i*n):o<n&&(i=Math.sign(i)*Math.abs(r/n)),e.x=t.x+r,e.y=t.y+i}(r,t.chartArea.width/t.chartArea.height)}return r}function PF(t,e,n,r){const i=WR(e,"x",t),o=WR(e,"y",t),{top:a,left:s,right:l,bottom:c,width:u,height:d}=t.chartArea,h={top:a,left:s,right:l,bottom:c},p=MF(t,n,r&&i&&o);i&&EF(h,t.chartArea,p,{min:"left",max:"right",prop:"x"}),o&&EF(h,t.chartArea,p,{min:"top",max:"bottom",prop:"y"});const f=h.right-h.left,m=h.bottom-h.top;return{...h,width:f,height:m,zoomX:i&&f?1+(u-f)/u:1,zoomY:o&&m?1+(d-m)/d:1}}function OF(t,e){const n=XR(t);if(!n.dragStart)return;bF(t,"mousemove");const{mode:r,onZoomComplete:i,drag:{threshold:o=0,maintainAspectRatio:a}}=n.options.zoom,s=PF(t,r,{dragStart:n.dragStart,dragEnd:e},a),l=WR(r,"x",t)?s.width:0,c=WR(r,"y",t)?s.height:0,u=Math.sqrt(l*l+c*c);if(n.dragStart=n.dragEnd=null,u<=o)return n.dragging=!1,void t.update("none");hF(t,{x:s.left,y:s.top},{x:s.right,y:s.bottom},"zoom","drag"),n.dragging=!1,n.filterNextClick=!0,sl(i,[{chart:t}])}function TF(t,e){const{handlers:{onZoomComplete:n},options:{zoom:r}}=XR(t);if(!function(t,e,n){if(HR(jR(n.wheel),e))sl(n.onZoomRejected,[{chart:t,event:e}]);else if(!1!==kF(t,e,n)&&(e.cancelable&&e.preventDefault(),void 0!==e.deltaY))return!0}(t,e,r))return;const i=e.target.getBoundingClientRect(),o=r.wheel.speed,a=e.deltaY>=0?2-1/(1-o):1+o;dF(t,{x:a,y:a,focalPoint:{x:e.clientX-i.left,y:e.clientY-i.top}},"zoom","wheel"),sl(n,[{chart:t}])}function NF(t,e,n,r){n&&(XR(t).handlers[e]=function(t,e){let n;return function(){return clearTimeout(n),n=setTimeout(t,e),e}}((()=>sl(n,[{chart:t}])),r))}function AF(t,e){return function(n,r){const{pan:i,zoom:o={}}=e.options;if(!i||!i.enabled)return!1;const a=r&&r.srcEvent;return!a||(!(!e.panning&&"mouse"===r.pointerType&&(HR(jR(i),a)||BR(jR(o.drag),a)))||(sl(i.onPanRejected,[{chart:t,event:r}]),!1))}}function DF(t,e,n){if(e.scale){const{center:r,pointers:i}=n,o=1/e.scale*n.scale,a=n.target.getBoundingClientRect(),s=function(t,e){const n=Math.abs(t.clientX-e.clientX),r=Math.abs(t.clientY-e.clientY),i=n/r;let o,a;return i>.3&&i<1.7?o=a=!0:n>r?o=!0:a=!0,{x:o,y:a}}(i[0],i[1]),l=e.options.zoom.mode;dF(t,{x:s.x&&WR(l,"x",t)?o:1,y:s.y&&WR(l,"y",t)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}},"zoom","pinch"),e.scale=n.scale}}function LF(t,e,n){const r=e.delta;r&&(e.panning=!0,mF(t,{x:n.deltaX-r.x,y:n.deltaY-r.y},e.panScales),e.delta={x:n.deltaX,y:n.deltaY})}const IF=new WeakMap;function zF(t,e){const n=XR(t),r=t.canvas,{pan:i,zoom:o}=e,a=new $R.Manager(r);o&&o.pinch.enabled&&(a.add(new $R.Pinch),a.on("pinchstart",(e=>function(t,e,n){if(e.options.zoom.pinch.enabled){const r=wu(n,t);!1===sl(e.options.zoom.onZoomStart,[{chart:t,event:n,point:r}])?(e.scale=null,sl(e.options.zoom.onZoomRejected,[{chart:t,event:n}])):e.scale=1}}(t,n,e))),a.on("pinch",(e=>DF(t,n,e))),a.on("pinchend",(e=>function(t,e,n){e.scale&&(DF(t,e,n),e.scale=null,sl(e.options.zoom.onZoomComplete,[{chart:t}]))}(t,n,e)))),i&&i.enabled&&(a.add(new $R.Pan({threshold:i.threshold,enable:AF(t,n)})),a.on("panstart",(e=>function(t,e,n){const{enabled:r,onPanStart:i,onPanRejected:o}=e.options.pan;if(!r)return;const a=n.target.getBoundingClientRect(),s={x:n.center.x-a.left,y:n.center.y-a.top};if(!1===sl(i,[{chart:t,event:n,point:s}]))return sl(o,[{chart:t,event:n}]);e.panScales=YR(e.options.pan,s,t),e.delta={x:0,y:0},LF(t,e,n)}(t,n,e))),a.on("panmove",(e=>LF(t,n,e))),a.on("panend",(()=>function(t,e){e.delta=null,e.panning&&(e.panning=!1,e.filterNextClick=!0,sl(e.options.pan.onPanComplete,[{chart:t}]))}(t,n)))),IF.set(t,a)}function RF(t){const e=IF.get(t);e&&(e.remove("pinchstart"),e.remove("pinch"),e.remove("pinchend"),e.remove("panstart"),e.remove("pan"),e.remove("panend"),e.destroy(),IF.delete(t))}function FF(t,e,n){const r=n.zoom.drag,{dragStart:i,dragEnd:o}=XR(t);if(r.drawTime!==e||!o)return;const{left:a,top:s,width:l,height:c}=PF(t,n.zoom.mode,{dragStart:i,dragEnd:o},r.maintainAspectRatio),u=t.ctx;u.save(),u.beginPath(),u.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",u.fillRect(a,s,l,c),r.borderWidth>0&&(u.lineWidth=r.borderWidth,u.strokeStyle=r.borderColor||"rgba(225,225,225)",u.strokeRect(a,s,l,c)),u.restore()}var $F={id:"zoom",version:"2.2.0",defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(t,e,n){XR(t).options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),$R&&zF(t,n),t.pan=(e,n,r)=>mF(t,e,n,r),t.zoom=(e,n)=>dF(t,e,n),t.zoomRect=(e,n,r)=>hF(t,e,n,r),t.zoomScale=(e,n,r)=>function(t,e,n,r="none",i="api"){const o=XR(t);sF(t,o),JR(t.scales[e],n,void 0,!0),t.update(r),sl(o.options.zoom?.onZoom,[{chart:t,trigger:i}])}(t,e,n,r),t.resetZoom=e=>function(t,e="default"){const n=XR(t),r=sF(t,n);ll(t.scales,(function(t){const e=t.options;r[t.id]?(e.min=r[t.id].min.options,e.max=r[t.id].max.options):(delete e.min,delete e.max),delete n.updatedScaleLimits[t.id]})),t.update(e),sl(n.options.zoom.onZoomComplete,[{chart:t}])}(t,e),t.getZoomLevel=()=>pF(t),t.getInitialScaleBounds=()=>gF(t),t.getZoomedScaleBounds=()=>function(t){const e=XR(t),n={};for(const r of Object.keys(t.scales))n[r]=e.updatedScaleLimits[r];return n}(t),t.isZoomedOrPanned=()=>function(t){const e=gF(t);for(const n of Object.keys(t.scales)){const{min:r,max:i}=e[n];if(void 0!==r&&t.scales[n].min!==r)return!0;if(void 0!==i&&t.scales[n].max!==i)return!0}return!1}(t),t.isZoomingOrPanning=()=>vF(t)},beforeEvent(t,{event:e}){if(vF(t))return!1;if("click"===e.type||"mouseup"===e.type){const e=XR(t);if(e.filterNextClick)return e.filterNextClick=!1,!1}},beforeUpdate:function(t,e,n){const r=XR(t),i=r.options;r.options=n,function(t,e){const{pan:n,zoom:r}=t,{pan:i,zoom:o}=e;return r?.zoom?.pinch?.enabled!==o?.zoom?.pinch?.enabled||n?.enabled!==i?.enabled||n?.threshold!==i?.threshold}(i,n)&&(RF(t),zF(t,n)),function(t,e){const n=t.canvas,{wheel:r,drag:i,onZoomComplete:o}=e.zoom;r.enabled?(xF(t,n,"wheel",TF),NF(t,"onZoomComplete",o,250)):bF(t,"wheel"),i.enabled?(xF(t,n,"mousedown",CF),xF(t,n.ownerDocument,"mouseup",OF)):(bF(t,"mousedown"),bF(t,"mousemove"),bF(t,"mouseup"),bF(t,"keydown"))}(t,n)},beforeDatasetsDraw(t,e,n){FF(t,"beforeDatasetsDraw",n)},afterDatasetsDraw(t,e,n){FF(t,"afterDatasetsDraw",n)},beforeDraw(t,e,n){FF(t,"beforeDraw",n)},afterDraw(t,e,n){FF(t,"afterDraw",n)},stop:function(t){!function(t){bF(t,"mousedown"),bF(t,"mousemove"),bF(t,"mouseup"),bF(t,"wheel"),bF(t,"click"),bF(t,"keydown")}(t),$R&&RF(t),function(t){qR.delete(t)}(t)},panFunctions:oF,zoomFunctions:rF,zoomRectFunctions:iF};
|
|
80
|
-
/*!
|
|
81
|
-
* chartjs-plugin-annotation v3.1.0
|
|
82
|
-
* https://www.chartjs.org/chartjs-plugin-annotation/index
|
|
83
|
-
* (c) 2024 chartjs-plugin-annotation Contributors
|
|
84
|
-
* Released under the MIT License
|
|
85
|
-
*/const jF={modes:{point:(t,e)=>HF(t,e,{intersect:!0}),nearest:(t,e,n)=>function(t,e,n){let r=Number.POSITIVE_INFINITY;return HF(t,e,n).reduce(((t,i)=>{const o=i.getCenterPoint(),a=function(t,e,n){if("x"===n)return{x:t.x,y:e.y};if("y"===n)return{x:e.x,y:t.y};return e}(e,o,n.axis),s=jl(e,a);return s<r?(t=[i],r=s):s===r&&t.push(i),t}),[]).sort(((t,e)=>t._index-e._index)).slice(0,1)}(t,e,n),x:(t,e,n)=>HF(t,e,{intersect:n.intersect,axis:"x"}),y:(t,e,n)=>HF(t,e,{intersect:n.intersect,axis:"y"})}};function BF(t,e,n){return(jF.modes[n.mode]||jF.modes.nearest)(t,e,n)}function HF(t,e,n){return t.filter((t=>n.intersect?t.inRange(e.x,e.y):function(t,e,n){return"x"!==n&&"y"!==n?t.inRange(e.x,e.y,"x",!0)||t.inRange(e.x,e.y,"y",!0):t.inRange(e.x,e.y,n,!0)}(t,e,n.axis)))}function WF(t,e,n){const r=Math.cos(n),i=Math.sin(n),o=e.x,a=e.y;return{x:o+r*(t.x-o)-i*(t.y-a),y:a+i*(t.x-o)+r*(t.y-a)}}const VF=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,YF=.001,qF=(t,e,n)=>Math.min(n,Math.max(e,t)),XF=(t,e)=>t.value>=t.start-e&&t.value<=t.end+e;function UF(t,e,n){for(const r of Object.keys(t))t[r]=qF(t[r],e,n);return t}function ZF(t,{x:e,y:n,x2:r,y2:i},o,{borderWidth:a,hitTolerance:s}){const l=(a+s)/2,c=t.x>=e-l-YF&&t.x<=r+l+YF,u=t.y>=n-l-YF&&t.y<=i+l+YF;return"x"===o?c:("y"===o||c)&&u}function GF(t,{rect:e,center:n},r,{rotation:i,borderWidth:o,hitTolerance:a}){return ZF(WF(t,n,zl(-i)),e,r,{borderWidth:o,hitTolerance:a})}function KF(t,e){const{centerX:n,centerY:r}=t.getProps(["centerX","centerY"],e);return{x:n,y:r}}const JF=t=>"string"==typeof t&&t.endsWith("%"),QF=t=>parseFloat(t)/100,t$=t=>qF(QF(t),0,1),e$=(t,e)=>({x:t,y:e,x2:t,y2:e,width:0,height:0}),n$={box:t=>e$(t.centerX,t.centerY),doughnutLabel:t=>e$(t.centerX,t.centerY),ellipse:t=>({centerX:t.centerX,centerY:t.centerX,radius:0,width:0,height:0}),label:t=>e$(t.centerX,t.centerY),line:t=>e$(t.x,t.y),point:t=>({centerX:t.centerX,centerY:t.centerY,radius:0,width:0,height:0}),polygon:t=>e$(t.centerX,t.centerY)};function r$(t,e){return"start"===e?0:"end"===e?t:JF(e)?t$(e)*t:t/2}function i$(t,e,n=!0){return"number"==typeof e?e:JF(e)?(n?t$(e):QF(e))*t:t}function o$(t,e,{borderWidth:n,position:r,xAdjust:i,yAdjust:o},a){const s=nl(a),l=e.width+(s?a.width:0)+n,c=e.height+(s?a.height:0)+n,u=a$(r),d=u$(t.x,l,i,u.x),h=u$(t.y,c,o,u.y);return{x:d,y:h,x2:d+l,y2:h+c,width:l,height:c,centerX:d+l/2,centerY:h+c/2}}function a$(t,e="center"){return nl(t)?{x:ol(t.x,e),y:ol(t.y,e)}:{x:t=ol(t,e),y:t}}const s$=(t,e)=>t&&t.autoFit&&e<1;function l$(t,e){const n=t.font,r=el(n)?n:[n];return s$(t,e)?r.map((function(t){const n=qc(t);return n.size=Math.floor(t.size*e),n.lineHeight=t.lineHeight,qc(n)})):r.map((t=>qc(t)))}function c$(t){return t&&(bl(t.xValue)||bl(t.yValue))}function u$(t,e,n=0,r){return t-r$(e,r)+n}function d$(t,e,n){const r=n.init;if(r)return!0===r?p$(e,n):function(t,e,n){const r=sl(n.init,[{chart:t,properties:e,options:n}]);if(!0===r)return p$(e,n);if(nl(r))return r}(t,e,n)}function h$(t,e,n){let r=!1;return e.forEach((e=>{xl(t[e])?(r=!0,n[e]=t[e]):bl(n[e])&&delete n[e]})),r}function p$(t,e){const n=e.type||"line";return n$[n](t)}const f$=new Map;function m$(t){if(t&&"object"==typeof t){const e=t.toString();return"[object HTMLImageElement]"===e||"[object HTMLCanvasElement]"===e}}function g$(t,{x:e,y:n},r){r&&(t.translate(e,n),t.rotate(zl(r)),t.translate(-e,-n))}function v$(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle||"butt",t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle||"miter",t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function y$(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function b$(t,e){const n=e.content;if(m$(n)){return{width:i$(n.width,e.width),height:i$(n.height,e.height)}}const r=l$(e),i=e.textStrokeWidth,o=el(n)?n:[n],a=o.join()+(t=>t.reduce((function(t,e){return t+e.string}),""))(r)+i+(t._measureText?"-spriting":"");return f$.has(a)||f$.set(a,function(t,e,n,r){t.save();const i=e.length;let o=0,a=r;for(let s=0;s<i;s++){const i=n[Math.min(s,n.length-1)];t.font=i.string;const l=e[s];o=Math.max(o,t.measureText(l).width+r),a+=i.lineHeight}return t.restore(),{width:o,height:a}}(t,o,r,i)),f$.get(a)}function x$(t,e,n){const{x:r,y:i,width:o,height:a}=e;t.save(),y$(t,n);const s=v$(t,n);t.fillStyle=n.backgroundColor,t.beginPath(),Rc(t,{x:r,y:i,w:o,h:a,radius:UF(Vc(n.borderRadius),0,Math.min(o,a)/2)}),t.closePath(),t.fill(),s&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}function _$(t,e,n,r){const i=n.content;if(m$(i))return t.save(),t.globalAlpha=function(t,e){const n=Ll(t)?t:e;return Ll(n)?qF(n,0,1):1}(n.opacity,i.style.opacity),t.drawImage(i,e.x,e.y,e.width,e.height),void t.restore();const o=el(i)?i:[i],a=l$(n,r),s=n.color,l=el(s)?s:[s],c=function(t,e){const{x:n,width:r}=t,i=e.textAlign;return"center"===i?n+r/2:"end"===i||"right"===i?n+r:n}(e,n),u=e.y+n.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=n.textAlign,function(t,e){if(e.textStrokeWidth>0)return t.lineJoin="round",t.miterLimit=2,t.lineWidth=e.textStrokeWidth,t.strokeStyle=e.textStrokeColor,!0}(t,n)&&function(t,{x:e,y:n},r,i){t.beginPath();let o=0;r.forEach((function(r,a){const s=i[Math.min(a,i.length-1)],l=s.lineHeight;t.font=s.string,t.strokeText(r,e,n+l/2+o),o+=l})),t.stroke()}(t,{x:c,y:u},o,a),function(t,{x:e,y:n},r,{fonts:i,colors:o}){let a=0;r.forEach((function(r,s){const l=o[Math.min(s,o.length-1)],c=i[Math.min(s,i.length-1)],u=c.lineHeight;t.beginPath(),t.font=c.string,t.fillStyle=l,t.fillText(r,e,n+u/2+a),a+=u,t.fill()}))}(t,{x:c,y:u},o,{fonts:a,colors:l}),t.restore()}function w$(t,e,n,r){const{radius:i,options:o}=e,a=o.pointStyle,s=o.rotation;let l=(s||0)*El;if(m$(a))return t.save(),t.translate(n,r),t.rotate(l),t.drawImage(a,-a.width/2,-a.height/2,a.width,a.height),void t.restore();(t=>isNaN(t)||t<=0)(i)||function(t,{x:e,y:n,radius:r,rotation:i,style:o,rad:a}){let s,l,c,u;switch(t.beginPath(),o){default:t.arc(e,n,r,0,Sl),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(a)*r,n-Math.cos(a)*r),a+=Ol,t.lineTo(e+Math.sin(a)*r,n-Math.cos(a)*r),a+=Ol,t.lineTo(e+Math.sin(a)*r,n-Math.cos(a)*r),t.closePath();break;case"rectRounded":u=.516*r,c=r-u,s=Math.cos(a+Pl)*c,l=Math.sin(a+Pl)*c,t.arc(e-s,n-l,u,a-wl,a-Ml),t.arc(e+l,n-s,u,a-Ml,a),t.arc(e+s,n+l,u,a,a+Ml),t.arc(e-l,n+s,u,a+Ml,a+wl),t.closePath();break;case"rect":if(!i){c=Math.SQRT1_2*r,t.rect(e-c,n-c,2*c,2*c);break}a+=Pl;case"rectRot":s=Math.cos(a)*r,l=Math.sin(a)*r,t.moveTo(e-s,n-l),t.lineTo(e+l,n-s),t.lineTo(e+s,n+l),t.lineTo(e-l,n+s),t.closePath();break;case"crossRot":a+=Pl;case"cross":s=Math.cos(a)*r,l=Math.sin(a)*r,t.moveTo(e-s,n-l),t.lineTo(e+s,n+l),t.moveTo(e+l,n-s),t.lineTo(e-l,n+s);break;case"star":s=Math.cos(a)*r,l=Math.sin(a)*r,t.moveTo(e-s,n-l),t.lineTo(e+s,n+l),t.moveTo(e+l,n-s),t.lineTo(e-l,n+s),a+=Pl,s=Math.cos(a)*r,l=Math.sin(a)*r,t.moveTo(e-s,n-l),t.lineTo(e+s,n+l),t.moveTo(e+l,n-s),t.lineTo(e-l,n+s);break;case"line":s=Math.cos(a)*r,l=Math.sin(a)*r,t.moveTo(e-s,n-l),t.lineTo(e+s,n+l);break;case"dash":t.moveTo(e,n),t.lineTo(e+Math.cos(a)*r,n+Math.sin(a)*r)}t.fill()}(t,{x:n,y:r,radius:i,rotation:s,style:a,rad:l})}const S$=["left","bottom","top","right"];function k$(t,e){const{pointX:n,pointY:r,options:i}=e,o=i.callout,a=o&&o.display&&function(t,e){const n=e.position;if(S$.includes(n))return n;return function(t,e){const{x:n,y:r,x2:i,y2:o,width:a,height:s,pointX:l,pointY:c,centerX:u,centerY:d,rotation:h}=t,p={x:u,y:d},f=e.start,m=i$(a,f),g=i$(s,f),v=[n,n+m,n+m,i],y=[r+g,o,r,o],b=[];for(let t=0;t<4;t++){const e=WF({x:v[t],y:y[t]},p,zl(h));b.push({position:S$[t],distance:jl(e,{x:l,y:c})})}return b.sort(((t,e)=>t.distance-e.distance))[0].position}(t,e)}(e,o);if(!a||function(t,e,n){const{pointX:r,pointY:i}=t,o=e.margin;let a=r,s=i;"left"===n?a+=o:"right"===n?a-=o:"top"===n?s+=o:"bottom"===n&&(s-=o);return t.inRange(a,s)}(e,o,a))return;t.save(),t.beginPath();if(!v$(t,o))return t.restore();const{separatorStart:s,separatorEnd:l}=function(t,e){const{x:n,y:r,x2:i,y2:o}=t,a=function(t,e){const{width:n,height:r,options:i}=t,o=i.callout.margin+i.borderWidth/2;if("right"===e)return n+o;if("bottom"===e)return r+o;return-o}(t,e);let s,l;"left"===e||"right"===e?(s={x:n+a,y:r},l={x:s.x,y:o}):(s={x:n,y:r+a},l={x:i,y:s.y});return{separatorStart:s,separatorEnd:l}}(e,a),{sideStart:c,sideEnd:u}=function(t,e,n){const{y:r,width:i,height:o,options:a}=t,s=a.callout.start,l=function(t,e){const n=e.side;if("left"===t||"top"===t)return-n;return n}(e,a.callout);let c,u;"left"===e||"right"===e?(c={x:n.x,y:r+i$(o,s)},u={x:c.x+l,y:c.y}):(c={x:n.x+i$(i,s),y:n.y},u={x:c.x,y:c.y+l});return{sideStart:c,sideEnd:u}}(e,a,s);(o.margin>0||0===i.borderWidth)&&(t.moveTo(s.x,s.y),t.lineTo(l.x,l.y)),t.moveTo(c.x,c.y),t.lineTo(u.x,u.y);const d=WF({x:n,y:r},e.getCenterPoint(),zl(-e.rotation));t.lineTo(d.x,d.y),t.stroke(),t.restore()}const C$={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function E$(t,e,n){return rl(e="number"==typeof e?e:t.parse(e))?t.getPixelForValue(e):n}function M$(t,e,n){const r=e[n];if(r||"scaleID"===n)return r;const i=n.charAt(0),o=Object.values(t).filter((t=>t.axis&&t.axis===i));return o.length?o[0].id:i}function P$(t,e){if(t){const n=t.options.reverse;return{start:E$(t,e.min,n?e.end:e.start),end:E$(t,e.max,n?e.start:e.end)}}}function O$(t,e){const{chartArea:n,scales:r}=t,i=r[M$(r,e,"xScaleID")],o=r[M$(r,e,"yScaleID")];let a=n.width/2,s=n.height/2;return i&&(a=E$(i,e.xValue,i.left+i.width/2)),o&&(s=E$(o,e.yValue,o.top+o.height/2)),{x:a,y:s}}function T$(t,e){const n=t.scales,r=n[M$(n,e,"xScaleID")],i=n[M$(n,e,"yScaleID")];if(!r&&!i)return{};let{left:o,right:a}=r||t.chartArea,{top:s,bottom:l}=i||t.chartArea;const c=L$(r,{min:e.xMin,max:e.xMax,start:o,end:a});o=c.start,a=c.end;const u=L$(i,{min:e.yMin,max:e.yMax,start:l,end:s});return s=u.start,l=u.end,{x:o,y:s,x2:a,y2:l,width:a-o,height:l-s,centerX:o+(a-o)/2,centerY:s+(l-s)/2}}function N$(t,e){if(!c$(e)){const n=T$(t,e);let r=e.radius;r&&!isNaN(r)||(r=Math.min(n.width,n.height)/2,e.radius=r);const i=2*r,o=n.centerX+e.xAdjust,a=n.centerY+e.yAdjust;return{x:o-r,y:a-r,x2:o+r,y2:a+r,centerX:o,centerY:a,width:i,height:i,radius:r}}return function(t,e){const n=O$(t,e),r=2*e.radius;return{x:n.x-e.radius+e.xAdjust,y:n.y-e.radius+e.yAdjust,x2:n.x+e.radius+e.xAdjust,y2:n.y+e.radius+e.yAdjust,centerX:n.x+e.xAdjust,centerY:n.y+e.yAdjust,radius:e.radius,width:r,height:r}}(t,e)}function A$(t,e){const{scales:n,chartArea:r}=t,i=n[e.scaleID],o={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return i?function(t,e,n){const r=E$(t,n.value,NaN),i=E$(t,n.endValue,r);t.isHorizontal()?(e.x=r,e.x2=i):(e.y=r,e.y2=i)}(i,o,e):function(t,e,n){for(const r of Object.keys(C$)){const i=t[M$(t,n,r)];if(i){const{min:t,max:o,start:a,end:s,startProp:l,endProp:c}=C$[r],u=P$(i,{min:n[t],max:n[o],start:i[a],end:i[s]});e[l]=u.start,e[c]=u.end}}}(n,o,e),o}function D$(t,e){const n=T$(t,e);return n.initProperties=d$(t,n,e),n.elements=[{type:"label",optionScope:"label",properties:z$(t,n,e),initProperties:n.initProperties}],n}function L$(t,e){const n=P$(t,e)||e;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function I$(t,e){const{start:n,end:r,borderWidth:i}=t,{position:o,padding:{start:a,end:s},adjust:l}=e;return n+i/2+l+r$(r-i-n-a-s-e.size,o)}function z$(t,e,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const i=a$(r.position),o=Yc(r.padding),a=b$(t.ctx,r),s=function({properties:t,options:e},n,r,i){const{x:o,x2:a,width:s}=t;return I$({start:o,end:a,size:s,borderWidth:e.borderWidth},{position:r.x,padding:{start:i.left,end:i.right},adjust:e.label.xAdjust,size:n.width})}({properties:e,options:n},a,i,o),l=function({properties:t,options:e},n,r,i){const{y:o,y2:a,height:s}=t;return I$({start:o,end:a,size:s,borderWidth:e.borderWidth},{position:r.y,padding:{start:i.top,end:i.bottom},adjust:e.label.yAdjust,size:n.height})}({properties:e,options:n},a,i,o),c=a.width+o.width,u=a.height+o.height;return{x:s,y:l,x2:s+c,y2:l+u,width:c,height:u,centerX:s+c/2,centerY:l+u/2,rotation:r.rotation}}const R$=["enter","leave"],F$=R$.concat("click");function $$(t,e,n){if(t.listened)switch(e.type){case"mousemove":case"mouseout":return function(t,e,n){if(!t.moveListened)return;let r;r="mousemove"===e.type?BF(t.visibleElements,e,n.interaction):[];const i=t.hovered;t.hovered=r;const o={state:t,event:e};let a=j$(o,"leave",i,r);return j$(o,"enter",r,i)||a}(t,e,n);case"click":return function(t,e,n){const r=t.listeners,i=BF(t.visibleElements,e,n.interaction);let o;for(const t of i)o=B$(t.options.click||r.click,t,e)||o;return o}(t,e,n)}}function j$({state:t,event:e},n,r,i){let o;for(const a of r)i.indexOf(a)<0&&(o=B$(a.options[n]||t.listeners[n],a,e)||o);return o}function B$(t,e,n){return!0===sl(t,[e.$context,n])}const H$=["afterDraw","beforeDraw"];function W$(t,e,n){if(t.hooked){return sl(e.options[n]||t.hooks[n],[e.$context])}}function V$(t,e,n){const r=function(t,e,n){const r=e.axis,i=e.id,o=r+"ScaleID",a={min:ol(e.min,Number.NEGATIVE_INFINITY),max:ol(e.max,Number.POSITIVE_INFINITY)};for(const s of n)s.scaleID===i?U$(s,e,["value","endValue"],a):M$(t,s,o)===i&&U$(s,e,[r+"Min",r+"Max",r+"Value"],a);return a}(t.scales,e,n);let i=Y$(e,r,"min","suggestedMin");i=Y$(e,r,"max","suggestedMax")||i,i&&xl(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}function Y$(t,e,n,r){if(rl(e[n])&&!function(t,e,n){return bl(t[e])||bl(t[n])}(t.options,n,r)){const r=t[n]!==e[n];return t[n]=e[n],r}}function q$(t,e){for(const n of["scaleID","xScaleID","yScaleID"]){const r=M$(e,t,n);r&&!e[r]&&X$(t,n)&&console.warn(`No scale found with id '${r}' for annotation '${t.id}'`)}}function X$(t,e){if("scaleID"===e)return!0;const n=e.charAt(0);for(const e of["Min","Max","Value"])if(bl(t[n+e]))return!0;return!1}function U$(t,e,n,r){for(const i of n){const n=t[i];if(bl(n)){const t=e.parse(n);r.min=Math.min(r.min,t),r.max=Math.max(r.max,t)}}}class Z$ extends rh{inRange(t,e,n,r){const{x:i,y:o}=WF({x:t,y:e},this.getCenterPoint(r),zl(-this.options.rotation));return ZF({x:i,y:o},this.getProps(["x","y","x2","y2"],r),n,this.options)}getCenterPoint(t){return KF(this,t)}draw(t){t.save(),g$(t,this.getCenterPoint(),this.options.rotation),x$(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return D$(t,e)}}Z$.id="boxAnnotation",Z$.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,hitTolerance:0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},Z$.defaultRoutes={borderColor:"color",backgroundColor:"color"},Z$.descriptors={label:{_fallback:!0}};class G$ extends rh{inRange(t,e,n,r){return GF({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],r),center:this.getCenterPoint(r)},n,{rotation:this.rotation,borderWidth:0,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return KF(this,t)}draw(t){const e=this.options;e.display&&e.content&&(!function(t,e){const{_centerX:n,_centerY:r,_radius:i,_startAngle:o,_endAngle:a,_counterclockwise:s,options:l}=e;t.save();const c=v$(t,l);t.fillStyle=l.backgroundColor,t.beginPath(),t.arc(n,r,i,o,a,s),t.closePath(),t.fill(),c&&t.stroke();t.restore()}(t,this),t.save(),g$(t,this.getCenterPoint(),this.rotation),_$(t,this,e,this._fitRatio),t.restore())}resolveElementProperties(t,e){const n=function(t,e){return t.getSortedVisibleDatasetMetas().reduce((function(n,r){const i=r.controller;return i instanceof fd&&function(t,e,n){if(!e.autoHide)return!0;for(let e=0;e<n.length;e++)if(!n[e].hidden&&t.getDataVisibility(e))return!0}(t,e,r.data)&&(!n||i.innerRadius<n.controller.innerRadius)&&i.options.circumference>=90?r:n}),void 0)}(t,e);if(!n)return{};const{controllerMeta:r,point:i,radius:o}=function({chartArea:t},e,n){const{left:r,top:i,right:o,bottom:a}=t,{innerRadius:s,offsetX:l,offsetY:c}=n.controller,u=(r+o)/2+l,d=(i+a)/2+c,h={left:Math.max(u-s,r),right:Math.min(u+s,o),top:Math.max(d-s,i),bottom:Math.min(d+s,a)},p={x:(h.left+h.right)/2,y:(h.top+h.bottom)/2},f=e.spacing+e.borderWidth/2,m=s-f,g=p.y>d,v=function(t,e,n,r){const i=Math.pow(n-t,2),o=Math.pow(r,2),a=-2*e,s=Math.pow(e,2)+i-o,l=Math.pow(a,2)-4*s;if(l<=0)return{_startAngle:0,_endAngle:Sl};const c=(-a-Math.sqrt(l))/2,u=(-a+Math.sqrt(l))/2;return{_startAngle:$l({x:e,y:n},{x:c,y:t}).angle,_endAngle:$l({x:e,y:n},{x:u,y:t}).angle}}(g?i+f:a-f,u,d,m),y={_centerX:u,_centerY:d,_radius:m,_counterclockwise:g,...v};return{controllerMeta:y,point:p,radius:Math.min(s,Math.min(h.right-h.left,h.bottom-h.top)/2)}}(t,e,n);let a=b$(t.ctx,e);const s=function({width:t,height:e},n){const r=Math.sqrt(Math.pow(t,2)+Math.pow(e,2));return 2*n/r}(a,o);s$(e,s)&&(a={width:a.width*s,height:a.height*s});const{position:l,xAdjust:c,yAdjust:u}=e,d=o$(i,a,{borderWidth:0,position:l,xAdjust:c,yAdjust:u});return{initProperties:d$(t,d,e),...d,...r,rotation:e.rotation,_fitRatio:s}}}G$.id="doughnutLabelAnnotation",G$.defaults={autoFit:!0,autoHide:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderColor:"transparent",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:0,color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,spacing:1,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0},G$.defaultRoutes={};class K$ extends rh{inRange(t,e,n,r){return GF({x:t,y:e},{rect:this.getProps(["x","y","x2","y2"],r),center:this.getCenterPoint(r)},n,{rotation:this.rotation,borderWidth:this.options.borderWidth,hitTolerance:this.options.hitTolerance})}getCenterPoint(t){return KF(this,t)}draw(t){const e=this.options,n=!bl(this._visible)||this._visible;e.display&&e.content&&n&&(t.save(),g$(t,this.getCenterPoint(),this.rotation),k$(t,this),x$(t,this,e),_$(t,function({x:t,y:e,width:n,height:r,options:i}){const o=i.borderWidth/2,a=Yc(i.padding);return{x:t+a.left+o,y:e+a.top+o,width:n-a.left-a.right-i.borderWidth,height:r-a.top-a.bottom-i.borderWidth}}(this),e),t.restore())}resolveElementProperties(t,e){let n;if(c$(e))n=O$(t,e);else{const{centerX:r,centerY:i}=T$(t,e);n={x:r,y:i}}const r=Yc(e.padding),i=o$(n,b$(t.ctx,e),e,r);return{initProperties:d$(t,i,e),pointX:n.x,pointY:n.y,...i,rotation:e.rotation}}}K$.id="labelAnnotation",K$.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,hitTolerance:0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},K$.defaultRoutes={borderColor:"color"};const J$=(t,e,n)=>({x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}),Q$=(t,e,n)=>J$(e,n,Math.abs((t-e.y)/(n.y-e.y))).x,tj=(t,e,n)=>J$(e,n,Math.abs((t-e.x)/(n.x-e.x))).y,ej=t=>t*t,nj=(t,e,n,r)=>(1-r)*(1-r)*t+2*(1-r)*r*e+r*r*n,rj=(t,e,n,r)=>({x:nj(t.x,e.x,n.x,r),y:nj(t.y,e.y,n.y,r)}),ij=(t,e,n,r)=>2*(1-r)*(e-t)+2*r*(n-e),oj=(t,e,n,r)=>-Math.atan2(ij(t.x,e.x,n.x,r),ij(t.y,e.y,n.y,r))+.5*wl;class aj extends rh{inRange(t,e,n,r){const i=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==n&&"y"!==n){const n={mouseX:t,mouseY:e},{path:o,ctx:a}=this;if(o){v$(a,this.options),a.lineWidth+=this.options.hitTolerance;const{chart:i}=this.$context,s=t*i.currentDevicePixelRatio,l=e*i.currentDevicePixelRatio,c=a.isPointInStroke(o,s,l)||cj(this,n,r);return a.restore(),c}return function(t,{mouseX:e,mouseY:n},r=.001,i){const{x:o,y:a,x2:s,y2:l}=t.getProps(["x","y","x2","y2"],i),c=s-o,u=l-a,d=ej(c)+ej(u),h=0===d?-1:((e-o)*c+(n-a)*u)/d;let p,f;h<0?(p=o,f=a):h>1?(p=s,f=l):(p=o+h*c,f=a+h*u);return ej(e-p)+ej(n-f)<=r}(this,n,ej(i),r)||cj(this,n,r)}return function(t,{mouseX:e,mouseY:n},r,{hitSize:i,useFinalPosition:o}){const a=((t,e,{x:n,y:r,x2:i,y2:o},a)=>"y"===a?{start:Math.min(r,o),end:Math.max(r,o),value:e}:{start:Math.min(n,i),end:Math.max(n,i),value:t})(e,n,t.getProps(["x","y","x2","y2"],o),r);return XF(a,i)||cj(t,{mouseX:e,mouseY:n},o,r)}(this,{mouseX:t,mouseY:e},n,{hitSize:i,useFinalPosition:r})}getCenterPoint(t){return KF(this,t)}draw(t){const{x:e,y:n,x2:r,y2:i,cp:o,options:a}=this;if(t.save(),!v$(t,a))return t.restore();y$(t,a);const s=Math.sqrt(Math.pow(r-e,2)+Math.pow(i-n,2));if(a.curve&&o)return function(t,e,n,r){const{x:i,y:o,x2:a,y2:s,options:l}=e,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:h}=hj(e),p={x:i,y:o},f={x:a,y:s},m=oj(p,n,f,0),g=oj(p,n,f,1)-wl,v=rj(p,n,f,d/r),y=rj(p,n,f,1-h/r),b=new Path2D;t.beginPath(),b.moveTo(v.x,v.y),b.quadraticCurveTo(n.x,n.y,y.x,y.y),t.shadowColor=l.borderShadowColor,t.stroke(b),e.path=b,e.ctx=t,mj(t,v,{angle:m,adjust:d},c),mj(t,y,{angle:g,adjust:h},u)}(t,this,o,s),t.restore();const{startOpts:l,endOpts:c,startAdjust:u,endAdjust:d}=hj(this),h=Math.atan2(i-n,r-e);t.translate(e,n),t.rotate(h),t.beginPath(),t.moveTo(0+u,0),t.lineTo(s-d,0),t.shadowColor=a.borderShadowColor,t.stroke(),fj(t,0,u,l),fj(t,s,-d,c),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){const n=A$(t,e),{x:r,y:i,x2:o,y2:a}=n,s=function({x:t,y:e,x2:n,y2:r},{top:i,right:o,bottom:a,left:s}){return!(t<s&&n<s||t>o&&n>o||e<i&&r<i||e>a&&r>a)}(n,t.chartArea),l=s?function(t,e,n){const{x:r,y:i}=lj(t,e,n),{x:o,y:a}=lj(e,t,n);return{x:r,y:i,x2:o,y2:a,width:Math.abs(o-r),height:Math.abs(a-i)}}({x:r,y:i},{x:o,y:a},t.chartArea):{x:r,y:i,x2:o,y2:a,width:Math.abs(o-r),height:Math.abs(a-i)};if(l.centerX=(o+r)/2,l.centerY=(a+i)/2,l.initProperties=d$(t,l,e),e.curve){const t={x:l.x,y:l.y},n={x:l.x2,y:l.y2};l.cp=function(t,e,n){const{x:r,y:i,x2:o,y2:a,centerX:s,centerY:l}=t,c=Math.atan2(a-i,o-r),u=a$(e.controlPoint,0);return WF({x:s+i$(n,u.x,!1),y:l+i$(n,u.y,!1)},{x:s,y:l},c)}(l,e,jl(t,n))}const c=function(t,e,n){const r=n.borderWidth,i=Yc(n.padding),o=b$(t.ctx,n),a=o.width+i.width+r,s=o.height+i.height+r;return function(t,e,n,r){const{width:i,height:o,padding:a}=n,{xAdjust:s,yAdjust:l}=e,c={x:t.x,y:t.y},u={x:t.x2,y:t.y2},d="auto"===e.rotation?function(t){const{x:e,y:n,x2:r,y2:i}=t,o=Math.atan2(i-n,r-e);return o>wl/2?o-wl:o<wl/-2?o+wl:o}(t):zl(e.rotation),h=function(t,e,n){const r=Math.cos(n),i=Math.sin(n);return{w:Math.abs(t*r)+Math.abs(e*i),h:Math.abs(t*i)+Math.abs(e*r)}}(i,o,d),p=function(t,e,n,r){let i;const o=function(t,e){const{x:n,x2:r,y:i,y2:o}=t,a=Math.min(i,o)-e.top,s=Math.min(n,r)-e.left,l=e.bottom-Math.max(i,o),c=e.right-Math.max(n,r);return{x:Math.min(s,c),y:Math.min(a,l),dx:s<=c?1:-1,dy:a<=l?1:-1}}(t,r);i="start"===e.position?uj({w:t.x2-t.x,h:t.y2-t.y},n,e,o):"end"===e.position?1-uj({w:t.x-t.x2,h:t.y-t.y2},n,e,o):r$(1,e.position);return i}(t,e,{labelSize:h,padding:a},r),f=t.cp?rj(c,t.cp,u,p):J$(c,u,p),m={size:h.w,min:r.left,max:r.right,padding:a.left},g={size:h.h,min:r.top,max:r.bottom,padding:a.top},v=dj(f.x,m)+s,y=dj(f.y,g)+l;return{x:v-i/2,y:y-o/2,x2:v+i/2,y2:y+o/2,centerX:v,centerY:y,pointX:f.x,pointY:f.y,width:i,height:o,rotation:Rl(d)}}(e,n,{width:a,height:s,padding:i},t.chartArea)}(t,l,e.label);return c._visible=s,l.elements=[{type:"label",optionScope:"label",properties:c,initProperties:l.initProperties}],l}}aj.id="lineAnnotation";const sj={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};function lj({x:t,y:e},n,{top:r,right:i,bottom:o,left:a}){return t<a&&(e=tj(a,{x:t,y:e},n),t=a),t>i&&(e=tj(i,{x:t,y:e},n),t=i),e<r&&(t=Q$(r,{x:t,y:e},n),e=r),e>o&&(t=Q$(o,{x:t,y:e},n),e=o),{x:t,y:e}}function cj(t,{mouseX:e,mouseY:n},r,i){const o=t.label;return o.options.display&&o.inRange(e,n,i,r)}function uj(t,e,n,r){const{labelSize:i,padding:o}=e,a=t.w*r.dx,s=t.h*r.dy,l=a>0&&(i.w/2+o.left-r.x)/a,c=s>0&&(i.h/2+o.top-r.y)/s;return qF(Math.max(l,c),0,.25)}function dj(t,e){const{size:n,min:r,max:i,padding:o}=e,a=n/2;return n>i-r?(i+r)/2:(r>=t-o-a&&(t=r+o+a),i<=t+o+a&&(t=i-o-a),t)}function hj(t){const e=t.options,n=e.arrowHeads&&e.arrowHeads.start,r=e.arrowHeads&&e.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:pj(t,n),endAdjust:pj(t,r)}}function pj(t,e){if(!e||!e.display)return 0;const{length:n,width:r}=e,i=t.options.borderWidth/2,o={x:n,y:r+i},a={x:0,y:i};return Math.abs(Q$(0,o,a))}function fj(t,e,n,r){if(!r||!r.display)return;const{length:i,width:o,fill:a,backgroundColor:s,borderColor:l}=r,c=Math.abs(e-i)+n;t.beginPath(),y$(t,r),v$(t,r),t.moveTo(c,-o),t.lineTo(e+n,0),t.lineTo(c,o),!0===a?(t.fillStyle=s||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=r.borderShadowColor,t.stroke()}function mj(t,{x:e,y:n},{angle:r,adjust:i},o){o&&o.display&&(t.save(),t.translate(e,n),t.rotate(r),fj(t,0,-i,o),t.restore())}aj.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},sj),fill:!1,length:12,start:Object.assign({},sj),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,hitTolerance:0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},K$.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,hitTolerance:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},aj.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},aj.defaultRoutes={borderColor:"color"};class gj extends rh{inRange(t,e,n,r){const i=this.options.rotation,o=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==n&&"y"!==n)return function(t,e,n,r){const{width:i,height:o,centerX:a,centerY:s}=e,l=i/2,c=o/2;if(l<=0||c<=0)return!1;const u=zl(n||0),d=Math.cos(u),h=Math.sin(u),p=Math.pow(d*(t.x-a)+h*(t.y-s),2),f=Math.pow(h*(t.x-a)-d*(t.y-s),2);return p/Math.pow(l+r,2)+f/Math.pow(c+r,2)<=1.0001}({x:t,y:e},this.getProps(["width","height","centerX","centerY"],r),i,o);const{x:a,y:s,x2:l,y2:c}=this.getProps(["x","y","x2","y2"],r),u="y"===n?{start:s,end:c}:{start:a,end:l},d=WF({x:t,y:e},this.getCenterPoint(r),zl(-i));return d[n]>=u.start-o-YF&&d[n]<=u.end+o+YF}getCenterPoint(t){return KF(this,t)}draw(t){const{width:e,height:n,centerX:r,centerY:i,options:o}=this;t.save(),g$(t,this.getCenterPoint(),o.rotation),y$(t,this.options),t.beginPath(),t.fillStyle=o.backgroundColor;const a=v$(t,o);t.ellipse(r,i,n/2,e/2,wl/2,0,2*wl),t.fill(),a&&(t.shadowColor=o.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return D$(t,e)}}gj.id="ellipseAnnotation",gj.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,label:Object.assign({},Z$.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},gj.defaultRoutes={borderColor:"color",backgroundColor:"color"},gj.descriptors={label:{_fallback:!0}};class vj extends rh{inRange(t,e,n,r){const{x:i,y:o,x2:a,y2:s,width:l}=this.getProps(["x","y","x2","y2","width"],r),c=(this.options.borderWidth+this.options.hitTolerance)/2;if("x"!==n&&"y"!==n)return function(t,e,n,r){return!(!t||!e||n<=0)&&Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(n+r,2)}({x:t,y:e},this.getCenterPoint(r),l/2,c);return XF("y"===n?{start:o,end:s,value:e}:{start:i,end:a,value:t},c)}getCenterPoint(t){return KF(this,t)}draw(t){const e=this.options,n=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,y$(t,e);const r=v$(t,e);w$(t,this,this.centerX,this.centerY),r&&!m$(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=n}resolveElementProperties(t,e){const n=N$(t,e);return n.initProperties=d$(t,n,e),n}}vj.id="pointAnnotation",vj.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},vj.defaultRoutes={borderColor:"color",backgroundColor:"color"};class yj extends rh{inRange(t,e,n,r){if("x"!==n&&"y"!==n)return this.options.radius>=.1&&this.elements.length>1&&function(t,e,n,r){let i=!1,o=t[t.length-1].getProps(["bX","bY"],r);for(const a of t){const t=a.getProps(["bX","bY"],r);t.bY>n!=o.bY>n&&e<(o.bX-t.bX)*(n-t.bY)/(o.bY-t.bY)+t.bX&&(i=!i),o=t}return i}(this.elements,t,e,r);const i=WF({x:t,y:e},this.getCenterPoint(r),zl(-this.options.rotation)),o=this.elements.map((t=>"y"===n?t.bY:t.bX)),a=Math.min(...o),s=Math.max(...o);return i[n]>=a&&i[n]<=s}getCenterPoint(t){return KF(this,t)}draw(t){const{elements:e,options:n}=this;t.save(),t.beginPath(),t.fillStyle=n.backgroundColor,y$(t,n);const r=v$(t,n);let i=!0;for(const n of e)i?(t.moveTo(n.x,n.y),i=!1):t.lineTo(n.x,n.y);t.closePath(),t.fill(),r&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){const n=N$(t,e),{sides:r,rotation:i}=e,o=[],a=2*wl/r;let s=i*El;for(let i=0;i<r;i++,s+=a){const r=bj(n,e,s);r.initProperties=d$(t,n,e),o.push(r)}return n.elements=o,n}}function bj({centerX:t,centerY:e},{radius:n,borderWidth:r,hitTolerance:i},o){const a=(r+i)/2,s=Math.sin(o),l=Math.cos(o),c={x:t+s*n,y:e-l*n};return{type:"point",optionScope:"point",properties:{x:c.x,y:c.y,centerX:c.x,centerY:c.y,bX:t+s*(n+a),bY:e-l*(n+a)}}}yj.id="polygonAnnotation",yj.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,hitTolerance:0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},yj.defaultRoutes={borderColor:"color",backgroundColor:"color"};const xj={box:Z$,doughnutLabel:G$,ellipse:gj,label:K$,line:aj,point:vj,polygon:yj};Object.keys(xj).forEach((t=>{wc.describe(`elements.${xj[t].id}`,{_fallback:"plugins.annotation.common"})}));const _j={update:Object.assign},wj=F$.concat(H$),Sj=(t,e)=>nl(e)?Nj(t,e):t,kj=t=>"color"===t||"font"===t;function Cj(t="line"){return xj[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function Ej(t,e,n,r){const i=function(t,e,n){if("reset"===n||"none"===n||"resize"===n)return _j;return new qu(t,e)}(t,n.animations,r),o=e.annotations,a=function(t,e){const n=e.length,r=t.length;if(r<n){const e=n-r;t.splice(r,0,...new Array(e))}else r>n&&t.splice(n,r-n);return t}(e.elements,o);for(let e=0;e<o.length;e++){const n=o[e],r=Oj(a,e,n.type),s=n.setContext(Aj(t,r,a,n)),l=r.resolveElementProperties(t,s);l.skip=Mj(l),"elements"in l&&(Pj(r,l.elements,s,i),delete l.elements),bl(r.x)||Object.assign(r,l),Object.assign(r,l.initProperties),l.options=Tj(s),i.update(r,l)}}function Mj(t){return isNaN(t.x)||isNaN(t.y)}function Pj(t,e,n,r){const i=t.elements||(t.elements=[]);i.length=e.length;for(let t=0;t<e.length;t++){const o=e[t],a=o.properties,s=Oj(i,t,o.type,o.initProperties),l=n[o.optionScope].override(o);a.options=Tj(l),r.update(s,a)}}function Oj(t,e,n,r){const i=xj[Cj(n)];let o=t[e];return o&&o instanceof i||(o=t[e]=new i,Object.assign(o,r)),o}function Tj(t){const e=xj[Cj(t.type)],n={};n.id=t.id,n.type=t.type,n.drawTime=t.drawTime,Object.assign(n,Nj(t,e.defaults),Nj(t,e.defaultRoutes));for(const e of wj)n[e]=t[e];return n}function Nj(t,e){const n={};for(const r of Object.keys(e)){const i=e[r],o=t[r];kj(r)&&el(o)?n[r]=o.map((t=>Sj(t,i))):n[r]=Sj(o,i)}return n}function Aj(t,e,n,r){return e.$context||(e.$context=Object.assign(Object.create(t.getContext()),{element:e,get elements(){return n.filter((t=>t&&t.options))},id:r.id,type:"annotation"}))}const Dj=new Map,Lj=t=>"doughnutLabel"!==t.type,Ij=F$.concat(H$);var zj={id:"annotation",version:"3.1.0",beforeRegister(){!function(t,e,n,r=!0){const i=n.split(".");let o=0;for(const a of e.split(".")){const s=i[o++];if(parseInt(a,10)<parseInt(s,10))break;if(VF(s,a)){if(r)throw new Error(`${t} v${n} is not supported. v${e} or newer is required.`);return!1}}}("chart.js","4.0",Yh.version)},afterRegister(){Yh.register(xj)},afterUnregister(){Yh.unregister(xj)},beforeInit(t){Dj.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,n){const r=Dj.get(t).annotations=[];let i=n.annotations;nl(i)?Object.keys(i).forEach((t=>{const e=i[t];nl(e)&&(e.id=t,r.push(e))})):el(i)&&r.push(...i),function(t,e){for(const n of t)q$(n,e)}(r.filter(Lj),t.scales)},afterDataLimits(t,e){const n=Dj.get(t);V$(t,e.scale,n.annotations.filter(Lj).filter((t=>t.display&&t.adjustScaleRange)))},afterUpdate(t,e,n){const r=Dj.get(t);!function(t,e,n){e.listened=h$(n,F$,e.listeners),e.moveListened=!1,R$.forEach((t=>{xl(n[t])&&(e.moveListened=!0)})),e.listened&&e.moveListened||e.annotations.forEach((t=>{!e.listened&&xl(t.click)&&(e.listened=!0),e.moveListened||R$.forEach((n=>{xl(t[n])&&(e.listened=!0,e.moveListened=!0)}))}))}(0,r,n),Ej(t,r,n,e.mode),r.visibleElements=r.elements.filter((t=>!t.skip&&t.options.display)),function(t,e,n){const r=e.visibleElements;e.hooked=h$(n,H$,e.hooks),e.hooked||r.forEach((t=>{e.hooked||H$.forEach((n=>{xl(t.options[n])&&(e.hooked=!0)}))}))}(0,r,n)},beforeDatasetsDraw(t,e,n){Rj(t,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(t,e,n){Rj(t,"afterDatasetsDraw",n.clip)},beforeDatasetDraw(t,e,n){Rj(t,e.index,n.clip)},beforeDraw(t,e,n){Rj(t,"beforeDraw",n.clip)},afterDraw(t,e,n){Rj(t,"afterDraw",n.clip)},beforeEvent(t,e,n){$$(Dj.get(t),e.event,n)&&(e.changed=!0)},afterDestroy(t){Dj.delete(t)},getAnnotations(t){const e=Dj.get(t);return e?e.elements:[]},_getAnnotationElementsAtEventForMode:(t,e,n)=>BF(t,e,n),defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"},colors:{properties:["backgroundColor","borderColor"],type:"color"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!Ij.includes(t)&&"init"!==t,annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${xj[Cj(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:kj,_fallback:!0},_indexable:kj}},additionalOptionScopes:[""]};function Rj(t,e,n){const{ctx:r,chartArea:i}=t,o=Dj.get(t);n&&Tc(r,i);const a=function(t,e){const n=[];for(const r of t)if(r.options.drawTime===e&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const t of r.elements)t.options.display&&t.options.drawTime===e&&n.push({element:t});return n}(o.visibleElements,e).sort(((t,e)=>t.element.options.z-e.element.options.z));for(const t of a)Fj(r,i,o,t);n&&Nc(r)}function Fj(t,e,n,r){const i=r.element;r.main?(W$(n,i,"beforeDraw"),i.draw(t,e),W$(n,i,"afterDraw")):i.draw(t,e)}const $j=6048e5,jj=6e4,Bj=36e5,Hj=Symbol.for("constructDateFrom");function Wj(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&Hj in t?t[Hj](e):t instanceof Date?new t.constructor(e):new Date(e)}function Vj(t,e){return Wj(e||t,t)}function Yj(t,e,n){const r=Vj(t,n?.in);return isNaN(e)?Wj(n?.in||t,NaN):e?(r.setDate(r.getDate()+e),r):r}function qj(t,e,n){const r=Vj(t,n?.in);if(isNaN(e))return Wj(n?.in||t,NaN);if(!e)return r;const i=r.getDate(),o=Wj(n?.in||t,r.getTime());o.setMonth(r.getMonth()+e+1,0);return i>=o.getDate()?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function Xj(t,e,n){return Wj(n?.in||t,+Vj(t)+e)}let Uj={};function Zj(){return Uj}function Gj(t,e){const n=Zj(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Vj(t,e?.in),o=i.getDay(),a=(o<r?7:0)+o-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Kj(t,e){return Gj(t,{...e,weekStartsOn:1})}function Jj(t,e){const n=Vj(t,e?.in),r=n.getFullYear(),i=Wj(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Kj(i),a=Wj(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const s=Kj(a);return n.getTime()>=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Qj(t){const e=Vj(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function tB(t,...e){const n=Wj.bind(null,t||e.find((t=>"object"==typeof t)));return e.map(n)}function eB(t,e){const n=Vj(t,e?.in);return n.setHours(0,0,0,0),n}function nB(t,e,n){const[r,i]=tB(n?.in,t,e),o=eB(r),a=eB(i),s=+o-Qj(o),l=+a-Qj(a);return Math.round((s-l)/864e5)}function rB(t,e){const n=+Vj(t)-+Vj(e);return n<0?-1:n>0?1:n}function iB(t){return!(!((e=t)instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof t||isNaN(+Vj(t)));var e}function oB(t,e,n){const[r,i]=tB(n?.in,t,e),o=aB(r,i),a=Math.abs(nB(r,i));r.setDate(r.getDate()-o*a);const s=o*(a-Number(aB(r,i)===-o));return 0===s?0:s}function aB(t,e){const n=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return n<0?-1:n>0?1:n}function sB(t){return e=>{const n=(t?Math[t]:Math.trunc)(e);return 0===n?0:n}}function lB(t,e){return+Vj(t)-+Vj(e)}function cB(t,e){const n=Vj(t,e?.in);return n.setHours(23,59,59,999),n}function uB(t,e){const n=Vj(t,e?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function dB(t,e,n){const[r,i,o]=tB(n?.in,t,t,e),a=rB(i,o),s=Math.abs(function(t,e,n){const[r,i]=tB(n?.in,t,e);return 12*(r.getFullYear()-i.getFullYear())+(r.getMonth()-i.getMonth())}(i,o));if(s<1)return 0;1===i.getMonth()&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-a*s);let l=rB(i,o)===-a;(function(t,e){const n=Vj(t,e?.in);return+cB(n,e)==+uB(n,e)})(r)&&1===s&&1===rB(r,o)&&(l=!1);const c=a*(s-+l);return 0===c?0:c}function hB(t,e,n){const[r,i]=tB(n?.in,t,e),o=rB(r,i),a=Math.abs(function(t,e,n){const[r,i]=tB(n?.in,t,e);return r.getFullYear()-i.getFullYear()}(r,i));r.setFullYear(1584),i.setFullYear(1584);const s=o*(a-+(rB(r,i)===-o));return 0===s?0:s}function pB(t,e){const n=Vj(t,e?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const fB={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function mB(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const gB={date:mB({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:mB({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:mB({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vB={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function yB(t){return(e,n)=>{let r;if("formatting"===(n?.context?String(n.context):"standalone")&&t.formattingValues){const e=t.defaultFormattingWidth||t.defaultWidth,i=n?.width?String(n.width):e;r=t.formattingValues[i]||t.formattingValues[e]}else{const e=t.defaultWidth,i=n?.width?String(n.width):t.defaultWidth;r=t.values[i]||t.values[e]}return r[t.argumentCallback?t.argumentCallback(e):e]}}const bB={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:yB({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:yB({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:t=>t-1}),month:yB({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:yB({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:yB({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function xB(t){return(e,n={})=>{const r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=e.match(i);if(!o)return null;const a=o[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(s)?function(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n;return}(s,(t=>t.test(a))):function(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n;return}(s,(t=>t.test(a)));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:e.slice(a.length)}}}const _B={ordinalNumber:(wB={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:t=>parseInt(t,10)},(t,e={})=>{const n=t.match(wB.matchPattern);if(!n)return null;const r=n[0],i=t.match(wB.parsePattern);if(!i)return null;let o=wB.valueCallback?wB.valueCallback(i[0]):i[0];return o=e.valueCallback?e.valueCallback(o):o,{value:o,rest:t.slice(r.length)}}),era:xB({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:xB({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:t=>t+1}),month:xB({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:xB({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:xB({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var wB;const SB={code:"en-US",formatDistance:(t,e,n)=>{let r;const i=fB[t];return r="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:gB,formatRelative:(t,e,n,r)=>vB[t],localize:bB,match:_B,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kB(t,e){const n=Vj(t,e?.in),r=+Kj(n)-+function(t,e){const n=Jj(t,e),r=Wj(e?.in||t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Kj(r)}(n);return Math.round(r/$j)+1}function CB(t,e){const n=Vj(t,e?.in),r=n.getFullYear(),i=Zj(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=Wj(e?.in||t,0);a.setFullYear(r+1,0,o),a.setHours(0,0,0,0);const s=Gj(a,e),l=Wj(e?.in||t,0);l.setFullYear(r,0,o),l.setHours(0,0,0,0);const c=Gj(l,e);return+n>=+s?r+1:+n>=+c?r:r-1}function EB(t,e){const n=Vj(t,e?.in),r=+Gj(n,e)-+function(t,e){const n=Zj(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=CB(t,e),o=Wj(e?.in||t,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),Gj(o,e)}(n,e);return Math.round(r/$j)+1}function MB(t,e){return(t<0?"-":"")+Math.abs(t).toString().padStart(e,"0")}const PB={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return MB("yy"===e?r%100:r,e.length)},M(t,e){const n=t.getMonth();return"M"===e?String(n+1):MB(n+1,2)},d:(t,e)=>MB(t.getDate(),e.length),a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(t,e)=>MB(t.getHours()%12||12,e.length),H:(t,e)=>MB(t.getHours(),e.length),m:(t,e)=>MB(t.getMinutes(),e.length),s:(t,e)=>MB(t.getSeconds(),e.length),S(t,e){const n=e.length,r=t.getMilliseconds();return MB(Math.trunc(r*Math.pow(10,n-3)),e.length)}},OB="midnight",TB="noon",NB="morning",AB="afternoon",DB="evening",LB="night",IB={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){const e=t.getFullYear(),r=e>0?e:1-e;return n.ordinalNumber(r,{unit:"year"})}return PB.y(t,e)},Y:function(t,e,n,r){const i=CB(t,r),o=i>0?i:1-i;if("YY"===e){return MB(o%100,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):MB(o,e.length)},R:function(t,e){return MB(Jj(t),e.length)},u:function(t,e){return MB(t.getFullYear(),e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return MB(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return MB(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return PB.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return MB(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const i=EB(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):MB(i,e.length)},I:function(t,e,n){const r=kB(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):MB(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getDate(),{unit:"date"}):PB.d(t,e)},D:function(t,e,n){const r=function(t,e){const n=Vj(t,e?.in);return nB(n,pB(n))+1}(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):MB(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return MB(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const i=t.getDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return MB(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return MB(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const r=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let i;switch(i=12===r?TB:0===r?OB:r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let i;switch(i=r>=17?DB:r>=12?AB:r>=4?NB:LB,e){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){let e=t.getHours()%12;return 0===e&&(e=12),n.ordinalNumber(e,{unit:"hour"})}return PB.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getHours(),{unit:"hour"}):PB.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):MB(r,e.length)},k:function(t,e,n){let r=t.getHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):MB(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):PB.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getSeconds(),{unit:"second"}):PB.s(t,e)},S:function(t,e){return PB.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return RB(r);case"XXXX":case"XX":return FB(r);default:return FB(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return RB(r);case"xxxx":case"xx":return FB(r);default:return FB(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+zB(r,":");default:return"GMT"+FB(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+zB(r,":");default:return"GMT"+FB(r,":")}},t:function(t,e,n){return MB(Math.trunc(+t/1e3),e.length)},T:function(t,e,n){return MB(+t,e.length)}};function zB(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),i=Math.trunc(r/60),o=r%60;return 0===o?n+String(i):n+String(i)+e+MB(o,2)}function RB(t,e){if(t%60==0){return(t>0?"-":"+")+MB(Math.abs(t)/60,2)}return FB(t,e)}function FB(t,e=""){const n=t>0?"-":"+",r=Math.abs(t);return n+MB(Math.trunc(r/60),2)+e+MB(r%60,2)}const $B=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},jB=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},BB={p:jB,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return $B(t,e);let o;switch(r){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;default:o=e.dateTime({width:"full"})}return o.replace("{{date}}",$B(r,e)).replace("{{time}}",jB(i,e))}},HB=/^D+$/,WB=/^Y+$/,VB=["D","DD","YY","YYYY"];function YB(t){return HB.test(t)}function qB(t){return WB.test(t)}function XB(t,e,n){const r=function(t,e,n){const r="Y"===t[0]?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(t,e,n);if(console.warn(r),VB.includes(t))throw new RangeError(r)}const UB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ZB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,GB=/^'([^]*?)'?$/,KB=/''/g,JB=/[a-zA-Z]/;function QB(t){const e=t.match(GB);return e?e[1].replace(KB,"'"):t}class tH{subPriority=0;validate(t,e){return!0}}class eH extends tH{constructor(t,e,n,r,i){super(),this.value=t,this.validateValue=e,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,n){return this.setValue(t,e,this.value,n)}}class nH extends tH{priority=10;subPriority=-1;constructor(t,e){super(),this.context=t||(t=>Wj(e,t))}set(t,e){return e.timestampIsSet?t:Wj(t,function(t,e){const n=function(t){return"function"==typeof t&&t.prototype?.constructor===t}(e)?new e(0):Wj(e,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),n}(t,this.context))}}class rH{run(t,e,n,r){const i=this.parse(t,e,n,r);return i?{setter:new eH(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(t,e,n){return!0}}const iH=/^(1[0-2]|0?\d)/,oH=/^(3[0-1]|[0-2]?\d)/,aH=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,sH=/^(5[0-3]|[0-4]?\d)/,lH=/^(2[0-3]|[0-1]?\d)/,cH=/^(2[0-4]|[0-1]?\d)/,uH=/^(1[0-1]|0?\d)/,dH=/^(1[0-2]|0?\d)/,hH=/^[0-5]?\d/,pH=/^[0-5]?\d/,fH=/^\d/,mH=/^\d{1,2}/,gH=/^\d{1,3}/,vH=/^\d{1,4}/,yH=/^-?\d+/,bH=/^-?\d/,xH=/^-?\d{1,2}/,_H=/^-?\d{1,3}/,wH=/^-?\d{1,4}/,SH=/^([+-])(\d{2})(\d{2})?|Z/,kH=/^([+-])(\d{2})(\d{2})|Z/,CH=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,EH=/^([+-])(\d{2}):(\d{2})|Z/,MH=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function PH(t,e){return t?{value:e(t.value),rest:t.rest}:t}function OH(t,e){const n=e.match(t);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function TH(t,e){const n=e.match(t);if(!n)return null;if("Z"===n[0])return{value:0,rest:e.slice(1)};const r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*Bj+o*jj+1e3*a),rest:e.slice(n[0].length)}}function NH(t){return OH(yH,t)}function AH(t,e){switch(t){case 1:return OH(fH,e);case 2:return OH(mH,e);case 3:return OH(gH,e);case 4:return OH(vH,e);default:return OH(new RegExp("^\\d{1,"+t+"}"),e)}}function DH(t,e){switch(t){case 1:return OH(bH,e);case 2:return OH(xH,e);case 3:return OH(_H,e);case 4:return OH(wH,e);default:return OH(new RegExp("^-?\\d{1,"+t+"}"),e)}}function LH(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function IH(t,e){const n=e>0,r=n?e:1-e;let i;if(r<=50)i=t||100;else{const e=r+50;i=t+100*Math.trunc(e/100)-(t>=e%100?100:0)}return n?i:1-i}function zH(t){return t%400==0||t%4==0&&t%100!=0}const RH=[31,28,31,30,31,30,31,31,30,31,30,31],FH=[31,29,31,30,31,30,31,31,30,31,30,31];function $H(t,e,n){const r=Zj(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=Vj(t,n?.in),a=o.getDay(),s=7-i;return Yj(o,e<0||e>6?e-(a+s)%7:((e%7+7)%7+s)%7-(a+s)%7,n)}function jH(t,e,n){const r=Vj(t,n?.in),i=function(t,e){const n=Vj(t,e?.in).getDay();return 0===n?7:n}(r,n);return Yj(r,e-i,n)}const BH={G:new class extends rH{priority=140;parse(t,e,n){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}}set(t,e,n){return e.era=n,t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]},y:new class extends rH{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,n){const r=t=>({year:t,isTwoDigitYear:"yy"===e});switch(e){case"y":return PH(AH(4,t),r);case"yo":return PH(n.ordinalNumber(t,{unit:"year"}),r);default:return PH(AH(e.length,t),r)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n){const r=t.getFullYear();if(n.isTwoDigitYear){const e=IH(n.year,r);return t.setFullYear(e,0,1),t.setHours(0,0,0,0),t}const i="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}},Y:new class extends rH{priority=130;parse(t,e,n){const r=t=>({year:t,isTwoDigitYear:"YY"===e});switch(e){case"Y":return PH(AH(4,t),r);case"Yo":return PH(n.ordinalNumber(t,{unit:"year"}),r);default:return PH(AH(e.length,t),r)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,n,r){const i=CB(t,r);if(n.isTwoDigitYear){const e=IH(n.year,i);return t.setFullYear(e,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),Gj(t,r)}const o="era"in e&&1!==e.era?1-n.year:n.year;return t.setFullYear(o,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),Gj(t,r)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends rH{priority=130;parse(t,e){return DH("R"===e?4:e.length,t)}set(t,e,n){const r=Wj(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Kj(r)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends rH{priority=130;parse(t,e){return DH("u"===e?4:e.length,t)}set(t,e,n){return t.setFullYear(n,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends rH{priority=120;parse(t,e,n){switch(e){case"Q":case"QQ":return AH(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends rH{priority=120;parse(t,e,n){switch(e){case"q":case"qq":return AH(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,n){return t.setMonth(3*(n-1),1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends rH{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,n){const r=t=>t-1;switch(e){case"M":return PH(OH(iH,t),r);case"MM":return PH(AH(2,t),r);case"Mo":return PH(n.ordinalNumber(t,{unit:"month"}),r);case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}},L:new class extends rH{priority=110;parse(t,e,n){const r=t=>t-1;switch(e){case"L":return PH(OH(iH,t),r);case"LL":return PH(AH(2,t),r);case"Lo":return PH(n.ordinalNumber(t,{unit:"month"}),r);case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.setMonth(n,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends rH{priority=100;parse(t,e,n){switch(e){case"w":return OH(sH,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return AH(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n,r){return Gj(function(t,e,n){const r=Vj(t,n?.in),i=EB(r,n)-e;return r.setDate(r.getDate()-7*i),Vj(r,n?.in)}(t,n,r),r)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends rH{priority=100;parse(t,e,n){switch(e){case"I":return OH(sH,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return AH(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,n){return Kj(function(t,e,n){const r=Vj(t,n?.in),i=kB(r,n)-e;return r.setDate(r.getDate()-7*i),r}(t,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends rH{priority=90;subPriority=1;parse(t,e,n){switch(e){case"d":return OH(oH,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return AH(e.length,t)}}validate(t,e){const n=zH(t.getFullYear()),r=t.getMonth();return n?e>=1&&e<=FH[r]:e>=1&&e<=RH[r]}set(t,e,n){return t.setDate(n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends rH{priority=90;subpriority=1;parse(t,e,n){switch(e){case"D":case"DD":return OH(aH,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return AH(e.length,t)}}validate(t,e){return zH(t.getFullYear())?e>=1&&e<=366:e>=1&&e<=365}set(t,e,n){return t.setMonth(0,n),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends rH{priority=90;parse(t,e,n){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=$H(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends rH{priority=90;parse(t,e,n,r){const i=t=>{const e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return PH(AH(e.length,t),i);case"eo":return PH(n.ordinalNumber(t,{unit:"day"}),i);case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=$H(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends rH{priority=90;parse(t,e,n,r){const i=t=>{const e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return PH(AH(e.length,t),i);case"co":return PH(n.ordinalNumber(t,{unit:"day"}),i);case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,n,r){return(t=$H(t,n,r)).setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends rH{priority=90;parse(t,e,n){const r=t=>0===t?7:t;switch(e){case"i":case"ii":return AH(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return PH(n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return PH(n.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return PH(n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r);default:return PH(n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,e){return e>=1&&e<=7}set(t,e,n){return(t=jH(t,n)).setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends rH{priority=80;parse(t,e,n){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(LH(n),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends rH{priority=80;parse(t,e,n){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(LH(n),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends rH{priority=80;parse(t,e,n){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,n){return t.setHours(LH(n),0,0,0),t}incompatibleTokens=["a","b","t","T"]},h:new class extends rH{priority=70;parse(t,e,n){switch(e){case"h":return OH(dH,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return AH(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,n){const r=t.getHours()>=12;return r&&n<12?t.setHours(n+12,0,0,0):r||12!==n?t.setHours(n,0,0,0):t.setHours(0,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]},H:new class extends rH{priority=70;parse(t,e,n){switch(e){case"H":return OH(lH,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return AH(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,n){return t.setHours(n,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends rH{priority=70;parse(t,e,n){switch(e){case"K":return OH(uH,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return AH(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,n){return t.getHours()>=12&&n<12?t.setHours(n+12,0,0,0):t.setHours(n,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]},k:new class extends rH{priority=70;parse(t,e,n){switch(e){case"k":return OH(cH,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return AH(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,n){const r=n<=24?n%24:n;return t.setHours(r,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends rH{priority=60;parse(t,e,n){switch(e){case"m":return OH(hH,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return AH(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setMinutes(n,0,0),t}incompatibleTokens=["t","T"]},s:new class extends rH{priority=50;parse(t,e,n){switch(e){case"s":return OH(pH,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return AH(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,n){return t.setSeconds(n,0),t}incompatibleTokens=["t","T"]},S:new class extends rH{priority=30;parse(t,e){return PH(AH(e.length,t),(t=>Math.trunc(t*Math.pow(10,3-e.length))))}set(t,e,n){return t.setMilliseconds(n),t}incompatibleTokens=["t","T"]},X:new class extends rH{priority=10;parse(t,e){switch(e){case"X":return TH(SH,t);case"XX":return TH(kH,t);case"XXXX":return TH(CH,t);case"XXXXX":return TH(MH,t);default:return TH(EH,t)}}set(t,e,n){return e.timestampIsSet?t:Wj(t,t.getTime()-Qj(t)-n)}incompatibleTokens=["t","T","x"]},x:new class extends rH{priority=10;parse(t,e){switch(e){case"x":return TH(SH,t);case"xx":return TH(kH,t);case"xxxx":return TH(CH,t);case"xxxxx":return TH(MH,t);default:return TH(EH,t)}}set(t,e,n){return e.timestampIsSet?t:Wj(t,t.getTime()-Qj(t)-n)}incompatibleTokens=["t","T","X"]},t:new class extends rH{priority=40;parse(t){return NH(t)}set(t,e,n){return[Wj(t,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends rH{priority=20;parse(t){return NH(t)}set(t,e,n){return[Wj(t,n),{timestampIsSet:!0}]}incompatibleTokens="*"}},HH=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WH=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,VH=/^'([^]*?)'?$/,YH=/''/g,qH=/\S/,XH=/[a-zA-Z]/;function UH(t,e,n,r){const i=()=>Wj(r?.in||n,NaN),o=Object.assign({},Zj()),a=r?.locale??o.locale??SB,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,l=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0;if(!e)return t?i():Vj(n,r?.in);const c={firstWeekContainsDate:s,weekStartsOn:l,locale:a},u=[new nH(r?.in,n)],d=e.match(WH).map((t=>{const e=t[0];if(e in BB){return(0,BB[e])(t,a.formatLong)}return t})).join("").match(HH),h=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&qB(n)&&XB(n,e,t),!r?.useAdditionalDayOfYearTokens&&YB(n)&&XB(n,e,t);const o=n[0],s=BH[o];if(s){const{incompatibleTokens:e}=s;if(Array.isArray(e)){const t=h.find((t=>e.includes(t.token)||t.token===o));if(t)throw new RangeError(`The format string mustn't contain \`${t.fullToken}\` and \`${n}\` at the same time`)}else if("*"===s.incompatibleTokens&&h.length>0)throw new RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);h.push({token:o,fullToken:n});const r=s.run(t,n,a.match,c);if(!r)return i();u.push(r.setter),t=r.rest}else{if(o.match(XH))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");if("''"===n?n="'":"'"===o&&(n=n.match(VH)[1].replace(YH,"'")),0!==t.indexOf(n))return i();t=t.slice(n.length)}}if(t.length>0&&qH.test(t))return i();const p=u.map((t=>t.priority)).sort(((t,e)=>e-t)).filter(((t,e,n)=>n.indexOf(t)===e)).map((t=>u.filter((e=>e.priority===t)).sort(((t,e)=>e.subPriority-t.subPriority)))).map((t=>t[0]));let f=Vj(n,r?.in);if(isNaN(+f))return i();const m={};for(const t of p){if(!t.validate(f,c))return i();const e=t.set(f,m,c);Array.isArray(e)?(f=e[0],Object.assign(m,e[1])):f=e}return f}function ZH(t,e){const n=()=>Wj(e?.in,NaN),r=e?.additionalDigits??2,i=function(t){const e={},n=t.split(GH.dateTimeDelimiter);let r;if(n.length>2)return e;/:/.test(n[0])?r=n[0]:(e.date=n[0],r=n[1],GH.timeZoneDelimiter.test(e.date)&&(e.date=t.split(GH.timeZoneDelimiter)[0],r=t.substr(e.date.length,t.length)));if(r){const t=GH.timezone.exec(r);t?(e.time=r.replace(t[1],""),e.timezone=t[1]):e.time=r}return e}(t);let o;if(i.date){const t=function(t,e){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=t.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:null===o?i:100*o,restDateString:t.slice((r[1]||r[2]).length)}}(i.date,r);o=function(t,e){if(null===e)return new Date(NaN);const n=t.match(KH);if(!n)return new Date(NaN);const r=!!n[4],i=tW(n[1]),o=tW(n[2])-1,a=tW(n[3]),s=tW(n[4]),l=tW(n[5])-1;if(r)return function(t,e,n){return e>=1&&e<=53&&n>=0&&n<=6}(0,s,l)?function(t,e,n){const r=new Date(0);r.setUTCFullYear(t,0,4);const i=r.getUTCDay()||7,o=7*(e-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(e,s,l):new Date(NaN);{const t=new Date(0);return function(t,e,n){return e>=0&&e<=11&&n>=1&&n<=(nW[e]||(rW(t)?29:28))}(e,o,a)&&function(t,e){return e>=1&&e<=(rW(t)?366:365)}(e,i)?(t.setUTCFullYear(e,o,Math.max(i,a)),t):new Date(NaN)}}(t.restDateString,t.year)}if(!o||isNaN(+o))return n();const a=+o;let s,l=0;if(i.time&&(l=function(t){const e=t.match(JH);if(!e)return NaN;const n=eW(e[1]),r=eW(e[2]),i=eW(e[3]);if(!function(t,e,n){if(24===t)return 0===e&&0===n;return n>=0&&n<60&&e>=0&&e<60&&t>=0&&t<25}(n,r,i))return NaN;return n*Bj+r*jj+1e3*i}(i.time),isNaN(l)))return n();if(!i.timezone){const t=new Date(a+l),n=Vj(0,e?.in);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}return s=function(t){if("Z"===t)return 0;const e=t.match(QH);if(!e)return 0;const n="+"===e[1]?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;if(!function(t,e){return e>=0&&e<=59}
|
|
86
|
-
/*!
|
|
87
|
-
* chartjs-adapter-date-fns v3.0.0
|
|
88
|
-
* https://www.chartjs.org
|
|
89
|
-
* (c) 2022 chartjs-adapter-date-fns Contributors
|
|
90
|
-
* Released under the MIT license
|
|
91
|
-
*/(0,i))return NaN;return n*(r*Bj+i*jj)}(i.timezone),isNaN(s)?n():Vj(a+l+s,e?.in)}const GH={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},KH=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,JH=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,QH=/^([+-])(\d{2})(?::?(\d{2}))?$/;function tW(t){return t?parseInt(t):1}function eW(t){return t&&parseFloat(t.replace(",","."))||0}const nW=[31,null,31,30,31,30,31,31,30,31,30,31];function rW(t){return t%400==0||t%4==0&&t%100!=0}const iW={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};var oW;bd._date.override({_id:"date-fns",formats:function(){return iW},parse:function(t,e){if(null==t)return null;const n=typeof t;return"number"===n||t instanceof Date?t=Vj(t):"string"===n&&(t="string"==typeof e?UH(t,e,new Date,this.options):ZH(t,this.options)),iB(t)?t.getTime():null},format:function(t,e){return function(t,e,n){const r=Zj(),i=n?.locale??r.locale??SB,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Vj(t,n?.in);if(!iB(s))throw new RangeError("Invalid time value");let l=e.match(ZB).map((t=>{const e=t[0];return"p"===e||"P"===e?(0,BB[e])(t,i.formatLong):t})).join("").match(UB).map((t=>{if("''"===t)return{isToken:!1,value:"'"};const e=t[0];if("'"===e)return{isToken:!1,value:QB(t)};if(IB[e])return{isToken:!0,value:t};if(e.match(JB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return{isToken:!1,value:t}}));i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const c={firstWeekContainsDate:o,weekStartsOn:a,locale:i};return l.map((r=>{if(!r.isToken)return r.value;const o=r.value;return(!n?.useAdditionalWeekYearTokens&&qB(o)||!n?.useAdditionalDayOfYearTokens&&YB(o))&&XB(o,e,String(t)),(0,IB[o[0]])(s,o,i.localize,c)})).join("")}(t,e,this.options)},add:function(t,e,n){switch(n){case"millisecond":return Xj(t,e);case"second":return function(t,e,n){return Xj(t,1e3*e,n)}(t,e);case"minute":return function(t,e,n){const r=Vj(t,n?.in);return r.setTime(r.getTime()+e*jj),r}(t,e);case"hour":return function(t,e,n){return Xj(t,e*Bj,n)}(t,e);case"day":return Yj(t,e);case"week":return function(t,e,n){return Yj(t,7*e,n)}(t,e);case"month":return qj(t,e);case"quarter":return function(t,e,n){return qj(t,3*e,n)}(t,e);case"year":return function(t,e,n){return qj(t,12*e,n)}(t,e);default:return t}},diff:function(t,e,n){switch(n){case"millisecond":return lB(t,e);case"second":return function(t,e,n){const r=lB(t,e)/1e3;return sB(n?.roundingMethod)(r)}(t,e);case"minute":return function(t,e,n){const r=lB(t,e)/jj;return sB(n?.roundingMethod)(r)}(t,e);case"hour":return function(t,e,n){const[r,i]=tB(n?.in,t,e),o=(+r-+i)/Bj;return sB(n?.roundingMethod)(o)}(t,e);case"day":return oB(t,e);case"week":return function(t,e,n){const r=oB(t,e,n)/7;return sB(n?.roundingMethod)(r)}(t,e);case"month":return dB(t,e);case"quarter":return function(t,e,n){const r=dB(t,e,n)/3;return sB(n?.roundingMethod)(r)}(t,e);case"year":return hB(t,e);default:return 0}},startOf:function(t,e,n){switch(e){case"second":return function(t,e){const n=Vj(t,e?.in);return n.setMilliseconds(0),n}(t);case"minute":return function(t,e){const n=Vj(t,e?.in);return n.setSeconds(0,0),n}(t);case"hour":return function(t,e){const n=Vj(t,e?.in);return n.setMinutes(0,0,0),n}(t);case"day":return eB(t);case"week":return Gj(t);case"isoWeek":return Gj(t,{weekStartsOn:+n});case"month":return function(t,e){const n=Vj(t,e?.in);return n.setDate(1),n.setHours(0,0,0,0),n}(t);case"quarter":return function(t,e){const n=Vj(t,e?.in),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}(t);case"year":return pB(t);default:return t}},endOf:function(t,e){switch(e){case"second":return function(t,e){const n=Vj(t,e?.in);return n.setMilliseconds(999),n}(t);case"minute":return function(t,e){const n=Vj(t,e?.in);return n.setSeconds(59,999),n}(t);case"hour":return function(t,e){const n=Vj(t,e?.in);return n.setMinutes(59,59,999),n}(t);case"day":return cB(t);case"week":return function(t,e){const n=Zj(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Vj(t,e?.in),o=i.getDay(),a=6+(o<r?-7:0)-(o-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}(t);case"month":return uB(t);case"quarter":return function(t,e){const n=Vj(t,e?.in),r=n.getMonth(),i=r-r%3+3;return n.setMonth(i,0),n.setHours(23,59,59,999),n}(t);case"year":return function(t,e){const n=Vj(t,e?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}(t);default:return t}}}),function(t){var e;(t.api||(t.api={})).isTypeLocation=t=>"object"==typeof t&&null!==t&&"string"==typeof t.type&&Array.isArray(t.coordinates)&&2===t.coordinates.length&&t.coordinates.every((t=>"number"==typeof t)),(e=t.time||(t.time={})).timeUnitsInSeconds={second:1,minute:60,hour:3600,day:86400,week:604800,month:2592e3,quarter:7776e3,year:31536e3},e.unitMapper=t=>t<=10?"second":t<=120?"minute":t<=2160?"hour":t<=43200?"day":t<=50400?"week":t<=1296e3?"month":t<=9331200?"quarter":"year",e.getDiffInMinutes=(t,e)=>Math.abs(e.getTime()-t.getTime())/6e4,e.formatDateToEnUs=t=>new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0}).format(t),function(t){t.hexToHSL=t=>{let e=0,n=0,r=0;if(4===t.length)e=parseInt(t[1]+t[1],16),n=parseInt(t[2]+t[2],16),r=parseInt(t[3]+t[3],16);else{if(7!==t.length)throw new Error("Invalid HEX format");e=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),r=parseInt(t.slice(5,7),16)}e/=255,n/=255,r/=255;const i=Math.max(e,n,r),o=Math.min(e,n,r);let a=0,s=0,l=(i+o)/2;if(i!==o){const t=i-o;switch(s=l>.5?t/(2-i-o):t/(i+o),i){case e:a=(n-r)/t+(n<r?6:0);break;case n:a=(r-e)/t+2;break;case r:a=(e-n)/t+4}a/=6}return{h:a,s:s,l:l}},t.hslToHex=(t,e,n)=>{const r=(t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t);let i,o,a;if(0===e)i=o=a=n;else{const s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;i=r(l,s,t+1/3),o=r(l,s,t),a=r(l,s,t-1/3)}return`#${Math.round(255*i).toString(16).padStart(2,"0")}${Math.round(255*o).toString(16).padStart(2,"0")}${Math.round(255*a).toString(16).padStart(2,"0")}`}}(t.color||(t.color={}))}(oW||(oW={}));var aW="DraggableBar-module_bar__TpW1R";const sW=({x:e,y:n,maxX:r,minX:i,maxY:o,minY:a,height:l,style:c,onChange:u,onDown:d,onUp:h})=>{const p=s(null),f=s(!1),m=s(0),g=s(0),v=t=>{if(!f.current)return;const e=t.clientX-m.current,o=g.current+e;(!i||o>=i)&&(!r||o<=r)&&u?.({x:o,y:n})},y=()=>{f.current=!1,document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",y),h?.()};return t("div",{ref:p,onMouseDown:t=>{f.current=!0,m.current=t.clientX,g.current=e,document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),d?.()},className:aW,style:{...c,left:`${e}px`,bottom:`${n}px`,height:`${l}px`}})};Yh.register(mf,bf,pp,Hf,Xp,df,Yp,$F,zj);var lW=a((({dateRange:n,annotationRange:r,data:i,showArrows:o=!0,onPan:a,onClickBar:c,onChangeDateRange:d,...h})=>{const p=s(null),[f,m]=u(null),[g,v]=u(null),y=()=>{const t=oW.time.getDiffInMinutes(n.from,n.to);return oW.time.unitMapper(t)},b=t=>{const e=p?.current?.scales.x.ticks;if(!e)return;const n=.1*e.length,r=y(),i=n*oW.time.timeUnitsInSeconds[r];a?.(t,i)},x={responsive:!0,onClick:t=>{const e=p.current;if(!e)return;const n=e.getElementsAtEventForMode(t,"nearest",{intersect:!0},!1);if(!n.length)return;const r=n[0],i=e.data?.labels?.[r.index];i&&c?.(new Date(i))},scales:{x:{type:"time",time:{unit:y(),displayFormats:{[y()]:"p"}},title:{display:!1},grid:{display:!1},border:{width:3,color:"#d5e3fa"}},y:{title:{display:!1},grid:{display:!1},border:{width:0},ticks:{padding:10},offset:!0,beginAtZero:!0}},plugins:{legend:{display:!1},annotation:{annotations:r?{selectedBox:{type:"box",drawTime:"beforeDraw",xMin:r?.from.toISOString(),xMax:r?.to.toISOString(),backgroundColor:"#eaf0fd",borderWidth:0}}:{}}}};l((()=>{p.current?.scales.y.right&&(m({x:p.current?.scales.y.right,y:30}),v({x:p.current?.width,y:30}))}),[]);const _=(t,e)=>{const r=p?.current?.scales?.x,i=r?.getValueForPixel(t?.x||0);i&&d?.({...n,[e]:new Date(i)})};return t(B,{dimensionX:"fill",alignment:"top",gap:0,prefix:{children:o&&t(ys,{variant:"filled",color:"transparent",className:wR,onClick:()=>b("left"),children:t(Ua,{name:"chevronLeft",size:32})})},root:{dimensionX:"fill",dimensionY:"fill",children:e(j,{className:SR,dimensionX:"fill",dimensionY:"fill",children:[t(W,{className:`${kR} ${CR}`,children:oW.time.formatDateToEnUs(n.from)}),f&&t(sW,{x:f.x,y:f.y,minX:p.current?.scales.y.right,maxX:g?.x,height:p.current?.scales.y.height,onChange:m,onUp:()=>_(f,"from")}),t(IR,{ref:p,options:x,data:i}),g&&t(sW,{x:g.x,y:g.y,minX:f?.x,maxX:p.current?.width,height:p.current?.scales.y.height,onChange:v,onUp:()=>_(g,"to")}),t(W,{className:`${kR} ${ER}`,children:oW.time.formatDateToEnUs(n.to)})]})},suffix:{children:o&&t(ys,{variant:"filled",color:"transparent",className:wR,onClick:()=>b("right"),children:t(Ua,{name:"chevronRight",size:32})})},...h})})),cW={exports:{}},uW={};function dW(t){return function(e,n,r,i,o,a,s){return t(e,n,s)}}function hW(t){return function(e,n,r,i){if(!e||!n||"object"!=typeof e||"object"!=typeof n)return t(e,n,r,i);var o=i.get(e),a=i.get(n);if(o&&a)return o===n&&a===e;i.set(e,n),i.set(n,e);var s=t(e,n,r,i);return i.delete(e),i.delete(n),s}}function pW(t,e){var n={};for(var r in t)n[r]=t[r];for(var r in e)n[r]=e[r];return n}function fW(t){return t.constructor===Object||null==t.constructor}function mW(t){return"function"==typeof t.then}function gW(t,e){return t===e||t!=t&&e!=e}var vW=Object.prototype.toString;function yW(t){var e=t.areArraysEqual,n=t.areDatesEqual,r=t.areMapsEqual,i=t.areObjectsEqual,o=t.areRegExpsEqual,a=t.areSetsEqual,s=(0,t.createIsNestedEqual)(l);function l(t,l,c){if(t===l)return!0;if(!t||!l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;if(fW(t)&&fW(l))return i(t,l,s,c);var u=Array.isArray(t),d=Array.isArray(l);if(u||d)return u===d&&e(t,l,s,c);var h=vW.call(t);return h===vW.call(l)&&("[object Date]"===h?n(t,l,s,c):"[object RegExp]"===h?o(t,l,s,c):"[object Map]"===h?r(t,l,s,c):"[object Set]"===h?a(t,l,s,c):"[object Object]"===h||"[object Arguments]"===h?!mW(t)&&!mW(l)&&i(t,l,s,c):("[object Boolean]"===h||"[object Number]"===h||"[object String]"===h)&&gW(t.valueOf(),l.valueOf()))}return l}function bW(t,e,n,r){var i=t.length;if(e.length!==i)return!1;for(;i-- >0;)if(!n(t[i],e[i],i,i,t,e,r))return!1;return!0}var xW=hW(bW);function _W(t,e){return gW(t.valueOf(),e.valueOf())}function wW(t,e,n,r){var i=t.size===e.size;if(!i)return!1;if(!t.size)return!0;var o={},a=0;return t.forEach((function(s,l){if(i){var c=!1,u=0;e.forEach((function(i,d){c||o[u]||!(c=n(l,d,a,u,t,e,r)&&n(s,i,l,d,t,e,r))||(o[u]=!0),u++})),a++,i=c}})),i}var SW=hW(wW),kW=Object.prototype.hasOwnProperty;function CW(t,e,n,r){var i,o=Object.keys(t),a=o.length;if(Object.keys(e).length!==a)return!1;for(;a-- >0;){if("_owner"===(i=o[a])){var s=!!t.$$typeof,l=!!e.$$typeof;if((s||l)&&s!==l)return!1}if(!kW.call(e,i)||!n(t[i],e[i],i,i,t,e,r))return!1}return!0}var EW=hW(CW);function MW(t,e){return t.source===e.source&&t.flags===e.flags}function PW(t,e,n,r){var i=t.size===e.size;if(!i)return!1;if(!t.size)return!0;var o={};return t.forEach((function(a,s){if(i){var l=!1,c=0;e.forEach((function(i,u){l||o[c]||!(l=n(a,i,s,u,t,e,r))||(o[c]=!0),c++})),i=l}})),i}var OW=hW(PW),TW=Object.freeze({areArraysEqual:bW,areDatesEqual:_W,areMapsEqual:wW,areObjectsEqual:CW,areRegExpsEqual:MW,areSetsEqual:PW,createIsNestedEqual:dW}),NW=Object.freeze({areArraysEqual:xW,areDatesEqual:_W,areMapsEqual:SW,areObjectsEqual:EW,areRegExpsEqual:MW,areSetsEqual:OW,createIsNestedEqual:dW}),AW=yW(TW);var DW=yW(pW(TW,{createIsNestedEqual:function(){return gW}}));var LW=yW(NW);var IW=yW(pW(NW,{createIsNestedEqual:function(){return gW}}));var zW,RW=Object.freeze({__proto__:null,circularDeepEqual:function(t,e){return LW(t,e,new WeakMap)},circularShallowEqual:function(t,e){return IW(t,e,new WeakMap)},createCustomCircularEqual:function(t){var e=yW(pW(NW,t(NW)));return function(t,n,r){return void 0===r&&(r=new WeakMap),e(t,n,r)}},createCustomEqual:function(t){return yW(pW(TW,t(TW)))},deepEqual:function(t,e){return AW(t,e,void 0)},sameValueZeroEqual:gW,shallowEqual:function(t,e){return DW(t,e,void 0)}}),FW=yt(RW),$W={exports:{}};function jW(){if(zW)return $W.exports;function t(e){var n,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(r=t(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function e(){for(var e,n,r=0,i="",o=arguments.length;r<o;r++)(e=arguments[r])&&(n=t(e))&&(i&&(i+=" "),i+=n);return i}return zW=1,$W.exports=e,$W.exports.clsx=e,$W.exports}var BW,HW,WW,VW={};function YW(){if(WW)return VW;WW=1,Object.defineProperty(VW,"__esModule",{value:!0}),VW.bottom=o,VW.childrenEqual=function(t,r){return(0,e.deepEqual)(n.default.Children.map(t,(t=>t?.key)),n.default.Children.map(r,(t=>t?.key)))&&(0,e.deepEqual)(n.default.Children.map(t,(t=>t?.props["data-grid"])),n.default.Children.map(r,(t=>t?.props["data-grid"])))},VW.cloneLayout=a,VW.cloneLayoutItem=l,VW.collides=c,VW.compact=u,VW.compactItem=p,VW.compactType=function(t){const{verticalCompact:e,compactType:n}=t||{};return!1===e?null:n},VW.correctBounds=f,VW.fastPositionEqual=function(t,e){return t.left===e.left&&t.top===e.top&&t.width===e.width&&t.height===e.height},VW.fastRGLPropsEqual=void 0,VW.getAllCollisions=v,VW.getFirstCollision=g,VW.getLayoutItem=m,VW.getStatics=y,VW.modifyLayout=s,VW.moveElement=b,VW.moveElementAwayFromCollision=x,VW.noop=void 0,VW.perc=function(t){return 100*t+"%"},VW.resizeItemInDirection=function(t,e,n,r){const i=O[t];return i?i(e,{...e,...n},r):n},VW.setTopLeft=function(t){let{top:e,left:n,width:r,height:i}=t;return{top:`${e}px`,left:`${n}px`,width:`${r}px`,height:`${i}px`,position:"absolute"}},VW.setTransform=function(t){let{top:e,left:n,width:r,height:i}=t;const o=`translate(${n}px,${e}px)`;return{transform:o,WebkitTransform:o,MozTransform:o,msTransform:o,OTransform:o,width:`${r}px`,height:`${i}px`,position:"absolute"}},VW.sortLayoutItems=T,VW.sortLayoutItemsByColRow=A,VW.sortLayoutItemsByRowCol=N,VW.synchronizeLayoutWithChildren=function(t,e,i,a,s){t=t||[];const c=[];n.default.Children.forEach(e,(e=>{if(null==e?.key)return;const n=m(t,String(e.key)),i=e.props["data-grid"];n&&null==i?c.push(l(n)):i?(r||D([i],"ReactGridLayout.children"),c.push(l({...i,i:e.key}))):c.push(l({w:1,h:1,x:0,y:o(c),i:String(e.key)}))}));const d=f(c,{cols:i});return s?d:u(d,a,i)},VW.validateLayout=D,VW.withLayoutItem=function(t,e,n){let r=m(t,e);return r?(r=n(l(r)),[t=s(t,r),r]):[t,null]};var t,e=FW,n=(t=i)&&t.__esModule?t:{default:t};const r="production"===process.env.NODE_ENV;function o(t){let e,n=0;for(let r=0,i=t.length;r<i;r++)e=t[r].y+t[r].h,e>n&&(n=e);return n}function a(t){const e=Array(t.length);for(let n=0,r=t.length;n<r;n++)e[n]=l(t[n]);return e}function s(t,e){const n=Array(t.length);for(let r=0,i=t.length;r<i;r++)e.i===t[r].i?n[r]=e:n[r]=t[r];return n}function l(t){return{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,minW:t.minW,maxW:t.maxW,minH:t.minH,maxH:t.maxH,moved:Boolean(t.moved),static:Boolean(t.static),isDraggable:t.isDraggable,isResizable:t.isResizable,resizeHandles:t.resizeHandles,isBounded:t.isBounded}}function c(t,e){return t.i!==e.i&&(!(t.x+t.w<=e.x)&&(!(t.x>=e.x+e.w)&&(!(t.y+t.h<=e.y)&&!(t.y>=e.y+e.h))))}function u(t,e,n,r){const i=y(t),o=T(t,e),a=Array(t.length);for(let s=0,c=o.length;s<c;s++){let c=l(o[s]);c.static||(c=p(i,c,e,n,o,r),i.push(c)),a[t.indexOf(o[s])]=c,c.moved=!1}return a}VW.fastRGLPropsEqual=(HW||(HW=1,BW=function(t,e,n){return t===e||t.className===e.className&&n(t.style,e.style)&&t.width===e.width&&t.autoSize===e.autoSize&&t.cols===e.cols&&t.draggableCancel===e.draggableCancel&&t.draggableHandle===e.draggableHandle&&n(t.verticalCompact,e.verticalCompact)&&n(t.compactType,e.compactType)&&n(t.layout,e.layout)&&n(t.margin,e.margin)&&n(t.containerPadding,e.containerPadding)&&t.rowHeight===e.rowHeight&&t.maxRows===e.maxRows&&t.isBounded===e.isBounded&&t.isDraggable===e.isDraggable&&t.isResizable===e.isResizable&&t.allowOverlap===e.allowOverlap&&t.preventCollision===e.preventCollision&&t.useCSSTransforms===e.useCSSTransforms&&t.transformScale===e.transformScale&&t.isDroppable===e.isDroppable&&n(t.resizeHandles,e.resizeHandles)&&n(t.resizeHandle,e.resizeHandle)&&t.onLayoutChange===e.onLayoutChange&&t.onDragStart===e.onDragStart&&t.onDrag===e.onDrag&&t.onDragStop===e.onDragStop&&t.onResizeStart===e.onResizeStart&&t.onResize===e.onResize&&t.onResizeStop===e.onResizeStop&&t.onDrop===e.onDrop&&n(t.droppingItem,e.droppingItem)&&n(t.innerRef,e.innerRef)}),BW);const d={x:"w",y:"h"};function h(t,e,n,r){const i=d[r];e[r]+=1;for(let o=t.map((t=>t.i)).indexOf(e.i)+1;o<t.length;o++){const a=t[o];if(!a.static){if(a.y>e.y+e.h)break;c(e,a)&&h(t,a,n+e[i],r)}}e[r]=n}function p(t,e,n,r,i,a){const s="horizontal"===n;if("vertical"===n)for(e.y=Math.min(o(t),e.y);e.y>0&&!g(t,e);)e.y--;else if(s)for(;e.x>0&&!g(t,e);)e.x--;let l;for(;(l=g(t,e))&&(null!==n||!a);)if(s?h(i,e,l.x+l.w,"x"):h(i,e,l.y+l.h,"y"),s&&e.x+e.w>r)for(e.x=r-e.w,e.y++;e.x>0&&!g(t,e);)e.x--;return e.y=Math.max(e.y,0),e.x=Math.max(e.x,0),e}function f(t,e){const n=y(t);for(let r=0,i=t.length;r<i;r++){const i=t[r];if(i.x+i.w>e.cols&&(i.x=e.cols-i.w),i.x<0&&(i.x=0,i.w=e.cols),i.static)for(;g(n,i);)i.y++;else n.push(i)}return t}function m(t,e){for(let n=0,r=t.length;n<r;n++)if(t[n].i===e)return t[n]}function g(t,e){for(let n=0,r=t.length;n<r;n++)if(c(t[n],e))return t[n]}function v(t,e){return t.filter((t=>c(t,e)))}function y(t){return t.filter((t=>t.static))}function b(t,e,n,r,i,o,s,l,c){if(e.static&&!0!==e.isDraggable)return t;if(e.y===r&&e.x===n)return t;e.i,String(n),String(r),e.x,e.y;const u=e.x,d=e.y;"number"==typeof n&&(e.x=n),"number"==typeof r&&(e.y=r),e.moved=!0;let h=T(t,s);("vertical"===s&&"number"==typeof r?d>=r:"horizontal"===s&&"number"==typeof n&&u>=n)&&(h=h.reverse());const p=v(h,e),f=p.length>0;if(f&&c)return a(t);if(f&&o)return e.i,e.x=u,e.y=d,e.moved=!1,t;for(let n=0,r=p.length;n<r;n++){const r=p[n];e.i,e.x,e.y,r.i,r.x,r.y,r.moved||(t=r.static?x(t,r,e,i,s):x(t,e,r,i,s))}return t}function x(t,e,n,r,i,o){const a="horizontal"===i,s="vertical"===i,l=e.static;if(r){r=!1;const o={x:a?Math.max(e.x-n.w,0):n.x,y:s?Math.max(e.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},c=g(t,o),u=c&&c.y+c.h>e.y,d=c&&e.x+e.w>c.x;if(!c)return n.i,o.x,o.y,b(t,n,a?o.x:void 0,s?o.y:void 0,r,l,i);if(u&&s)return b(t,n,void 0,e.y+1,r,l,i);if(u&&null==i)return e.y=n.y,n.y=n.y+n.h,t;if(d&&a)return b(t,e,n.x,void 0,r,l,i)}const c=a?n.x+1:void 0,u=s?n.y+1:void 0;return null==c&&null==u?t:b(t,n,a?n.x+1:void 0,s?n.y+1:void 0,r,l,i)}const _=(t,e,n,r)=>t+n>r?e:n,w=(t,e,n)=>t<0?e:n,S=t=>Math.max(0,t),k=t=>Math.max(0,t),C=(t,e,n)=>{let{left:r,height:i,width:o}=e;const a=t.top-(i-t.height);return{left:r,width:o,height:w(a,t.height,i),top:k(a)}},E=(t,e,n)=>{let{top:r,left:i,height:o,width:a}=e;return{top:r,height:o,width:_(t.left,t.width,a,n),left:S(i)}},M=(t,e,n)=>{let{top:r,height:i,width:o}=e;const a=t.left-(o-t.width);return{height:i,width:a<0?t.width:_(t.left,t.width,o,n),top:k(r),left:S(a)}},P=(t,e,n)=>{let{top:r,left:i,height:o,width:a}=e;return{width:a,left:i,height:w(r,t.height,o),top:k(r)}},O={n:C,ne:function(){return C(arguments.length<=0?void 0:arguments[0],E(...arguments))},e:E,se:function(){return P(arguments.length<=0?void 0:arguments[0],E(...arguments))},s:P,sw:function(){return P(arguments.length<=0?void 0:arguments[0],M(...arguments))},w:M,nw:function(){return C(arguments.length<=0?void 0:arguments[0],M(...arguments))}};function T(t,e){return"horizontal"===e?A(t):"vertical"===e?N(t):t}function N(t){return t.slice(0).sort((function(t,e){return t.y>e.y||t.y===e.y&&t.x>e.x?1:t.y===e.y&&t.x===e.x?0:-1}))}function A(t){return t.slice(0).sort((function(t,e){return t.x>e.x||t.x===e.x&&t.y>e.y?1:-1}))}function D(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout";const n=["x","y","w","h"];if(!Array.isArray(t))throw new Error(e+" must be an array!");for(let r=0,i=t.length;r<i;r++){const i=t[r];for(let t=0;t<n.length;t++)if("number"!=typeof i[n[t]])throw new Error("ReactGridLayout: "+e+"["+r+"]."+n[t]+" must be a number!")}}return VW.noop=()=>{},VW}var qW,XW={};function UW(){if(qW)return XW;function t(t){const{margin:e,containerPadding:n,containerWidth:r,cols:i}=t;return(r-e[0]*(i-1)-2*n[0])/i}function e(t,e,n){return Number.isFinite(t)?Math.round(e*t+Math.max(0,t-1)*n):t}function n(t,e,n){return Math.max(Math.min(t,n),e)}return qW=1,Object.defineProperty(XW,"__esModule",{value:!0}),XW.calcGridColWidth=t,XW.calcGridItemPosition=function(n,r,i,o,a,s){const{margin:l,containerPadding:c,rowHeight:u}=n,d=t(n),h={};s&&s.resizing?(h.width=Math.round(s.resizing.width),h.height=Math.round(s.resizing.height)):(h.width=e(o,d,l[0]),h.height=e(a,u,l[1]));s&&s.dragging?(h.top=Math.round(s.dragging.top),h.left=Math.round(s.dragging.left)):s&&s.resizing&&"number"==typeof s.resizing.top&&"number"==typeof s.resizing.left?(h.top=Math.round(s.resizing.top),h.left=Math.round(s.resizing.left)):(h.top=Math.round((u+l[1])*i+c[1]),h.left=Math.round((d+l[0])*r+c[0]));return h},XW.calcGridItemWHPx=e,XW.calcWH=function(e,r,i,o,a,s){const{margin:l,maxRows:c,cols:u,rowHeight:d}=e,h=t(e);let p=Math.round((r+l[0])/(h+l[0])),f=Math.round((i+l[1])/(d+l[1])),m=n(p,0,u-o),g=n(f,0,c-a);-1!==["sw","w","nw"].indexOf(s)&&(m=n(p,0,u));-1!==["nw","n","ne"].indexOf(s)&&(g=n(f,0,c));return{w:m,h:g}},XW.calcXY=function(e,r,i,o,a){const{margin:s,cols:l,rowHeight:c,maxRows:u}=e,d=t(e);let h=Math.round((i-s[0])/(d+s[0])),p=Math.round((r-s[1])/(c+s[1]));return h=n(h,0,l-o),p=n(p,0,u-a),{x:h,y:p}},XW.clamp=n,XW}var ZW={},GW={exports:{}},KW={};function JW(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=JW(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function QW(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=JW(t))&&(r&&(r+=" "),r+=e);return r}var tV,eV=yt(Object.freeze({__proto__:null,clsx:QW,default:QW})),nV={},rV={};function iV(){if(tV)return rV;return tV=1,Object.defineProperty(rV,"__esModule",{value:!0}),rV.dontSetMe=function(t,e,n){if(t[e])return new Error("Invalid prop ".concat(e," passed to ").concat(n," - do not set this, set it on the child."))},rV.findInArray=function(t,e){for(let n=0,r=t.length;n<r;n++)if(e.apply(e,[t[n],n,t]))return t[n]},rV.int=function(t){return parseInt(t,10)},rV.isFunction=function(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)},rV.isNum=function(t){return"number"==typeof t&&!isNaN(t)},rV}var oV,aV,sV={};function lV(){if(aV)return nV;aV=1,Object.defineProperty(nV,"__esModule",{value:!0}),nV.addClassName=a,nV.addEvent=function(t,e,n,r){if(!t)return;const i={capture:!0,...r};t.addEventListener?t.addEventListener(e,n,i):t.attachEvent?t.attachEvent("on"+e,n):t["on"+e]=n},nV.addUserSelectStyles=function(t){if(!t)return;let e=t.getElementById("react-draggable-style-el");e||(e=t.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",e.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(e));t.body&&a(t.body,"react-draggable-transparent-selection")},nV.createCSSTransform=function(t,n){const r=o(t,n,"px");return{[(0,e.browserPrefixToKey)("transform",e.default)]:r}},nV.createSVGTransform=function(t,e){return o(t,e,"")},nV.getTouch=function(e,n){return e.targetTouches&&(0,t.findInArray)(e.targetTouches,(t=>n===t.identifier))||e.changedTouches&&(0,t.findInArray)(e.changedTouches,(t=>n===t.identifier))},nV.getTouchIdentifier=function(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier},nV.getTranslation=o,nV.innerHeight=function(e){let n=e.clientHeight;const r=e.ownerDocument.defaultView.getComputedStyle(e);return n-=(0,t.int)(r.paddingTop),n-=(0,t.int)(r.paddingBottom),n},nV.innerWidth=function(e){let n=e.clientWidth;const r=e.ownerDocument.defaultView.getComputedStyle(e);return n-=(0,t.int)(r.paddingLeft),n-=(0,t.int)(r.paddingRight),n},nV.matchesSelector=i,nV.matchesSelectorAndParentsTo=function(t,e,n){let r=t;do{if(i(r,e))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},nV.offsetXYFromParent=function(t,e,n){const r=e===e.ownerDocument.body?{left:0,top:0}:e.getBoundingClientRect(),i=(t.clientX+e.scrollLeft-r.left)/n,o=(t.clientY+e.scrollTop-r.top)/n;return{x:i,y:o}},nV.outerHeight=function(e){let n=e.clientHeight;const r=e.ownerDocument.defaultView.getComputedStyle(e);return n+=(0,t.int)(r.borderTopWidth),n+=(0,t.int)(r.borderBottomWidth),n},nV.outerWidth=function(e){let n=e.clientWidth;const r=e.ownerDocument.defaultView.getComputedStyle(e);return n+=(0,t.int)(r.borderLeftWidth),n+=(0,t.int)(r.borderRightWidth),n},nV.removeClassName=s,nV.removeEvent=function(t,e,n,r){if(!t)return;const i={capture:!0,...r};t.removeEventListener?t.removeEventListener(e,n,i):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null},nV.removeUserSelectStyles=function(t){if(!t)return;try{if(t.body&&s(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{const e=(t.defaultView||window).getSelection();e&&"Caret"!==e.type&&e.removeAllRanges()}}catch(t){}};var t=iV(),e=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=n(e);if(r&&r.has(t))return r.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=t[a]}i.default=t,r&&r.set(t,i);return i}(function(){if(oV)return sV;oV=1,Object.defineProperty(sV,"__esModule",{value:!0}),sV.browserPrefixToKey=n,sV.browserPrefixToStyle=function(t,e){return e?"-".concat(e.toLowerCase(),"-").concat(t):t},sV.default=void 0,sV.getPrefix=e;const t=["Moz","Webkit","O","ms"];function e(){var e;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const i=null===(e=window.document)||void 0===e||null===(e=e.documentElement)||void 0===e?void 0:e.style;if(!i)return"";if(r in i)return"";for(let e=0;e<t.length;e++)if(n(r,t[e])in i)return t[e];return""}function n(t,e){return e?"".concat(e).concat(function(t){let e="",n=!0;for(let r=0;r<t.length;r++)n?(e+=t[r].toUpperCase(),n=!1):"-"===t[r]?n=!0:e+=t[r];return e}(t)):t}return sV.default=e(),sV}());function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,r=new WeakMap;return(n=function(t){return t?r:e})(t)}let r="";function i(e,n){return r||(r=(0,t.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],(function(n){return(0,t.isFunction)(e[n])}))),!!(0,t.isFunction)(e[r])&&e[r](n)}function o(t,e,n){let{x:r,y:i}=t,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(e){const t="".concat("string"==typeof e.x?e.x:e.x+n),r="".concat("string"==typeof e.y?e.y:e.y+n);o="translate(".concat(t,", ").concat(r,")")+o}return o}function a(t,e){t.classList?t.classList.add(e):t.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(t.className+=" ".concat(e))}function s(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}return nV}var cV,uV={};function dV(){if(cV)return uV;cV=1,Object.defineProperty(uV,"__esModule",{value:!0}),uV.canDragX=function(t){return"both"===t.props.axis||"x"===t.props.axis},uV.canDragY=function(t){return"both"===t.props.axis||"y"===t.props.axis},uV.createCoreData=function(e,r,i){const o=!(0,t.isNum)(e.lastX),a=n(e);return o?{node:a,deltaX:0,deltaY:0,lastX:r,lastY:i,x:r,y:i}:{node:a,deltaX:r-e.lastX,deltaY:i-e.lastY,lastX:e.lastX,lastY:e.lastY,x:r,y:i}},uV.createDraggableData=function(t,e){const n=t.props.scale;return{node:e.node,x:t.state.x+e.deltaX/n,y:t.state.y+e.deltaY/n,deltaX:e.deltaX/n,deltaY:e.deltaY/n,lastX:t.state.x,lastY:t.state.y}},uV.getBoundPosition=function(r,i,o){if(!r.props.bounds)return[i,o];let{bounds:a}=r.props;a="string"==typeof a?a:function(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}(a);const s=n(r);if("string"==typeof a){const{ownerDocument:n}=s,r=n.defaultView;let i;if(i="parent"===a?s.parentNode:n.querySelector(a),!(i instanceof r.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const o=i,l=r.getComputedStyle(s),c=r.getComputedStyle(o);a={left:-s.offsetLeft+(0,t.int)(c.paddingLeft)+(0,t.int)(l.marginLeft),top:-s.offsetTop+(0,t.int)(c.paddingTop)+(0,t.int)(l.marginTop),right:(0,e.innerWidth)(o)-(0,e.outerWidth)(s)-s.offsetLeft+(0,t.int)(c.paddingRight)-(0,t.int)(l.marginRight),bottom:(0,e.innerHeight)(o)-(0,e.outerHeight)(s)-s.offsetTop+(0,t.int)(c.paddingBottom)-(0,t.int)(l.marginBottom)}}(0,t.isNum)(a.right)&&(i=Math.min(i,a.right));(0,t.isNum)(a.bottom)&&(o=Math.min(o,a.bottom));(0,t.isNum)(a.left)&&(i=Math.max(i,a.left));(0,t.isNum)(a.top)&&(o=Math.max(o,a.top));return[i,o]},uV.getControlPosition=function(t,r,i){const o="number"==typeof r?(0,e.getTouch)(t,r):null;if("number"==typeof r&&!o)return null;const a=n(i),s=i.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,e.offsetXYFromParent)(o||t,s,i.props.scale)},uV.snapToGrid=function(t,e,n){const r=Math.round(e/t[0])*t[0],i=Math.round(n/t[1])*t[1];return[r,i]};var t=iV(),e=lV();function n(t){const e=t.findDOMNode();if(!e)throw new Error("<DraggableCore>: Unmounted during event!");return e}return uV}var hV,pV,fV,mV,gV={},vV={};function yV(){if(hV)return vV;return hV=1,Object.defineProperty(vV,"__esModule",{value:!0}),vV.default=function(){},vV}function bV(){if(pV)return gV;pV=1,Object.defineProperty(gV,"__esModule",{value:!0}),gV.default=void 0;var t=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(i),e=l(qt()),n=l(E),r=lV(),o=dV(),a=iV(),s=l(yV());function l(t){return t&&t.__esModule?t:{default:t}}function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}function u(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d={start:"touchstart",move:"touchmove",stop:"touchend"},h={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=h;class f extends t.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",(t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;const e=this.findDOMNode();if(!e||!e.ownerDocument||!e.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:n}=e;if(this.props.disabled||!(t.target instanceof n.defaultView.Node)||this.props.handle&&!(0,r.matchesSelectorAndParentsTo)(t.target,this.props.handle,e)||this.props.cancel&&(0,r.matchesSelectorAndParentsTo)(t.target,this.props.cancel,e))return;"touchstart"===t.type&&t.preventDefault();const i=(0,r.getTouchIdentifier)(t);this.touchIdentifier=i;const a=(0,o.getControlPosition)(t,i,this);if(null==a)return;const{x:l,y:c}=a,u=(0,o.createCoreData)(this,l,c);(0,s.default)("DraggableCore: handleDragStart: %j",u),(0,s.default)("calling",this.props.onStart);!1!==this.props.onStart(t,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,r.addUserSelectStyles)(n),this.dragging=!0,this.lastX=l,this.lastY=c,(0,r.addEvent)(n,p.move,this.handleDrag),(0,r.addEvent)(n,p.stop,this.handleDragStop))})),u(this,"handleDrag",(t=>{const e=(0,o.getControlPosition)(t,this.touchIdentifier,this);if(null==e)return;let{x:n,y:r}=e;if(Array.isArray(this.props.grid)){let t=n-this.lastX,e=r-this.lastY;if([t,e]=(0,o.snapToGrid)(this.props.grid,t,e),!t&&!e)return;n=this.lastX+t,r=this.lastY+e}const i=(0,o.createCoreData)(this,n,r);(0,s.default)("DraggableCore: handleDrag: %j",i);if(!1!==this.props.onDrag(t,i)&&!1!==this.mounted)this.lastX=n,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(t){const e=document.createEvent("MouseEvents");e.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}})),u(this,"handleDragStop",(t=>{if(!this.dragging)return;const e=(0,o.getControlPosition)(t,this.touchIdentifier,this);if(null==e)return;let{x:n,y:i}=e;if(Array.isArray(this.props.grid)){let t=n-this.lastX||0,e=i-this.lastY||0;[t,e]=(0,o.snapToGrid)(this.props.grid,t,e),n=this.lastX+t,i=this.lastY+e}const a=(0,o.createCoreData)(this,n,i);if(!1===this.props.onStop(t,a)||!1===this.mounted)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(l.ownerDocument),(0,s.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,s.default)("DraggableCore: Removing handlers"),(0,r.removeEvent)(l.ownerDocument,p.move,this.handleDrag),(0,r.removeEvent)(l.ownerDocument,p.stop,this.handleDragStop))})),u(this,"onMouseDown",(t=>(p=h,this.handleDragStart(t)))),u(this,"onMouseUp",(t=>(p=h,this.handleDragStop(t)))),u(this,"onTouchStart",(t=>(p=d,this.handleDragStart(t)))),u(this,"onTouchEnd",(t=>(p=d,this.handleDragStop(t))))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,r.addEvent)(t,d.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:e}=t;(0,r.removeEvent)(e,h.move,this.handleDrag),(0,r.removeEvent)(e,d.move,this.handleDrag),(0,r.removeEvent)(e,h.stop,this.handleDragStop),(0,r.removeEvent)(e,d.stop,this.handleDragStop),(0,r.removeEvent)(t,d.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,r.removeUserSelectStyles)(e)}}findDOMNode(){var t,e;return null!==(t=this.props)&&void 0!==t&&t.nodeRef?null===(e=this.props)||void 0===e||null===(e=e.nodeRef)||void 0===e?void 0:e.current:n.default.findDOMNode(this)}render(){return t.cloneElement(t.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}return gV.default=f,u(f,"displayName","DraggableCore"),u(f,"propTypes",{allowAnyClick:e.default.bool,children:e.default.node.isRequired,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:function(t,e){if(t[e]&&1!==t[e].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:e.default.arrayOf(e.default.number),handle:e.default.string,cancel:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),u(f,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),gV}function xV(){return fV||(fV=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),t.default=void 0;var e=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(i),n=d(qt()),r=d(E),o=d(eV),a=lV(),s=dV(),l=iV(),c=d(bV()),u=d(yV());function d(t){return t&&t.__esModule?t:{default:t}}function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}function p(){return p=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p.apply(this,arguments)}function f(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class m extends e.Component{static getDerivedStateFromProps(t,e){let{position:n}=t,{prevPropsPosition:r}=e;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}})}constructor(t){super(t),f(this,"onDragStart",((t,e)=>{(0,u.default)("Draggable: onDragStart: %j",e);if(!1===this.props.onStart(t,(0,s.createDraggableData)(this,e)))return!1;this.setState({dragging:!0,dragged:!0})})),f(this,"onDrag",((t,e)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",e);const n=(0,s.createDraggableData)(this,e),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){const{x:t,y:e}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[i,o]=(0,s.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=o,r.slackX=this.state.slackX+(t-r.x),r.slackY=this.state.slackY+(e-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(t,n))return!1;this.setState(r)})),f(this,"onDragStop",((t,e)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(t,(0,s.createDraggableData)(this,e)))return!1;(0,u.default)("Draggable: onDragStop: %j",e);const n={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:t,y:e}=this.props.position;n.x=t,n.y=e}this.setState(n)})),this.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:{...t.position},slackX:0,slackY:0,isElementSVG:!1},!t.position||t.onDrag||t.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var t,e;return null!==(t=null===(e=this.props)||void 0===e||null===(e=e.nodeRef)||void 0===e?void 0:e.current)&&void 0!==t?t:r.default.findDOMNode(this)}render(){const{axis:t,bounds:n,children:r,defaultPosition:i,defaultClassName:l,defaultClassNameDragging:u,defaultClassNameDragged:d,position:h,positionOffset:f,scale:m,...g}=this.props;let v={},y=null;const b=!Boolean(h)||this.state.dragging,x=h||i,_={x:(0,s.canDragX)(this)&&b?this.state.x:x.x,y:(0,s.canDragY)(this)&&b?this.state.y:x.y};this.state.isElementSVG?y=(0,a.createSVGTransform)(_,f):v=(0,a.createCSSTransform)(_,f);const w=(0,o.default)(r.props.className||"",l,{[u]:this.state.dragging,[d]:this.state.dragged});return e.createElement(c.default,p({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(r),{className:w,style:{...r.props.style,...v},transform:y}))}}t.default=m,f(m,"displayName","Draggable"),f(m,"propTypes",{...c.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),f(m,"defaultProps",{...c.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(KW)),KW}function _V(){if(mV)return GW.exports;mV=1;const{default:t,DraggableCore:e}=xV();return GW.exports=t,GW.exports.default=t,GW.exports.DraggableCore=e,GW.exports}var wV,SV={exports:{}},kV={},CV={};function EV(){if(wV)return CV;wV=1,CV.__esModule=!0,CV.cloneElement=function(t,n){n.style&&t.props.style&&(n.style=r(r({},t.props.style),n.style));n.className&&t.props.className&&(n.className=t.props.className+" "+n.className);return e.default.cloneElement(t,n)};var t,e=(t=i)&&t.__esModule?t:{default:t};function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}return CV}var MV,PV,OV={};function TV(){if(MV)return OV;MV=1,OV.__esModule=!0,OV.resizableProps=void 0;var t,e=(t=qt())&&t.__esModule?t:{default:t};_V();var n={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o=n[0];return"both"===o.axis||"y"===o.axis?(i=e.default.number).isRequired.apply(i,n):e.default.number.apply(e.default,n)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o=n[0];return"both"===o.axis||"x"===o.axis?(i=e.default.number).isRequired.apply(i,n):e.default.number.apply(e.default,n)}};return OV.resizableProps=n,OV}function NV(){if(PV)return kV;PV=1,kV.__esModule=!0,kV.default=void 0;var t=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(i),e=_V(),n=EV(),r=TV(),o=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var h=function(r){var i,a;function l(){for(var t,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return(t=r.call.apply(r,[this].concat(n))||this).handleRefs={},t.lastHandleRect=null,t.slack=null,t}a=r,(i=l).prototype=Object.create(a.prototype),i.prototype.constructor=i,d(i,a);var u=l.prototype;return u.componentWillUnmount=function(){this.resetData()},u.resetData=function(){this.lastHandleRect=this.slack=null},u.runConstraints=function(t,e){var n=this.props,r=n.minConstraints,i=n.maxConstraints,o=n.lockAspectRatio;if(!r&&!i&&!o)return[t,e];if(o){var a=this.props.width/this.props.height,s=t-this.props.width,l=e-this.props.height;Math.abs(s)>Math.abs(l*a)?e=t/a:t=e*a}var c=t,u=e,d=this.slack||[0,0],h=d[0],p=d[1];return t+=h,e+=p,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),i&&(t=Math.min(i[0],t),e=Math.min(i[1],e)),this.slack=[h+(c-t),p+(u-e)],[t,e]},u.resizeHandler=function(t,e){var n=this;return function(r,i){var o=i.node,a=i.deltaX,s=i.deltaY;"onResizeStart"===t&&n.resetData();var l=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,c=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(l||c){var u=e[0],d=e[e.length-1],h=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)a+=h.left-n.lastHandleRect.left;if("n"===u)s+=h.top-n.lastHandleRect.top}n.lastHandleRect=h,"w"===d&&(a=-a),"n"===u&&(s=-s);var p=n.props.width+(l?a/n.props.transformScale:0),f=n.props.height+(c?s/n.props.transformScale:0),m=n.runConstraints(p,f);p=m[0],f=m[1];var g=p!==n.props.width||f!==n.props.height,v="function"==typeof n.props[t]?n.props[t]:null;v&&!("onResize"===t&&!g)&&(null==r.persist||r.persist(),v(r,{node:o,size:{width:p,height:f},handle:e})),"onResizeStop"===t&&n.resetData()}}},u.renderResizeHandle=function(e,n){var r=this.props.handle;if(!r)return t.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:n});if("function"==typeof r)return r(e,n);var i=c({ref:n},"string"==typeof r.type?{}:{handleAxis:e});return t.cloneElement(r,i)},u.render=function(){var r=this,i=this.props,a=i.children,l=i.className,u=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var d=i.resizeHandles;i.transformScale;var h=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(i,o);return(0,n.cloneElement)(a,c(c({},h),{},{className:(l?l+" ":"")+"react-resizable",children:[].concat(a.props.children,d.map((function(n){var i,o=null!=(i=r.handleRefs[n])?i:r.handleRefs[n]=t.createRef();return t.createElement(e.DraggableCore,s({},u,{nodeRef:o,key:"resizableHandle-"+n,onStop:r.resizeHandler("onResizeStop",n),onStart:r.resizeHandler("onResizeStart",n),onDrag:r.resizeHandler("onResize",n)}),r.renderResizeHandle(n,o))})))}))},l}(t.Component);return kV.default=h,h.propTypes=r.resizableProps,h.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},kV}var AV,DV,LV={};function IV(){if(AV)return LV;AV=1,LV.__esModule=!0,LV.default=void 0;var t=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(i),e=a(qt()),n=a(NV()),r=TV(),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function a(t){return t&&t.__esModule?t:{default:t}}function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l.apply(this,arguments)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var p=function(e){var r,i;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state={width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height},t.onResize=function(e,n){var r=n.size;t.props.onResize?(null==e.persist||e.persist(),t.setState(r,(function(){return t.props.onResize&&t.props.onResize(e,n)}))):t.setState(r)},t}return i=e,(r=a).prototype=Object.create(i.prototype),r.prototype.constructor=r,h(r,i),a.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},a.prototype.render=function(){var e=this.props,r=e.handle,i=e.handleSize;e.onResize;var a=e.onResizeStart,s=e.onResizeStop,c=e.draggableOpts,d=e.minConstraints,h=e.maxConstraints,p=e.lockAspectRatio,f=e.axis;e.width,e.height;var m=e.resizeHandles,g=e.style,v=e.transformScale,y=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(e,o);return t.createElement(n.default,{axis:f,draggableOpts:c,handle:r,handleSize:i,height:this.state.height,lockAspectRatio:p,maxConstraints:h,minConstraints:d,onResizeStart:a,onResize:this.onResize,onResizeStop:s,resizeHandles:m,transformScale:v,width:this.state.width},t.createElement("div",l({},y,{style:u(u({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},a}(t.Component);return LV.default=p,p.propTypes=u(u({},r.resizableProps),{},{children:e.default.element}),LV}var zV,RV,FV,$V={};function jV(){if(zV)return $V;zV=1,Object.defineProperty($V,"__esModule",{value:!0}),$V.resizeHandleType=$V.resizeHandleAxesType=$V.default=void 0;var t=n(qt()),e=n(i);function n(t){return t&&t.__esModule?t:{default:t}}const r=$V.resizeHandleAxesType=t.default.arrayOf(t.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),o=$V.resizeHandleType=t.default.oneOfType([t.default.node,t.default.func]);return $V.default={className:t.default.string,style:t.default.object,width:t.default.number,autoSize:t.default.bool,cols:t.default.number,draggableCancel:t.default.string,draggableHandle:t.default.string,verticalCompact:function(t){!1===t.verticalCompact&&"production"!==process.env.NODE_ENV&&console.warn('`verticalCompact` on <ReactGridLayout> is deprecated and will be removed soon. Use `compactType`: "horizontal" | "vertical" | null.')},compactType:t.default.oneOf(["vertical","horizontal"]),layout:function(t){var e=t.layout;void 0!==e&&YW().validateLayout(e,"layout")},margin:t.default.arrayOf(t.default.number),containerPadding:t.default.arrayOf(t.default.number),rowHeight:t.default.number,maxRows:t.default.number,isBounded:t.default.bool,isDraggable:t.default.bool,isResizable:t.default.bool,allowOverlap:t.default.bool,preventCollision:t.default.bool,useCSSTransforms:t.default.bool,transformScale:t.default.number,isDroppable:t.default.bool,resizeHandles:r,resizeHandle:o,onLayoutChange:t.default.func,onDragStart:t.default.func,onDrag:t.default.func,onDragStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,onResizeStop:t.default.func,onDrop:t.default.func,droppingItem:t.default.shape({i:t.default.string.isRequired,w:t.default.number.isRequired,h:t.default.number.isRequired}),children:function(t,n){const r=t[n],i={};e.default.Children.forEach(r,(function(t){if(null!=t?.key){if(i[t.key])throw new Error('Duplicate child key "'+t.key+'" found! This will cause problems in ReactGridLayout.');i[t.key]=!0}}))},innerRef:t.default.any},$V}function BV(){if(RV)return ZW;RV=1,Object.defineProperty(ZW,"__esModule",{value:!0}),ZW.default=void 0;var t=c(i),e=c(qt()),n=_V(),r=(DV||(DV=1,SV.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},SV.exports.Resizable=NV().default,SV.exports.ResizableBox=IV().default),SV.exports),o=YW(),a=UW(),s=jV(),l=c(jW());function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}class d extends t.default.Component{constructor(){super(...arguments),u(this,"state",{resizing:null,dragging:null,className:""}),u(this,"elementRef",t.default.createRef()),u(this,"onDragStart",((t,e)=>{let{node:n}=e;const{onDragStart:r,transformScale:i}=this.props;if(!r)return;const o={top:0,left:0},{offsetParent:s}=n;if(!s)return;const l=s.getBoundingClientRect(),c=n.getBoundingClientRect(),u=c.left/i,d=l.left/i,h=c.top/i,p=l.top/i;o.left=u-d+s.scrollLeft,o.top=h-p+s.scrollTop,this.setState({dragging:o});const{x:f,y:m}=(0,a.calcXY)(this.getPositionParams(),o.top,o.left,this.props.w,this.props.h);return r.call(this,this.props.i,f,m,{e:t,node:n,newPosition:o})})),u(this,"onDrag",((t,e)=>{let{node:n,deltaX:r,deltaY:i}=e;const{onDrag:o}=this.props;if(!o)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let s=this.state.dragging.top+i,l=this.state.dragging.left+r;const{isBounded:c,i:u,w:d,h:h,containerWidth:p}=this.props,f=this.getPositionParams();if(c){const{offsetParent:t}=n;if(t){const{margin:e,rowHeight:n,containerPadding:r}=this.props,i=t.clientHeight-(0,a.calcGridItemWHPx)(h,n,e[1]);s=(0,a.clamp)(s-r[1],0,i);const o=(0,a.calcGridColWidth)(f),c=p-(0,a.calcGridItemWHPx)(d,o,e[0]);l=(0,a.clamp)(l-r[0],0,c)}}const m={top:s,left:l};this.setState({dragging:m});const{containerPadding:g}=this.props,{x:v,y:y}=(0,a.calcXY)(f,s-g[1],l-g[0],d,h);return o.call(this,u,v,y,{e:t,node:n,newPosition:m})})),u(this,"onDragStop",((t,e)=>{let{node:n}=e;const{onDragStop:r}=this.props;if(!r)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:i,h:o,i:s,containerPadding:l}=this.props,{left:c,top:u}=this.state.dragging,d={top:u,left:c};this.setState({dragging:null});const{x:h,y:p}=(0,a.calcXY)(this.getPositionParams(),u-l[1],c-l[0],i,o);return r.call(this,s,h,p,{e:t,node:n,newPosition:d})})),u(this,"onResizeStop",((t,e,n)=>this.onResizeHandler(t,e,n,"onResizeStop"))),u(this,"onResizeStart",((t,e,n)=>this.onResizeHandler(t,e,n,"onResizeStart"))),u(this,"onResize",((t,e,n)=>this.onResizeHandler(t,e,n,"onResize")))}shouldComponentUpdate(t,e){if(this.props.children!==t.children)return!0;if(this.props.droppingPosition!==t.droppingPosition)return!0;const n=(0,a.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),r=(0,a.calcGridItemPosition)(this.getPositionParams(t),t.x,t.y,t.w,t.h,e);return!(0,o.fastPositionEqual)(n,r)||this.props.useCSSTransforms!==t.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(t){this.moveDroppingItem(t)}moveDroppingItem(t){const{droppingPosition:e}=this.props;if(!e)return;const n=this.elementRef.current;if(!n)return;const r=t.droppingPosition||{left:0,top:0},{dragging:i}=this.state,o=i&&e.left!==r.left||e.top!==r.top;if(i){if(o){const t=e.left-i.left,r=e.top-i.top;this.onDrag(e.e,{node:n,deltaX:t,deltaY:r})}}else this.onDragStart(e.e,{node:n,deltaX:e.left,deltaY:e.top})}getPositionParams(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:t.cols,containerPadding:t.containerPadding,containerWidth:t.containerWidth,margin:t.margin,maxRows:t.maxRows,rowHeight:t.rowHeight}}createStyle(t){const{usePercentages:e,containerWidth:n,useCSSTransforms:r}=this.props;let i;return r?i=(0,o.setTransform)(t):(i=(0,o.setTopLeft)(t),e&&(i.left=(0,o.perc)(t.left/n),i.width=(0,o.perc)(t.width/n))),i}mixinDraggable(e,r){return t.default.createElement(n.DraggableCore,{disabled:!r,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},e)}curryResizeHandler(t,e){return(n,r)=>e(n,r,t)}mixinResizable(e,n,i){const{cols:o,minW:s,minH:l,maxW:c,maxH:u,transformScale:d,resizeHandles:h,resizeHandle:p}=this.props,f=this.getPositionParams(),m=(0,a.calcGridItemPosition)(f,0,0,o,0).width,g=(0,a.calcGridItemPosition)(f,0,0,s,l),v=(0,a.calcGridItemPosition)(f,0,0,c,u),y=[g.width,g.height],b=[Math.min(v.width,m),Math.min(v.height,1/0)];return t.default.createElement(r.Resizable,{draggableOpts:{disabled:!i},className:i?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:y,maxConstraints:b,onResizeStop:this.curryResizeHandler(n,this.onResizeStop),onResizeStart:this.curryResizeHandler(n,this.onResizeStart),onResize:this.curryResizeHandler(n,this.onResize),transformScale:d,resizeHandles:h,handle:p},e)}onResizeHandler(t,e,n,r){let{node:i,size:s,handle:l}=e;const c=this.props[r];if(!c)return;const{x:u,y:d,i:h,maxH:p,minH:f,containerWidth:m}=this.props,{minW:g,maxW:v}=this.props;let y=s;i&&(y=(0,o.resizeItemInDirection)(l,n,s,m),this.setState({resizing:"onResizeStop"===r?null:y}));let{w:b,h:x}=(0,a.calcWH)(this.getPositionParams(),y.width,y.height,u,d,l);b=(0,a.clamp)(b,Math.max(g,1),v),x=(0,a.clamp)(x,f,p),c.call(this,h,b,x,{e:t,node:i,size:y,handle:l})}render(){const{x:e,y:n,w:r,h:i,isDraggable:o,isResizable:s,droppingPosition:c,useCSSTransforms:u}=this.props,d=(0,a.calcGridItemPosition)(this.getPositionParams(),e,n,r,i,this.state),h=t.default.Children.only(this.props.children);let p=t.default.cloneElement(h,{ref:this.elementRef,className:(0,l.default)("react-grid-item",h.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":o,"react-draggable-dragging":Boolean(this.state.dragging),dropping:Boolean(c),cssTransforms:u}),style:{...this.props.style,...h.props.style,...this.createStyle(d)}});return p=this.mixinResizable(p,d,s),p=this.mixinDraggable(p,o),p}}return ZW.default=d,u(d,"propTypes",{children:e.default.element,cols:e.default.number.isRequired,containerWidth:e.default.number.isRequired,rowHeight:e.default.number.isRequired,margin:e.default.array.isRequired,maxRows:e.default.number.isRequired,containerPadding:e.default.array.isRequired,x:e.default.number.isRequired,y:e.default.number.isRequired,w:e.default.number.isRequired,h:e.default.number.isRequired,minW:function(t,e){const n=t[e];return"number"!=typeof n?new Error("minWidth not Number"):n>t.w||n>t.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(t,e){const n=t[e];return"number"!=typeof n?new Error("maxWidth not Number"):n<t.w||n<t.minW?new Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(t,e){const n=t[e];return"number"!=typeof n?new Error("minHeight not Number"):n>t.h||n>t.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(t,e){const n=t[e];return"number"!=typeof n?new Error("maxHeight not Number"):n<t.h||n<t.minH?new Error("maxHeight smaller than item height/minHeight"):void 0},i:e.default.string.isRequired,resizeHandles:s.resizeHandleAxesType,resizeHandle:s.resizeHandleType,onDragStop:e.default.func,onDragStart:e.default.func,onDrag:e.default.func,onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,isDraggable:e.default.bool.isRequired,isResizable:e.default.bool.isRequired,isBounded:e.default.bool.isRequired,static:e.default.bool,useCSSTransforms:e.default.bool.isRequired,transformScale:e.default.number,className:e.default.string,handle:e.default.string,cancel:e.default.string,droppingPosition:e.default.shape({e:e.default.object.isRequired,left:e.default.number.isRequired,top:e.default.number.isRequired})}),u(d,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),ZW}function HV(){if(FV)return uW;FV=1,Object.defineProperty(uW,"__esModule",{value:!0}),uW.default=void 0;var t=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(i),e=FW,n=l(jW()),r=YW(),o=UW(),a=l(BV()),s=l(jV());function l(t){return t&&t.__esModule?t:{default:t}}function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}function u(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d="react-grid-layout";let h=!1;try{h=/firefox/i.test(navigator.userAgent)}catch(t){}class p extends t.Component{constructor(){super(...arguments),u(this,"state",{activeDrag:null,layout:(0,r.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,r.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),u(this,"dragEnterCounter",0),u(this,"onDragStart",((t,e,n,i)=>{let{e:o,node:a}=i;const{layout:s}=this.state,l=(0,r.getLayoutItem)(s,t);if(!l)return;const c={w:l.w,h:l.h,x:l.x,y:l.y,placeholder:!0,i:t};return this.setState({oldDragItem:(0,r.cloneLayoutItem)(l),oldLayout:s,activeDrag:c}),this.props.onDragStart(s,l,l,null,o,a)})),u(this,"onDrag",((t,e,n,i)=>{let{e:o,node:a}=i;const{oldDragItem:s}=this.state;let{layout:l}=this.state;const{cols:c,allowOverlap:u,preventCollision:d}=this.props,h=(0,r.getLayoutItem)(l,t);if(!h)return;const p={w:h.w,h:h.h,x:h.x,y:h.y,placeholder:!0,i:t};l=(0,r.moveElement)(l,h,e,n,!0,d,(0,r.compactType)(this.props),c,u),this.props.onDrag(l,s,h,p,o,a),this.setState({layout:u?l:(0,r.compact)(l,(0,r.compactType)(this.props),c),activeDrag:p})})),u(this,"onDragStop",((t,e,n,i)=>{let{e:o,node:a}=i;if(!this.state.activeDrag)return;const{oldDragItem:s}=this.state;let{layout:l}=this.state;const{cols:c,preventCollision:u,allowOverlap:d}=this.props,h=(0,r.getLayoutItem)(l,t);if(!h)return;l=(0,r.moveElement)(l,h,e,n,!0,u,(0,r.compactType)(this.props),c,d);const p=d?l:(0,r.compact)(l,(0,r.compactType)(this.props),c);this.props.onDragStop(p,s,h,null,o,a);const{oldLayout:f}=this.state;this.setState({activeDrag:null,layout:p,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(p,f)})),u(this,"onResizeStart",((t,e,n,i)=>{let{e:o,node:a}=i;const{layout:s}=this.state,l=(0,r.getLayoutItem)(s,t);l&&(this.setState({oldResizeItem:(0,r.cloneLayoutItem)(l),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(s,l,l,null,o,a))})),u(this,"onResize",((t,e,n,i)=>{let{e:o,node:a,size:s,handle:l}=i;const{oldResizeItem:c}=this.state,{layout:u}=this.state,{cols:d,preventCollision:h,allowOverlap:p}=this.props;let f,m,g,v=!1;const[y,b]=(0,r.withLayoutItem)(u,t,(t=>{let i;if(m=t.x,g=t.y,-1!==["sw","w","nw","n","ne"].indexOf(l)&&(-1!==["sw","nw","w"].indexOf(l)&&(m=t.x+(t.w-e),e=t.x!==m&&m<0?t.w:e,m=m<0?0:m),-1!==["ne","n","nw"].indexOf(l)&&(g=t.y+(t.h-n),n=t.y!==g&&g<0?t.h:n,g=g<0?0:g),v=!0),h&&!p){i=(0,r.getAllCollisions)(u,{...t,w:e,h:n,x:m,y:g}).filter((e=>e.i!==t.i)).length>0,i&&(g=t.y,n=t.h,m=t.x,e=t.w,v=!1)}return t.w=e,t.h=n,t}));if(!b)return;if(f=y,v){const t=!0;f=(0,r.moveElement)(y,b,m,g,t,this.props.preventCollision,(0,r.compactType)(this.props),d,p)}const x={w:b.w,h:b.h,x:b.x,y:b.y,static:!0,i:t};this.props.onResize(f,c,b,x,o,a),this.setState({layout:p?f:(0,r.compact)(f,(0,r.compactType)(this.props),d),activeDrag:x})})),u(this,"onResizeStop",((t,e,n,i)=>{let{e:o,node:a}=i;const{layout:s,oldResizeItem:l}=this.state,{cols:c,allowOverlap:u}=this.props,d=(0,r.getLayoutItem)(s,t),h=u?s:(0,r.compact)(s,(0,r.compactType)(this.props),c);this.props.onResizeStop(h,l,d,null,o,a);const{oldLayout:p}=this.state;this.setState({activeDrag:null,layout:h,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(h,p)})),u(this,"onDragOver",(e=>{if(e.preventDefault(),e.stopPropagation(),h&&!e.nativeEvent.target?.classList.contains(d))return!1;const{droppingItem:n,onDropDragOver:r,margin:i,cols:a,rowHeight:s,maxRows:l,width:c,containerPadding:u,transformScale:p}=this.props,f=r?.(e);if(!1===f)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const m={...n,...f},{layout:g}=this.state,v=e.currentTarget.getBoundingClientRect(),y=e.clientX-v.left,b=e.clientY-v.top,x={left:y/p,top:b/p,e:e};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:t,top:e}=this.state.droppingPosition;(t!=y||e!=b)&&this.setState({droppingPosition:x})}}else{const e={cols:a,margin:i,maxRows:l,rowHeight:s,containerWidth:c,containerPadding:u||i},n=(0,o.calcXY)(e,b,y,m.w,m.h);this.setState({droppingDOMNode:t.createElement("div",{key:m.i}),droppingPosition:x,layout:[...g,{...m,x:n.x,y:n.y,static:!1,isDraggable:!0}]})}})),u(this,"removeDroppingPlaceholder",(()=>{const{droppingItem:t,cols:e}=this.props,{layout:n}=this.state,i=(0,r.compact)(n.filter((e=>e.i!==t.i)),(0,r.compactType)(this.props),e,this.props.allowOverlap);this.setState({layout:i,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})})),u(this,"onDragLeave",(t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter--,0===this.dragEnterCounter&&this.removeDroppingPlaceholder()})),u(this,"onDragEnter",(t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter++})),u(this,"onDrop",(t=>{t.preventDefault(),t.stopPropagation();const{droppingItem:e}=this.props,{layout:n}=this.state,r=n.find((t=>t.i===e.i));this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(n,r,t)}))}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(t,n){let i;if(n.activeDrag)return null;if((0,e.deepEqual)(t.layout,n.propsLayout)&&t.compactType===n.compactType?(0,r.childrenEqual)(t.children,n.children)||(i=n.layout):i=t.layout,i){return{layout:(0,r.synchronizeLayoutWithChildren)(i,t.children,t.cols,(0,r.compactType)(t),t.allowOverlap),compactType:t.compactType,children:t.children,propsLayout:t.layout}}return null}shouldComponentUpdate(t,n){return this.props.children!==t.children||!(0,r.fastRGLPropsEqual)(this.props,t,e.deepEqual)||this.state.activeDrag!==n.activeDrag||this.state.mounted!==n.mounted||this.state.droppingPosition!==n.droppingPosition}componentDidUpdate(t,e){if(!this.state.activeDrag){const t=this.state.layout,n=e.layout;this.onLayoutMaybeChanged(t,n)}}containerHeight(){if(!this.props.autoSize)return;const t=(0,r.bottom)(this.state.layout),e=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+2*e+"px"}onLayoutMaybeChanged(t,n){n||(n=this.state.layout),(0,e.deepEqual)(n,t)||this.props.onLayoutChange(t)}placeholder(){const{activeDrag:e}=this.state;if(!e)return null;const{width:n,cols:r,margin:i,containerPadding:o,rowHeight:s,maxRows:l,useCSSTransforms:c,transformScale:u}=this.props;return t.createElement(a.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder "+(this.state.resizing?"placeholder-resizing":""),containerWidth:n,cols:r,margin:i,containerPadding:o||i,maxRows:l,rowHeight:s,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:c,transformScale:u},t.createElement("div",null))}processGridItem(e,n){if(!e||!e.key)return;const i=(0,r.getLayoutItem)(this.state.layout,String(e.key));if(!i)return null;const{width:o,cols:s,margin:l,containerPadding:c,rowHeight:u,maxRows:d,isDraggable:h,isResizable:p,isBounded:f,useCSSTransforms:m,transformScale:g,draggableCancel:v,draggableHandle:y,resizeHandles:b,resizeHandle:x}=this.props,{mounted:_,droppingPosition:w}=this.state,S="boolean"==typeof i.isDraggable?i.isDraggable:!i.static&&h,k="boolean"==typeof i.isResizable?i.isResizable:!i.static&&p,C=i.resizeHandles||b,E=S&&f&&!1!==i.isBounded;return t.createElement(a.default,{containerWidth:o,cols:s,margin:l,containerPadding:c||l,maxRows:d,rowHeight:u,cancel:v,handle:y,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:S,isResizable:k,isBounded:E,useCSSTransforms:m&&_,usePercentages:!_,transformScale:g,w:i.w,h:i.h,x:i.x,y:i.y,i:i.i,minH:i.minH,minW:i.minW,maxH:i.maxH,maxW:i.maxW,static:i.static,droppingPosition:n?w:void 0,resizeHandles:C,resizeHandle:x},e)}render(){const{className:e,style:i,isDroppable:o,innerRef:a}=this.props,s=(0,n.default)(d,e),l={height:this.containerHeight(),...i};return t.createElement("div",{ref:a,className:s,style:l,onDrop:o?this.onDrop:r.noop,onDragLeave:o?this.onDragLeave:r.noop,onDragEnter:o?this.onDragEnter:r.noop,onDragOver:o?this.onDragOver:r.noop},t.Children.map(this.props.children,(t=>this.processGridItem(t))),o&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}return uW.default=p,u(p,"displayName","ReactGridLayout"),u(p,"propTypes",s.default),u(p,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:r.noop,onDragStart:r.noop,onDrag:r.noop,onDragStop:r.noop,onResizeStart:r.noop,onResize:r.noop,onResizeStop:r.noop,onDrop:r.noop,onDropDragOver:r.noop}),uW}var WV,VV,YV={},qV={};function XV(){if(WV)return qV;WV=1,Object.defineProperty(qV,"__esModule",{value:!0}),qV.findOrGenerateResponsiveLayout=function(n,r,i,o,a,s){if(n[i])return(0,t.cloneLayout)(n[i]);let l=n[o];const c=e(r),u=c.slice(c.indexOf(i));for(let t=0,e=u.length;t<e;t++){const e=u[t];if(n[e]){l=n[e];break}}return l=(0,t.cloneLayout)(l||[]),(0,t.compact)((0,t.correctBounds)(l,{cols:a}),s,a)},qV.getBreakpointFromWidth=function(t,n){const r=e(t);let i=r[0];for(let e=1,o=r.length;e<o;e++){const o=r[e];n>t[o]&&(i=o)}return i},qV.getColsFromBreakpoint=function(t,e){if(!e[t])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+t+" is missing!");return e[t]},qV.sortBreakpoints=e;var t=YW();function e(t){return Object.keys(t).sort((function(e,n){return t[e]-t[n]}))}return qV}function UV(){if(VV)return YV;VV=1,Object.defineProperty(YV,"__esModule",{value:!0}),YV.default=void 0;var t=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var a=i?Object.getOwnPropertyDescriptor(t,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(i),e=s(qt()),n=FW,r=YW(),o=XV(),a=s(HV());function s(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c.apply(this,arguments)}function u(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d=t=>Object.prototype.toString.call(t);function h(t,e){return null==t?null:Array.isArray(t)?t:t[e]}class p extends t.Component{constructor(){super(...arguments),u(this,"state",this.generateInitialState()),u(this,"onLayoutChange",(t=>{this.props.onLayoutChange(t,{...this.props.layouts,[this.state.breakpoint]:t})}))}generateInitialState(){const{width:t,breakpoints:e,layouts:n,cols:r}=this.props,i=(0,o.getBreakpointFromWidth)(e,t),a=(0,o.getColsFromBreakpoint)(i,r),s=!1===this.props.verticalCompact?null:this.props.compactType;return{layout:(0,o.findOrGenerateResponsiveLayout)(n,e,i,i,a,s),breakpoint:i,cols:a}}static getDerivedStateFromProps(t,e){if(!(0,n.deepEqual)(t.layouts,e.layouts)){const{breakpoint:n,cols:r}=e;return{layout:(0,o.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,n,n,r,t.compactType),layouts:t.layouts}}return null}componentDidUpdate(t){this.props.width==t.width&&this.props.breakpoint===t.breakpoint&&(0,n.deepEqual)(this.props.breakpoints,t.breakpoints)&&(0,n.deepEqual)(this.props.cols,t.cols)||this.onWidthChange(t)}onWidthChange(t){const{breakpoints:e,cols:n,layouts:i,compactType:a}=this.props,s=this.props.breakpoint||(0,o.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),l=this.state.breakpoint,c=(0,o.getColsFromBreakpoint)(s,n),u={...i};if(l!==s||t.breakpoints!==e||t.cols!==n){l in u||(u[l]=(0,r.cloneLayout)(this.state.layout));let t=(0,o.findOrGenerateResponsiveLayout)(u,e,s,l,c,a);t=(0,r.synchronizeLayoutWithChildren)(t,this.props.children,c,a,this.props.allowOverlap),u[s]=t,this.props.onLayoutChange(t,u),this.props.onBreakpointChange(s,c),this.setState({breakpoint:s,layout:t,cols:c})}const d=h(this.props.margin,s),p=h(this.props.containerPadding,s);this.props.onWidthChange(this.props.width,d,c,p)}render(){const{breakpoint:e,breakpoints:n,cols:r,layouts:i,margin:o,containerPadding:s,onBreakpointChange:l,onLayoutChange:u,onWidthChange:d,...p}=this.props;return t.createElement(a.default,c({},p,{margin:h(o,this.state.breakpoint),containerPadding:h(s,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}return YV.default=p,u(p,"propTypes",{breakpoint:e.default.string,breakpoints:e.default.object,allowOverlap:e.default.bool,cols:e.default.object,margin:e.default.oneOfType([e.default.array,e.default.object]),containerPadding:e.default.oneOfType([e.default.array,e.default.object]),layouts(t,e){if("[object Object]"!==d(t[e]))throw new Error("Layout property must be an object. Received: "+d(t[e]));Object.keys(t[e]).forEach((e=>{if(!(e in t.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,r.validateLayout)(t.layouts[e],"layouts."+e)}))},width:e.default.number.isRequired,onBreakpointChange:e.default.func,onLayoutChange:e.default.func,onWidthChange:e.default.func}),u(p,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:r.noop,onLayoutChange:r.noop,onWidthChange:r.noop}),YV}var ZV,GV,KV={},JV=yt(_g);function QV(){if(ZV)return KV;ZV=1,Object.defineProperty(KV,"__esModule",{value:!0}),KV.default=function(i){var o;return o=class extends t.Component{constructor(){super(...arguments),l(this,"state",{width:1280}),l(this,"elementRef",t.createRef()),l(this,"mounted",!1),l(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new n.default((t=>{if(this.elementRef.current instanceof HTMLElement){const e=t[0].contentRect.width;this.setState({width:e})}}));const t=this.elementRef.current;t instanceof HTMLElement&&this.resizeObserver.observe(t)}componentWillUnmount(){this.mounted=!1;const t=this.elementRef.current;t instanceof HTMLElement&&this.resizeObserver.unobserve(t),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:e,...n}=this.props;return e&&!this.mounted?t.createElement("div",{className:(0,r.default)(this.props.className,c),style:this.props.style,ref:this.elementRef}):t.createElement(i,s({innerRef:this.elementRef},n,this.state))}},l(o,"defaultProps",{measureBeforeMount:!1}),l(o,"propTypes",{measureBeforeMount:e.default.bool}),o};var t=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(i),e=o(qt()),n=o(JV),r=o(jW());function o(t){return t&&t.__esModule?t:{default:t}}function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s.apply(this,arguments)}function l(t,e,n){return e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const c="react-grid-layout";return KV}var tY=vt((GV||(GV=1,function(t){t.exports=HV().default,t.exports.utils=YW(),t.exports.calculateUtils=UW(),t.exports.Responsive=UV().default,t.exports.Responsive.utils=XV(),t.exports.WidthProvider=QV().default}(cW)),cW.exports)),eY={layoutContainer:"DashboardLayout-module_layoutContainer__wOGEu",addNewComponent:"DashboardLayout-module_addNewComponent__Gan9z",plusIcon:"DashboardLayout-module_plusIcon__yQQHP",gridItem:"DashboardLayout-module_gridItem__NtXI-"};const nY=({dashboards:n})=>{const[r,o]=i.useState(window.innerWidth),[a,s]=i.useState([]),[c,u]=i.useState(n||[]);l((()=>{const t=()=>o(window.innerWidth);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[]),l((()=>{const t=JSON.parse(localStorage.getItem("dashboardLayout")||"[]"),e=c.map((t=>t.id)),n=t.filter((t=>e.includes(t.i)));if(console.log("existDashboardItems",n),n.length>0)return s(n)}),[c]);const d=t=>{localStorage.setItem("dashboardLayout",JSON.stringify(t))};return t("div",{className:eY.layoutContainer,children:t(tY,{className:eY.gridLayout,layout:a,width:r,cols:8,onLayoutChange:t=>{d(t)},draggableHandle:".dragHandle",children:a.map((n=>t("div",{className:eY.gridItem,onClick:()=>{console.log(n)},children:"addNewComponent"!==n.i?t(dm,{chartProps:{type:"bar",data:c.find((t=>t.id===n.i))?.data,options:c.find((t=>t.id===n.i))?.options},headerProps:{content:"Title",suffix:t(Ua,{name:"cog",className:eY.dragHandle})}}):e(j,{className:eY.addNewComponent,direction:"vertical",alignment:"center",dimensionX:"fill",gap:15,dimensionY:"fill",children:[t(Ua,{name:"plus",className:eY.plusIcon}),t(W,{size:"xlarge",children:" New Component"})]})},n.i)))})})};var rY="MenuGroup-module_container__VQaFb",iY="MenuGroup-module_menuSection__Nfvar",oY="MenuGroup-module_label__5skIC",aY="MenuGroup-module_noDivider__7fIo3";var sY,lY=a((({options:n={},showDivider:r=!0,showTitle:i=!0,...o})=>t(j,{dimensionX:160,direction:"vertical",gap:0,alignment:"leftCenter",className:rY,...o,children:Object.entries(n).map((([n,o],a,s)=>e(j,{dimensionX:"fill",direction:"vertical",gap:10,alignment:"leftCenter",className:`${iY} ${r&&a!==s.length-1?"":aY}`,children:[i&&t(W,{className:oY,children:o.label}),o.value]},n)))}))),cY={container:"SideBar-module_container__eK6uD",menuContainer:"SideBar-module_menuContainer__KZqBy",menu:"SideBar-module_menu__yA1Q8",menuItem:"SideBar-module_menuItem__XWNWi",active:"SideBar-module_active__oWYcQ",versionControl:"SideBar-module_versionControl__sqQmv"},uY="Navigator-module_navigation__plbK8",dY="Navigator-module_items__IjEtG",hY="Navigator-module_header__UiUm-",pY="Navigator-module_title__tD475",fY="Navigator-module_icon__a-igT",mY="Navigator-module_content__-CdNj",gY="Navigator-module_ungrouped__4Hmi2";!function(t){t.camelToKebab=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.deepCopy=t=>JSON.parse(JSON.stringify(t)),t.capitalize=t=>t.charAt(0).toUpperCase()+t.slice(1)}(sY||(sY={}));const vY=({header:e})=>t(B,{dimensionX:"fill",mode:"fill",alignment:"leftCenter",root:{children:t(W,{className:pY,children:e?.name}),alignment:"leftCenter"},suffix:{children:e?.buttons?.map(((e,n)=>t(ys,{variant:"text",color:"transparent",className:fY,onClick:e.onClick,children:t(Ua,{name:e.icon,size:"lg"})},n)))},className:hY});var yY=a((({header:r,items:i,button:o})=>{const{grouped:a,ungrouped:s}=(t=>{const e=new Map,n=[];return t.forEach((t=>{t.category?(e.has(t.category)||e.set(t.category,[]),e.get(t.category).push(t)):n.push(t)})),{grouped:Array.from(e.values()),ungrouped:n}})(i),l=a?.map(((r,i)=>({title:sY.capitalize(r[0].category),content:t(n,{children:r.map(((e,n)=>t(TD,{label:e?.title,prefix:{children:t(Ua,{name:e?.icon})},prefixIcon:e?.icon,suffixIcons:[{name:"dragHorizontalVariant"},{name:"dotsVertical"}]})))}),icon:e(n,{children:[t(Ua,{name:"dragHorizontalVariant"}),t(Ua,{name:"dotsVertical"})]})})));return e("div",{className:uY,children:[t(vY,{header:r}),e("div",{className:dY,children:[t(MD,{items:l,headerClassName:hY,contentClassName:mY,gap:0}),s?.map(((e,n)=>t(TD,{label:e?.title,prefixIcon:e?.icon,suffixIcons:[{name:"dragHorizontalVariant"},{name:"dotsVertical"}],className:gY})))]}),o&&e(ys,{color:"transparent",variant:"text",children:[t(Ua,{name:o.icon}),t(W,{children:o.title})]})]})}));const bY=({menuItems:n,navigatorItems:r,logo:i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAqnSURBVHgB7Vp7cBT1Hf/s7t1ecu9HLo9LQl7mQSMwgLysKBVRBGmJdajjo9J2fDNqHQbbwZnCwFgaay1iO0JbtdYHteOo1JI61oqRQNEipaBI4PIyyeXyuuRyl7u93dvtdzcJhhBqh9tQ/7jPzE6S3+7vt7/Pft/fX4A00kgjjTTSYEavVJ9JGVP9ApYupbq62hgMWm/MzMy7z2CwzpBl2cqyBkaWEwrDGPoEIXRElkOPB4MH/j46R4WMKcBUER6V1hK2sND+ktHoXiOKEUVRpLF7505gjDAarYjFOh8LBN7eSEMcXUnojKkgrEpIzstbutxsnlZH0pPxJeoqCCJYliHCRk2qJpOTHRz8pLK398PT9Kcyeum2OT2hkpLLym5+nOe9dfG4RpbFBLLKuO2TemPp0jmYObOIWCn0rMIKQr9ktZafLClZsxI6Q08Jq2spZWXf2ZpIiBtJf2VoBEagSlAQJEhSArm5Lpw61QGn04F4XMDBQzsRHoxi2TU/pDHr2BSZ4zJpfvTq1tY99dBJvfUkzBUVXb1AUXIbZDl2FlmOY9HREcTdd69GaWkB7r13NQ4ePI439+zHjqdeQU5ODugjwWo1axIfB9lodLIDA/XOUKgpAh1IG6APVHJJli1pEMU+afy6qmS7uvrgP/UC8guLNfI/3fYCLOYM/OvIKXQF6+DLuw55eQUTyWrTE4mQ5HYv/pQI50MH6GbDxcXXb04k+tUdn/URBwaGUbvtDmSYzUiICRw6dBx9vWFs2fIsqXU7Vq9ej9tv/xbZ9eR+iaG4JYrDvqysxVdhxHOnBL0IywyT/SgziYFEo8O4fFEFSdqAzIwMjWBt7X1YuHCmJv3jx/yYPbsCopgcMTCyaUxYSJZF2Wr1PQ8dVFoXwk5n9SxZFtjxdjumniQh4iCRcxrW/l56zSLMm/cDfPxxIwwGDj6fC0NDw0SepkpJMNd+Awj3q7Zw1j4ZxlQMeK1IESmriAqnc9Z60rzLx4dLmy0TN6yYg5ONAZJyAkuuqoTN4UW+Lwtbt/6cVJhHT48fJ068hTVrNsDMZ5AxJME+ux1MSQWUPW8C5i/4KUoSGRlyfTQa8CMF6CJhjrNcOTETjETi+OOfDmiq2hUM4cGHdmKwvxtz51aiu+cQXn55C2nBZ7hh1cOwWVwAbwT7ZC0ZPan08kVgbr0VGB4+s55K2GBwL0WK0MVLcxyXPYmH1cj+6JEarF+/Bi2twygpW4X6D15E1fQiCk8+yqhK4HBUk2Prh9Xugu3274J59reQ124D+igKkaMbn6XQK8qQInRRabu9agP9sE0cl2mzdlsGXO5cLFv2IFqbn0eC7NmTlY1srwtuTyEqKwrxhxc3Q81TDh3rhGH/P0g9YqA885z3kJQbIxH/bqQAnSScEZakmG/ieGw4hl/tuBsOdxHmXXYJ+khqQYrJvT1B5OTlY+0dy0nKPKmqkbKsuZSEvEqe3DhCdpIwRf6vHylCF8KC0HeC48xVE8fVsBMKhWG2JUk7ec2uK6um4513GshZtZFmmLWPUPfXI9i79zB8+V4kk/KkZFmWI+fX+yFShB6EGUEI77ZYbDWqYxkPQZARJSmr9k2FAaw2G9xZXtx8Sw19iCHcf/+T2PPmPvLyduTmZY2QPS94WmfwHaQIPby0wnH+vVTYn3NDJRoKxWHiFYrDJDVZoDQzoN0TKXf+5PhnpL1qWcidN9MaewfP89Lg4OmUQpIKXcJST09PJJmMHqF9nSVin8+Dmm/XUrLxIKnxR4hERQTaW3Go4QNEIwM4duwV3HPPTZR4xL7kDYwSjwd/DR2KHb2qJdblmlvgcExvlaSIgnPqX0WTYiAQwuZNN1Py4ca0aVkUiqyYNWsO2fdCZGeftzaQed7ONjW9oK6pNReQAnTLpUOhw20sm3gDk3Qn1BSyu7uXSCfw1NNvkaor2Fv3MQyMqE4l0jO0MWaSZJxycDYW670HIyE05T6Xnh0Prqnp1Rqj0TE8UbUDgX689trPSHX3Y/Wq+VQ4VFDqaQbLcZpTW/u9lbj00hKqiaNob++kRCSkNQvoI0gMw/0zENi7Ezq1efSqh1WoJI3Nzb93VFTcmYhGg7RZVlu/qqoAy5cvRE/vIOKxYS3JSAiCVjAkk0ncWHOlVie//faTFKYGcPToKc3mP/qoNfzuu7XzRtdXCaes0lPRxFNJSqWl3/9cFAfyyX6V7u4g+/77O7FgQTVOnvwcb/3lgBaCjh09gg2P3IlPPm3FG6/X46WXf0KVVQIcxW9KV9WmnsKM1Irh9vb25woLCx+i39UUTMQFYqratBrp/PxvPmoyubckk0Nya2sT6ut3sYsXX0Z9rSRVghK6gwOoqzuIEsqrr102nxKTCBh2UitTW2QKb+RbTCZTSvn0VDbizzTUfb7rNpvNOevaO7rca25agKeffhgKw4I3Zci8wcCSv9I+wJkMi4SqtTopu2JI2mo8HwqHkzzHJu1OlwkpYMqPNjB6+qBeTmexMxrNrJLlobJf/uLH+atuuHa9KcPkHSbHJYgiVYi8NiFJGiDLSaq2ElpIUzslbrdzYPPWbUU7duyIIoXOx8UgPPF9Y95Wc0ArV650zZg+fdbsuXMvHxgMTS8uLsrx5eYa/M0ticFQqCPQ1f1hIBis2759exum6DTiYuOifnS9Tx7+K0g9GbrY8demTZsuyqnhGKbsRZ2dnWbw1mlIxIsHwoMl5GWnUSeukMKOLxqNZFHoIefD9FP11JWUEp10AtGW481uoQ5liyiKLaWlpd3Q8UxpDHomHmdh165dca/X275o0aIYVTp9Hk92K0nUY2cYhyx7zOSJWco1BArHESRN/Qbe2JNIxLr9fn9Pf3//EKaAbBoXCOY8v1/oPOZ/eP6CkWoTTzUJOTf36ytMpoLqWKz9M4ykfkpmpm+a2eypYllPkd3upoPukKqmWonncHztakHoaR5dg57fpHg8idvM5lwTHYh34IvYzZJZWFi2qCKR6O2DDmqeqg1LJSW3vSeKsQKe5+Iu16zfnD79jFe9YbMVb7NYLllFvSiyXbbaZMq9MhBo2O/z+TLs9uv/Njj46Vh9K5aX9yQladphg8E2z2IpqW1re/WR0fXlzMwldQ6H64rTp0/oIuGUwxLD8HMUJfTnSOTwilGyZnWciiAhEml+zO9/7lJB6NgpSYYHaFjp7GQVahKMTZdzcpZspQPwfc3Nu+fn558yjpIdO0RnqXV0RTze82+vd95y6LDfVBcwhsMNBSTP2S7XkrbS0rVHaWz0uEAMW60lj1VUPKBYLMV3MkzbOkxqh0p5NNp0QL23b98+afQZ7d8k8vOX3CUIAwdFsWujxVL+DL4CDQCJ44o2RKNHa/z+31GhY5lJB6cZ2sIsZyMiTzQ2NvCNjc9w3d3Nk9kgI0mJ3Q7HDLXsUwoKrluXmzt/xeg92WDwbeR5a57ZXLmdrK8oK6vSluqeU7Vh6ibaL3E4VoS8XrUt2/k40BIfucWTQ+SygP1jtav2Lzw+n8xQ4/7MAn19B193OIrfKy9fpySTseGhoSH6aGA8nopKk8mT19i4Q9tjWdkt7xqNhU8AJ+/C/xHsecbGe/+JkWDsIxsn/M1MeH7sJz/u2cnWSyONNNJII4000kgjjTQuAv4Dj7JlSDf/PtsAAAAASUVORK5CYII=",footer:o})=>{const[a,s]=u(0);return e("div",{className:cY.container,children:[e("div",{className:cY.menuContainer,children:[t("div",{className:cY.logo,children:t("img",{src:i,alt:"logo"})}),t("div",{className:cY.menu,children:n?.map(((e,n)=>t("div",{className:`${cY.menuItem} ${a===n?cY.active:""}`,onClick:()=>(t=>{s(t)})(n),children:t(Ua,{name:e.icon})},n)))}),o||t(Ua,{name:"forkRight",size:"lg",className:cY.versionControl})]}),t(yY,{header:n?.[a]?.header,items:r?.[n[a]?.id]})]})};var xY="StorageFileSelect-module_container__nWScU",_Y="StorageFileSelect-module_content__mO7ei",wY="StorageFileSelect-module_file__BQW2b",SY={inputContainer:"StorageModalHeading-module_inputContainer__-sj7l"},kY={};const CY=[{label:"Name (Descending)",key:"name_desc"},{label:"Name (Ascending)",key:"name_asc"},{label:"Date (Descending)",key:"date_desc"},{label:"Date (Ascending)",key:"date_asc"}];var EY=a((({onClick:e})=>t(j,{className:kY.container,direction:"vertical",alignment:"leftCenter",children:CY.map((n=>t(V,{label:n.label,onClick:()=>{return t=n.key,void e?.(t);var t}},n.key)))})));var MY=a((({directory:n,fileLength:r=0,folderLength:i=0,onClickSort:o,onChangeDirectory:a,onChangeSearch:s})=>e(j,{dimensionX:"fill",direction:"vertical",gap:20,children:[t(B,{dimensionX:"fill",prefix:{children:t(hA,{directory:n,onChangeDirectory:a})},root:{dimensionX:"fill",alignment:"rightCenter",children:e(j,{gap:10,children:[!!i&&e(W,{children:[i," Folder"]}),!!r&&e(W,{children:[r," File"]})]})}}),t(B,{dimensionX:"fill",prefix:{children:t(G,{dimensionX:400,className:SY.inputContainer,prefix:{children:t(Ua,{name:"magnify"})},inputProps:{placeholder:"Search",className:`${SY.input}`,onChange:t=>s?.(t.target.value)}})},root:{dimensionX:"fill",alignment:"rightCenter",children:e(j,{gap:10,children:[t(dA,{content:t(_R,{}),placement:"bottomEnd",trigger:"click",children:e(ys,{variant:"text",children:[t(Ua,{name:"filter"}),"Filter"]})}),t(dA,{content:t(EY,{onClick:t=>{o?.(t)}}),placement:"bottomEnd",trigger:"click",children:e(ys,{variant:"text",children:[t(Ua,{name:"sort"}),"Sort"]})})]})}})]})));var PY=a((({data:n,onChangeSearch:r,onClickSort:i,onChooseFile:o,isOpen:a=!1})=>{const[s,c]=u(["/"]),[d,h]=u(0),[p,f]=u(0);return l((()=>{}),[n]),e(KA,{isOpen:a,showCloseButton:!1,className:xY,dimensionX:"fill",children:[t(KA.Header,{dimensionY:"hug",root:{dimensionX:"fill",children:t(MY,{fileLength:d,folderLength:p,onClickSort:t=>{i?.(t)},directory:s,onChangeDirectory:t=>{c(s.slice(0,t+1))},onChangeSearch:r})}}),t(KA.Body,{gap:12,className:_Y,children:n.map((e=>t(lD,{onClick:()=>{return t=e,void o?.(t);var t},dimensionX:"fill",dimensionY:"fill",file:e,className:wY},e._id)))})]})})),OY="Array-module_inputMinimized__N3CzD",TY="Array-module_contentContainer__Nf98X",NY="Array-module_value__X6PGp",AY={container:"ArrayInput-module_container__pCN6T"},DY="String-module_icon__pKB1k",LY="String-module_text__-rE-j",IY="String-module_select__G6d9c",zY="String-module_baseInput__ieBad",RY="String-module_input__sXbRz";var FY=a((({label:e,description:n,value:r,options:i,onChange:o,selectProps:a,inputProps:l,inputContainerClassName:c,...d})=>{const h=s(null),p=s(null),[f,m]=u(!1);return t(dt,{dimensionX:"fill",description:n,forceFocus:f,onFocusChange:t=>(t=>{h?.current?.toggleDropdown(t),m(t),t&&!i&&p.current?.focus()})(t),labelProps:{dimensionX:"hug",divider:!0,prefix:{children:t(Ua,{className:DY,name:"formatQuoteClose"})},root:{dimensionX:"hug",children:t(W,{className:LY,size:"medium",children:e})}},inputContainerProps:{className:`${zY} ${c}`},...d,children:i?t(ID,{selectRef:h,disableClick:!0,options:i,value:r,placeholder:"",onChange:t=>{o?.(t),m(!1)},...a,className:`${IY} ${a?.className}`}):t(Z,{ref:p,value:r,onChange:t=>o?.(t.target.value),...l,className:`${RY} ${l?.className}`})})})),$Y="Number-module_icon__o1inF",jY="Number-module_text__S4l2F",BY="Number-module_select__NRfCp",HY="Number-module_baseInput__uueTo",WY="Number-module_input__m1vMZ";var VY=a((({label:e,description:n,value:r,options:i,onChange:o,selectProps:a,inputProps:l,inputContainerClassName:c,...d})=>{const h=s(null),p=s(null),[f,m]=u(!1);return t(dt,{dimensionX:"fill",description:n,forceFocus:f,onFocusChange:t=>(t=>{h?.current?.toggleDropdown(t),m(t),t&&!i&&p.current?.focus()})(t),labelProps:{dimensionX:"hug",divider:!0,prefix:{children:t(Ua,{className:$Y,name:"numericBox"})},root:{dimensionX:"hug",children:t(W,{className:jY,size:"medium",children:e})}},inputContainerProps:{className:`${HY} ${c}`},...d,children:i?t(ID,{selectRef:h,disableClick:!0,options:i,value:r,placeholder:"",onChange:t=>{o?.(t),m(!1)},...a,className:`${BY} ${a?.className}`}):t(Z,{ref:p,value:r,type:"number",onChange:t=>o?.(Number(t.target.value)),...l,className:`${WY} ${l?.className}`})})})),YY="TextArea-module_container__VXi9C",qY="TextArea-module_titleContainer__l1CD0",XY="TextArea-module_textAreaInput__iYLK4",UY="TextArea-module_description__VEpUG";var ZY=a((({value:r,title:i="",icon:o,textAreaProps:a,textAreaContainerProps:s,titleContainerProps:l,titlePrefixProps:c,titleRootProps:u,titleSuffixProps:d,containerProps:h,description:p,placeholder:f,onChange:m})=>e(j,{dimensionX:"fill",alignment:"leftCenter",direction:"vertical",...h,className:`${YY} ${h?.className||""}`,children:[e(n,{children:[(i||o||c||d)&&t(vA,{dimensionX:"fill",dimensionY:36,alignment:"leftCenter",...l,className:`${qY} ${l?.className||""}`,prefix:{children:o?t(Ua,{name:`${o}`}):null,dimensionX:"hug",alignment:"leftCenter",...c},root:{children:i,dimensionX:"fill",alignment:"leftCenter",...u},suffix:{children:d?.children,dimensionX:"hug",alignment:"rightCenter",...d}}),t(j,{dimensionX:"fill",alignment:"leftCenter",...s,className:`${s?.className||""}`,children:t("textarea",{...a,className:XY,value:r,onChange:m,placeholder:f||""})})]}),t(W,{size:"xsmall",className:`${UY}`,children:p})]})));var GY=a((({label:e,description:n,onChange:r,value:i,placeholder:o="",inputContainerClassName:a})=>t(dt,{dimensionX:"fill",alignment:"leftCenter",description:n,labelProps:{prefix:{children:t(Ua,{name:"calendarBlank"})},root:{children:t(W,{children:e})}},inputContainerProps:{dimensionX:"fill",alignment:"leftCenter",className:a},children:t(rA,{placeholder:o,suffixIcon:null,onChange:t=>{r?.(new Date(t))},value:i})}))),KY="Boolean-module_container__RN4yt",JY="Boolean-module_description__v3iuY";var QY=a((({checked:n=!1,disabled:r=!1,label:i,containerProps:o,switchContainerProps:a,suffixProps:s,rootProps:l,labelProps:c,description:u,onChange:d})=>e(j,{dimensionX:"fill",alignment:"leftCenter",direction:"vertical",children:[t(B,{dimensionY:36,dimensionX:"fill",root:{children:t(hD,{checked:n,disabled:r,...a,onChange:d}),...l},suffix:{children:i&&t(W,{...c,children:i}),...s},className:`${o?.className} ${KY}`,...o}),t(W,{size:"xsmall",className:`${JY}`,children:u})]}))),tq={baseInput:"Color-module_baseInput__gWvlQ"};var eq=a((({label:e,description:n,value:r="#000000",labelProps:i,colorContainerProps:o,inputContainerClassName:a,onChange:s,...l})=>t(dt,{dimensionX:"fill",description:n,labelProps:{dimensionX:"hug",divider:!0,prefix:{children:t(Ua,{className:tq.icon,name:"invertColors"})},root:{dimensionX:"hug",children:t(W,{className:tq.text,size:"medium",children:e})},...i},inputContainerProps:{className:`${tq.baseInput} ${a}`},...l,children:t(em,{dimensionX:"fill",value:r,onChange:t=>{s?.(t)},...o})}))),nq={container:"Storage-module_container__jdMaj",top:"Storage-module_top__vhJmX",storage:"Storage-module_storage__aXBhd",previewIcon:"Storage-module_previewIcon__zNCCM",text:"Storage-module_text__8eR8V"};function rq(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const iq=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 oq(t,e,n){const r=function(t){const{name:e}=t;if(e&&-1!==e.lastIndexOf(".")&&!t.type){const n=e.split(".").pop().toLowerCase(),r=iq.get(n);r&&Object.defineProperty(t,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return t}(t),{webkitRelativePath:i}=t,o="string"==typeof e?e:"string"==typeof i&&i.length>0?i:`./${t.name}`;return"string"!=typeof r.path&&aq(r,"path",o),void 0!==n&&Object.defineProperty(r,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),aq(r,"relativePath",o),r}function aq(t,e,n){Object.defineProperty(t,e,{value:n,writable:!1,configurable:!1,enumerable:!0})}const sq=[".DS_Store","Thumbs.db"];function lq(t){return"object"==typeof t&&null!==t}function cq(t){return t.filter((t=>-1===sq.indexOf(t.name)))}function uq(t){if(null===t)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n];e.push(r)}return e}function dq(t){if("function"!=typeof t.webkitGetAsEntry)return pq(t);const e=t.webkitGetAsEntry();return e&&e.isDirectory?mq(e):pq(t,e)}function hq(t){return t.reduce(((t,e)=>[...t,...Array.isArray(e)?hq(e):[e]]),[])}function pq(t,e){return rq(this,void 0,void 0,(function*(){var n;if(globalThis.isSecureContext&&"function"==typeof t.getAsFileSystemHandle){const e=yield t.getAsFileSystemHandle();if(null===e)throw new Error(`${t} is not a File`);if(void 0!==e){const t=yield e.getFile();return t.handle=e,oq(t)}}const r=t.getAsFile();if(!r)throw new Error(`${t} is not a File`);return oq(r,null!==(n=null==e?void 0:e.fullPath)&&void 0!==n?n:void 0)}))}function fq(t){return rq(this,void 0,void 0,(function*(){return t.isDirectory?mq(t):function(t){return rq(this,void 0,void 0,(function*(){return new Promise(((e,n)=>{t.file((n=>{const r=oq(n,t.fullPath);e(r)}),(t=>{n(t)}))}))}))}(t)}))}function mq(t){const e=t.createReader();return new Promise(((t,n)=>{const r=[];!function i(){e.readEntries((e=>rq(this,void 0,void 0,(function*(){if(e.length){const t=Promise.all(e.map(fq));r.push(t),i()}else try{const e=yield Promise.all(r);t(e)}catch(t){n(t)}}))),(t=>{n(t)}))}()}))}var gq,vq={};var yq=(gq||(gq=1,vq.__esModule=!0,vq.default=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(",");if(0===n.length)return!0;var r=t.name||"",i=(t.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?r.toLowerCase().endsWith(e):e.endsWith("/*")?o===e.replace(/\/.*$/,""):i===e}))}return!0}),vq),bq=vt(yq);function xq(t){return function(t){if(Array.isArray(t))return Eq(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Cq(t)||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 _q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wq(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_q(Object(n),!0).forEach((function(e){Sq(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_q(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Sq(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kq(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||Cq(t,e)||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 Cq(t,e){if(t){if("string"==typeof t)return Eq(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Eq(t,e):void 0}}function Eq(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Mq="function"==typeof bq?bq:bq.default,Pq=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),e=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:"file-invalid-type",message:"File type must be ".concat(e)}},Oq=function(t){return{code:"file-too-large",message:"File is larger than ".concat(t," ").concat(1===t?"byte":"bytes")}},Tq=function(t){return{code:"file-too-small",message:"File is smaller than ".concat(t," ").concat(1===t?"byte":"bytes")}},Nq={code:"too-many-files",message:"Too many files"};function Aq(t,e){var n="application/x-moz-file"===t.type||Mq(t,e);return[n,n?null:Pq(e)]}function Dq(t,e,n){if(Lq(t.size))if(Lq(e)&&Lq(n)){if(t.size>n)return[!1,Oq(n)];if(t.size<e)return[!1,Tq(e)]}else{if(Lq(e)&&t.size<e)return[!1,Tq(e)];if(Lq(n)&&t.size>n)return[!1,Oq(n)]}return[!0,null]}function Lq(t){return null!=t}function Iq(t){return"function"==typeof t.isPropagationStopped?t.isPropagationStopped():void 0!==t.cancelBubble&&t.cancelBubble}function zq(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,(function(t){return"Files"===t||"application/x-moz-file"===t})):!!t.target&&!!t.target.files}function Rq(t){t.preventDefault()}function Fq(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.some((function(e){return!Iq(t)&&e&&e.apply(void 0,[t].concat(r)),Iq(t)}))}}function $q(t){return"audio/*"===t||"video/*"===t||"image/*"===t||"text/*"===t||"application/*"===t||/\w+\/[-+.\w]+/g.test(t)}function jq(t){return/^.*\.[\w]+$/.test(t)}var Bq=["children"],Hq=["open"],Wq=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Vq=["refKey","onChange","onClick"];function Yq(t){return function(t){if(Array.isArray(t))return Uq(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Xq(t)||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 qq(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||Xq(t,e)||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 Xq(t,e){if(t){if("string"==typeof t)return Uq(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uq(t,e):void 0}}function Uq(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zq(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gq(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zq(Object(n),!0).forEach((function(e){Kq(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zq(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kq(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jq(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var Qq=h((function(t,e){var n=t.children,r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Gq(Gq({},tX),t),n=e.accept,r=e.disabled,i=e.getFilesFromEvent,a=e.maxSize,u=e.minSize,d=e.multiple,h=e.maxFiles,p=e.onDragEnter,f=e.onDragLeave,m=e.onDragOver,g=e.onDrop,v=e.onDropAccepted,y=e.onDropRejected,b=e.onFileDialogCancel,x=e.onFileDialogOpen,_=e.useFsAccessApi,w=e.autoFocus,k=e.preventDropOnDocument,C=e.noClick,E=e.noKeyboard,M=e.noDrag,P=e.noDragEventsBubbling,O=e.onError,T=e.validator,N=o((function(){return function(t){if(Lq(t))return Object.entries(t).reduce((function(t,e){var n=kq(e,2),r=n[0],i=n[1];return[].concat(xq(t),[r],xq(i))}),[]).filter((function(t){return $q(t)||jq(t)})).join(",")}(n)}),[n]),A=o((function(){return function(t){return Lq(t)?[{description:"Files",accept:Object.entries(t).filter((function(t){var e=kq(t,2),n=e[0],r=e[1],i=!0;return $q(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.')),i=!1),Array.isArray(r)&&r.every(jq)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i})).reduce((function(t,e){var n=kq(e,2),r=n[0],i=n[1];return wq(wq({},t),{},Sq({},r,i))}),{})}]:t}(n)}),[n]),D=o((function(){return"function"==typeof x?x:iX}),[x]),L=o((function(){return"function"==typeof b?b:iX}),[b]),I=s(null),z=s(null),R=qq(S(rX,nX),2),F=R[0],$=R[1],j=F.isFocused,B=F.isFileDialogActive,H=s("undefined"!=typeof window&&window.isSecureContext&&_&&"showOpenFilePicker"in window),W=function(){!H.current&&B&&setTimeout((function(){z.current&&(z.current.files.length||($({type:"closeDialog"}),L()))}),300)};l((function(){return window.addEventListener("focus",W,!1),function(){window.removeEventListener("focus",W,!1)}}),[z,B,L,H]);var V=s([]),Y=function(t){I.current&&I.current.contains(t.target)||(t.preventDefault(),V.current=[])};l((function(){return k&&(document.addEventListener("dragover",Rq,!1),document.addEventListener("drop",Y,!1)),function(){k&&(document.removeEventListener("dragover",Rq),document.removeEventListener("drop",Y))}}),[I,k]),l((function(){return!r&&w&&I.current&&I.current.focus(),function(){}}),[I,w,r]);var q=c((function(t){O?O(t):console.error(t)}),[O]),X=c((function(t){t.preventDefault(),t.persist(),at(t),V.current=[].concat(Yq(V.current),[t.target]),zq(t)&&Promise.resolve(i(t)).then((function(e){if(!Iq(t)||P){var n=e.length,r=n>0&&function(t){var e=t.files,n=t.accept,r=t.minSize,i=t.maxSize,o=t.multiple,a=t.maxFiles,s=t.validator;return!(!o&&e.length>1||o&&a>=1&&e.length>a)&&e.every((function(t){var e=kq(Aq(t,n),1)[0],o=kq(Dq(t,r,i),1)[0],a=s?s(t):null;return e&&o&&!a}))}({files:e,accept:N,minSize:u,maxSize:a,multiple:d,maxFiles:h,validator:T});$({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),p&&p(t)}})).catch((function(t){return q(t)}))}),[i,p,q,P,N,u,a,d,h,T]),U=c((function(t){t.preventDefault(),t.persist(),at(t);var e=zq(t);if(e&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(t){}return e&&m&&m(t),!1}),[m,P]),Z=c((function(t){t.preventDefault(),t.persist(),at(t);var e=V.current.filter((function(t){return I.current&&I.current.contains(t)})),n=e.indexOf(t.target);-1!==n&&e.splice(n,1),V.current=e,e.length>0||($({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),zq(t)&&f&&f(t))}),[I,f,P]),G=c((function(t,e){var n=[],r=[];t.forEach((function(t){var e=qq(Aq(t,N),2),i=e[0],o=e[1],s=qq(Dq(t,u,a),2),l=s[0],c=s[1],d=T?T(t):null;if(i&&l&&!d)n.push(t);else{var h=[o,c];d&&(h=h.concat(d)),r.push({file:t,errors:h.filter((function(t){return t}))})}})),(!d&&n.length>1||d&&h>=1&&n.length>h)&&(n.forEach((function(t){r.push({file:t,errors:[Nq]})})),n.splice(0)),$({acceptedFiles:n,fileRejections:r,isDragReject:r.length>0,type:"setFiles"}),g&&g(n,r,e),r.length>0&&y&&y(r,e),n.length>0&&v&&v(n,e)}),[$,d,N,u,a,h,g,v,y,T]),K=c((function(t){t.preventDefault(),t.persist(),at(t),V.current=[],zq(t)&&Promise.resolve(i(t)).then((function(e){Iq(t)&&!P||G(e,t)})).catch((function(t){return q(t)})),$({type:"reset"})}),[i,G,q,P]),J=c((function(){if(H.current){$({type:"openDialog"}),D();var t={multiple:d,types:A};window.showOpenFilePicker(t).then((function(t){return i(t)})).then((function(t){G(t,null),$({type:"closeDialog"})})).catch((function(t){!function(t){return t instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)}(t)?!function(t){return t instanceof DOMException&&("SecurityError"===t.name||t.code===t.SECURITY_ERR)}(t)?q(t):(H.current=!1,z.current?(z.current.value=null,z.current.click()):q(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."))):(L(t),$({type:"closeDialog"}))}))}else z.current&&($({type:"openDialog"}),D(),z.current.value=null,z.current.click())}),[$,D,L,_,G,q,A,d]),Q=c((function(t){I.current&&I.current.isEqualNode(t.target)&&(" "!==t.key&&"Enter"!==t.key&&32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),J()))}),[I,J]),tt=c((function(){$({type:"focus"})}),[]),et=c((function(){$({type:"blur"})}),[]),nt=c((function(){C||(!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(t){return-1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")}(t)||function(t){return-1!==t.indexOf("Edge/")}(t)}()?J():setTimeout(J,0))}),[C,J]),rt=function(t){return r?null:t},it=function(t){return E?null:rt(t)},ot=function(t){return M?null:rt(t)},at=function(t){P&&t.stopPropagation()},st=o((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,i=t.role,o=t.onKeyDown,a=t.onFocus,s=t.onBlur,l=t.onClick,c=t.onDragEnter,u=t.onDragOver,d=t.onDragLeave,h=t.onDrop,p=Jq(t,Wq);return Gq(Gq(Kq({onKeyDown:it(Fq(o,Q)),onFocus:it(Fq(a,tt)),onBlur:it(Fq(s,et)),onClick:rt(Fq(l,nt)),onDragEnter:ot(Fq(c,X)),onDragOver:ot(Fq(u,U)),onDragLeave:ot(Fq(d,Z)),onDrop:ot(Fq(h,K)),role:"string"==typeof i&&""!==i?i:"presentation"},n,I),r||E?{}:{tabIndex:0}),p)}}),[I,Q,tt,et,nt,X,U,Z,K,E,M,r]),lt=c((function(t){t.stopPropagation()}),[]),ct=o((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,r=t.onChange,i=t.onClick,o=Jq(t,Vq);return Gq(Gq({},Kq({accept:N,multiple:d,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:rt(Fq(r,K)),onClick:rt(Fq(i,lt)),tabIndex:-1},n,z)),o)}}),[z,n,d,K,r]);return Gq(Gq({},F),{},{isFocused:j&&!r,getRootProps:st,getInputProps:ct,rootRef:I,inputRef:z,open:rt(J)})}(Jq(t,Bq)),a=r.open,u=Jq(r,Hq);return y(e,(function(){return{open:a}}),[a]),i.createElement(b,null,n(Gq(Gq({},u),{},{open:a})))}));Qq.displayName="Dropzone";var tX={disabled:!1,getFilesFromEvent:function(t){return rq(this,void 0,void 0,(function*(){return lq(t)&&lq(t.dataTransfer)?function(t,e){return rq(this,void 0,void 0,(function*(){if(t.items){const n=uq(t.items).filter((t=>"file"===t.kind));if("drop"!==e)return n;return cq(hq(yield Promise.all(n.map(dq))))}return cq(uq(t.files).map((t=>oq(t))))}))}(t.dataTransfer,t.type):function(t){return lq(t)&&lq(t.target)}(t)?function(t){return uq(t.target.files).map((t=>oq(t)))}(t):Array.isArray(t)&&t.every((t=>"getFile"in t&&"function"==typeof t.getFile))?function(t){return rq(this,void 0,void 0,(function*(){const e=yield Promise.all(t.map((t=>t.getFile())));return e.map((t=>oq(t)))}))}(t):[]}))},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};Qq.defaultProps=tX,Qq.propTypes={children:Xt.func,accept:Xt.objectOf(Xt.arrayOf(Xt.string)),multiple:Xt.bool,preventDropOnDocument:Xt.bool,noClick:Xt.bool,noKeyboard:Xt.bool,noDrag:Xt.bool,noDragEventsBubbling:Xt.bool,minSize:Xt.number,maxSize:Xt.number,maxFiles:Xt.number,disabled:Xt.bool,getFilesFromEvent:Xt.func,onFileDialogCancel:Xt.func,onFileDialogOpen:Xt.func,useFsAccessApi:Xt.bool,autoFocus:Xt.bool,onDragEnter:Xt.func,onDragLeave:Xt.func,onDragOver:Xt.func,onDrop:Xt.func,onDropAccepted:Xt.func,onDropRejected:Xt.func,onError:Xt.func,validator:Xt.func};var eX=Qq,nX={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function rX(t,e){switch(e.type){case"focus":return Gq(Gq({},t),{},{isFocused:!0});case"blur":return Gq(Gq({},t),{},{isFocused:!1});case"openDialog":return Gq(Gq({},nX),{},{isFileDialogActive:!0});case"closeDialog":return Gq(Gq({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Gq(Gq({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Gq(Gq({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return Gq({},nX);default:return t}}function iX(){}var oX=a((({file:r,label:i,containerProps:o,topContainerProps:a,dropzoneContainerProps:s,description:l,errorMessage:c,helperTextContainerProps:u,helperTextProps:d,onClickShowFileSelect:h,onUpload:p,onDelete:f,onPreview:m})=>{const g={position:"absolute",height:"100%",width:"100%",objectFit:"contain"},v=sD({file:r,styles:{img:g,embed:g}});return e(j,{direction:"vertical",dimensionX:"fill",dimensionY:472,alignment:"top",gap:10,className:`${o?.className}`,children:[e(j,{direction:"vertical",dimensionX:"fill",gap:10,className:`${o?.className} ${nq.container}`,children:[t(vA,{prefix:{children:t(Ua,{name:"storage",className:nq.icon})},root:{children:t(W,{variant:"secondary",children:i})},suffix:{children:a?.hideActions?null:e(n,{children:[t(ys,{variant:"icon",onClick:h,disabled:a?.disableEditIcon,children:a?.editIcon||t(Ua,{name:"pencil"})}),t(ys,{variant:"icon",color:"danger",onClick:t=>{f?.(t)},disabled:a?.disableDeleteIcon,children:a?.deleteIcon||t(Ua,{name:"delete"})})]}),gap:0,...a?.suffix},...a?.container}),t(eX,{multiple:!1,onDrop:t=>{t.length&&p?.(t[0])},children:({getRootProps:i,getInputProps:o})=>t(j,{className:`${s?.container?.className} ${nq.storage}`,alignment:"center",dimensionX:"fill",dimensionY:407,direction:"vertical",gap:10,...i(),...s?.container,onClick:t=>{r?.url?m?.():h?.()},children:e(n,{children:[e(n,r?{children:[v,t(Ua,{name:s?.previewIcon||"filterCenterFocus",size:32,className:nq.previewIcon})]}:{children:[t(Ua,{name:s?.uploadIcon||"storage",size:80}),t(W,{className:nq.text,children:s?.description||e("span",{children:["Upload your file or ",t("br",{})," pick an file from storage"]})})]}),t("input",{...o()})]})})})]}),t(ot.HelperText,{alignment:"leftCenter",dimensionX:"fill",...u,className:`${nq.helperText} ${u?.className}`,children:t(W,{...d,size:"small",variant:c?"danger":"secondary",className:`${d?.className}`,children:c||l})})]})})),aX="MultipleSelection-module_icon__ewhbs",sX="MultipleSelection-module_text__G5mEr",lX="MultipleSelection-module_select__YXbPL",cX="MultipleSelection-module_baseInput__eUWHB";var uX=a((({label:e,description:n,value:r=[],options:i,onChange:o,selectProps:a,inputContainerClassName:l,...c})=>{const d=s(null),[h,p]=u(!1);return t(dt,{dimensionX:"fill",description:n,forceFocus:h,onFocusChange:t=>(t=>{d?.current?.toggleDropdown(t),p(t)})(t),labelProps:{dimensionX:"hug",divider:!0,prefix:{children:t(Ua,{className:aX,name:"formatListChecks"})},root:{dimensionX:"hug",children:t(W,{className:sX,size:"medium",children:e})}},inputContainerProps:{className:`${cX} ${l}`},...c,children:t(ID,{selectRef:d,disableClick:!0,options:i||[],value:r,placeholder:"",multiple:!0,onChange:t=>{o?.(t)},...a,className:`${lX} ${a?.className}`})})})),dX="Location-module_location__ix8Fi",hX="Location-module_icon__a3NfC",pX="Location-module_mapMarker__J3aE2",fX="Location-module_description__mG0kX";var mX=a((({coordinates:n,title:r,onChange:i,description:o,...a})=>e(j,{dimensionX:500,dimensionY:500,gap:10,direction:"vertical",alignment:"leftCenter",...a,className:`${a.className} ${dX}`,children:[t(vA,{prefix:{children:t(Ua,{name:"mapMarker",className:hX})},root:{children:t(W,{variant:"secondary",children:r})}}),t(jA,{coordinates:n,markerIcon:{icon:t(Ua,{name:"mapMarker",size:"lg",className:pX})},onChange:i}),t(W,{size:"xsmall",className:`${fX}`,children:o})]}))),gX="RichText-module_container__MIFsF",vX="RichText-module_description__-uZpI";const yX={},bX={},xX={},_X={},wX={},SX={},kX={},CX={},EX={},MX={},PX={},OX={},TX={},NX={},AX={},DX={},LX={},IX={},zX={},RX={},FX={},$X={},jX={},BX={},HX={},WX={},VX={},YX={},qX={},XX={},UX={},ZX={},GX={},KX={},JX={},QX={},tU={},eU={},nU={},rU={},iU={},oU={},aU={},sU={},lU={},cU="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,uU=cU&&"documentMode"in document?document.documentMode:null,dU=cU&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),hU=cU&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),pU=!(!cU||!("InputEvent"in window)||uU)&&"getTargetRanges"in new window.InputEvent("input"),fU=cU&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),mU=cU&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,gU=cU&&/Android/.test(navigator.userAgent),vU=cU&&/^(?=.*Chrome).*/i.test(navigator.userAgent),yU=cU&&gU&&vU,bU=cU&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!vU,xU=0,_U=1,wU=2,SU=1,kU=2,CU=3,EU=4,MU=5,PU=6,OU=fU||mU||bU?" ":"",TU="\n\n",NU=hU?" ":OU,AU="֑-߿יִ-﷽ﹰ-ﻼ",DU="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",LU=new RegExp("^[^"+DU+"]*["+AU+"]"),IU=new RegExp("^[^"+AU+"]*["+DU+"]"),zU={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},RU={directionless:1,unmergeable:2},FU={center:2,end:6,justify:4,left:1,right:3,start:5},$U={[kU]:"center",[PU]:"end",[EU]:"justify",[SU]:"left",[CU]:"right",[MU]:"start"},jU={normal:0,segmented:2,token:1},BU={[xU]:"normal",[wU]:"segmented",[_U]:"token"};var HU=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){const e=new URLSearchParams;e.append("code",t);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));function WU(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}let VU=!1,YU=0;function qU(t){YU=t.timeStamp}function XU(t,e,n){const r="BR"===t.nodeName,i=e.__lexicalLineBreak;return i&&(t===i||r&&t.previousSibling===i)||r&&void 0!==wZ(t,n)}function UU(t,e,n){const r=lG(n._window);let i=null,o=null;null!==r&&r.anchorNode===t&&(i=r.anchorOffset,o=r.focusOffset);const a=t.nodeValue;null!==a&&zZ(e,a,i,o,!1)}function ZU(t,e,n){if(aJ(t)){const e=t.anchor.getNode();if(e.is(n)&&t.format!==e.getFormat())return!1}return pZ(e)&&n.isAttached()}function GU(t,e,n,r){for(let i=t;i&&!wG(i);i=JZ(i)){const t=wZ(i,e);if(void 0!==t){const e=xZ(t,n);if(e)return iQ(e)||!uG(i)?void 0:[i,e]}else if(i===r)return[r,MZ(n)]}}function KU(t,e,n){VU=!0;const r=performance.now()-YU>100;try{KJ(t,(()=>{const i=xJ()||function(t){return t.getEditorState().read((()=>{const t=xJ();return null!==t?t.clone():null}))}(t),o=new Map,a=t.getRootElement(),s=t._editorState,l=t._blockCursorElement;let c=!1,u="";for(let n=0;n<e.length;n++){const d=e[n],h=d.type,p=d.target,f=GU(p,t,s,a);if(!f)continue;const[m,g]=f;if("characterData"===h)r&&ZK(g)&&pZ(p)&&ZU(i,p,g)&&UU(p,g,t);else if("childList"===h){c=!0;const e=d.addedNodes;for(let n=0;n<e.length;n++){const r=e[n],i=_Z(r),o=r.parentNode;if(null!=o&&r!==l&&null===i&&!XU(r,o,t)){if(hU){const t=(uG(r)?r.innerText:null)||r.nodeValue;t&&(u+=t)}o.removeChild(r)}}const n=d.removedNodes,r=n.length;if(r>0){let e=0;for(let i=0;i<r;i++){const r=n[i];(XU(r,p,t)||l===r)&&(p.appendChild(r),e++)}r!==e&&o.set(m,g)}}}if(o.size>0)for(const[e,n]of o)n.reconcileObservedMutation(e,t);const d=n.takeRecords();if(d.length>0){for(let e=0;e<d.length;e++){const n=d[e],r=n.addedNodes,i=n.target;for(let e=0;e<r.length;e++){const n=r[e],o=n.parentNode;null==o||"BR"!==n.nodeName||XU(n,i,t)||o.removeChild(n)}}n.takeRecords()}null!==i&&(c&&(i.dirty=!0,PZ(i)),hU&&UZ(t)&&i.insertRawText(u))}))}finally{VU=!1}}function JU(t){const e=t._observer;null!==e&&KU(t,e.takeRecords(),e)}function QU(t){!function(t){0===YU&&nG(t).addEventListener("textInput",qU,!0)}(t),t._observer=new MutationObserver(((e,n)=>{KU(t,e,n)}))}function tZ(t,e){const n=t.__mode,r=t.__format,i=t.__style,o=e.__mode,a=e.__format,s=e.__style;return!(null!==n&&n!==o||null!==r&&r!==a||null!==i&&i!==s)}function eZ(t,e){const n=t.mergeWithSibling(e),r=FJ()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function nZ(t){let e,n,r=t;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(e=r.getPreviousSibling())&&ZK(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(""!==e.__text){if(tZ(e,r)){r=eZ(e,r);break}break}e.remove()}for(;null!==(n=r.getNextSibling())&&ZK(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){if(tZ(r,n)){r=eZ(r,n);break}break}n.remove()}}else r.remove()}function rZ(t){return iZ(t.anchor),iZ(t.focus),t}function iZ(t){for(;"element"===t.type;){const e=t.getNode(),n=t.offset;let r,i;if(n===e.getChildrenSize()?(r=e.getChildAtIndex(n-1),i=!0):(r=e.getChildAtIndex(n),i=!1),ZK(r)){t.set(r.__key,i?r.getTextContentSize():0,"text");break}if(!eQ(r))break;t.set(r.__key,i?r.getChildrenSize():0,"element")}}let oZ=1;const aZ="function"==typeof queueMicrotask?queueMicrotask:t=>{Promise.resolve().then(t)};function sZ(t){const e=document.activeElement;if(!uG(e))return!1;const n=e.nodeName;return iQ(SZ(t))&&("INPUT"===n||"TEXTAREA"===n||"true"===e.contentEditable&&null==dZ(e))}function lZ(t,e,n){const r=t.getRootElement();try{return null!==r&&r.contains(e)&&r.contains(n)&&null!==e&&!sZ(e)&&uZ(e)===t}catch(t){return!1}}function cZ(t){return t instanceof yQ}function uZ(t){let e=t;for(;null!=e;){const t=dZ(e);if(cZ(t))return t;e=JZ(e)}return null}function dZ(t){return t?t.__lexicalEditor:null}function hZ(t){return t.isToken()||t.isSegmented()}function pZ(t){return dG(t)&&3===t.nodeType}function fZ(t){let e=t;for(;null!=e;){if(pZ(e))return e;e=e.firstChild}return null}function mZ(t,e,n){const r=zU[e];if(null!==n&&(t&r)==(n&r))return t;let i=t^r;return"subscript"===e?i&=~zU.superscript:"superscript"===e?i&=~zU.subscript:"lowercase"===e?(i&=~zU.uppercase,i&=~zU.capitalize):"uppercase"===e?(i&=~zU.lowercase,i&=~zU.capitalize):"capitalize"===e&&(i&=~zU.lowercase,i&=~zU.uppercase),i}function gZ(t){const e=t.getParent();if(null!==e){const n=t.getWritable(),r=e.getWritable(),i=t.getPreviousSibling(),o=t.getNextSibling();if(null===i)if(null!==o){const t=o.getWritable();r.__first=o.__key,t.__prev=null}else r.__first=null;else{const t=i.getWritable();if(null!==o){const e=o.getWritable();e.__prev=t.__key,t.__next=e.__key}else t.__next=null;n.__prev=null}if(null===o)if(null!==i){const t=i.getWritable();r.__last=i.__key,t.__next=null}else r.__last=null;else{const t=o.getWritable();if(null!==i){const e=i.getWritable();e.__next=t.__key,t.__prev=e.__key}else t.__prev=null;n.__next=null}r.__size--,n.__parent=null}}function vZ(t){zJ();const e=t.getLatest(),n=e.__parent,r=RJ(),i=FJ(),o=r._nodeMap,a=i._dirtyElements;null!==n&&function(t,e,n){let r=t;for(;null!==r;){if(n.has(r))return;const t=e.get(r);if(void 0===t)break;n.set(r,!1),r=t.__parent}}(n,o,a);const s=e.__key;i._dirtyType=1,eQ(t)?a.set(s,!0):i._dirtyLeaves.add(s)}function yZ(t){IJ();const e=FJ(),n=e._compositionKey;if(t!==n){if(e._compositionKey=t,null!==n){const t=xZ(n);null!==t&&t.getWritable()}if(null!==t){const e=xZ(t);null!==e&&e.getWritable()}}}function bZ(){return LJ()?null:FJ()._compositionKey}function xZ(t,e){const n=(e||RJ())._nodeMap.get(t);return void 0===n?null:n}function _Z(t,e){const n=wZ(t,FJ());return void 0!==n?xZ(n,e):null}function wZ(t,e){return t[`__lexicalKey_${e._key}`]}function SZ(t,e){let n=t;for(;null!=n;){const t=_Z(n,e);if(null!==t)return t;n=JZ(n)}return null}function kZ(t){const e=t._decorators,n=Object.assign({},e);return t._pendingDecorators=n,n}function CZ(t){return t.read((()=>EZ().getTextContent()))}function EZ(){return MZ(RJ())}function MZ(t){return t._nodeMap.get("root")}function PZ(t){IJ();const e=RJ();null!==t&&(t.dirty=!0,t.setCachedNodes(null)),e._selection=t}function OZ(t){const e=FJ(),n=function(t,e){let n=t;for(;null!=n;){const t=wZ(n,e);if(void 0!==t)return t;n=JZ(n)}return null}(t,e);return null===n?t===e.getRootElement()?xZ("root"):null:xZ(n)}function TZ(t,e){return e?t.getTextContentSize():0}function NZ(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function AZ(t){const e=[];let n=t;for(;null!==n;)e.push(n),n=n._parentEditor;return e}function DZ(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function LZ(t){return pZ(t)?t.nodeValue:null}function IZ(t,e,n){const r=lG(e._window);if(null===r)return;const i=r.anchorNode;let{anchorOffset:o,focusOffset:a}=r;if(null!==i){let e=LZ(i);const r=SZ(i);if(null!==e&&ZK(r)){if(e===OU&&n){const t=n.length;e=n,o=t,a=t}null!==e&&zZ(r,e,o,a,t)}}}function zZ(t,e,n,r,i){let o=t;if(o.isAttached()&&(i||!o.isDirty())){const a=o.isComposing();let s=e;(a||i)&&e[e.length-1]===OU&&(s=e.slice(0,-1));const l=o.getTextContent();if(i||s!==l){if(""===s){if(yZ(null),fU||mU||bU)o.remove();else{const t=FJ();setTimeout((()=>{t.update((()=>{o.isAttached()&&o.remove()}))}),20)}return}const e=o.getParent(),i=_J(),l=o.getTextContentSize(),c=bZ(),u=o.getKey();if(o.isToken()||null!==c&&u===c&&!a||aJ(i)&&(null!==e&&!e.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===t.__key&&0===i.anchor.offset&&!o.canInsertTextBefore()&&!a||i.focus.key===t.__key&&i.focus.offset===l&&!o.canInsertTextAfter()&&!a))return void o.markDirty();const d=xJ();if(!aJ(d)||null===n||null===r)return void o.setTextContent(s);if(d.setTextNodeRange(o,n,o,r),o.isSegmented()){const t=UK(o.getTextContent());o.replace(t),o=t}o.setTextContent(s)}}}function RZ(t){return"ArrowLeft"===t}function FZ(t){return"ArrowRight"===t}function $Z(t,e){return dU?t:e}function jZ(t){return"Enter"===t}function BZ(t){return"Backspace"===t}function HZ(t){return"Delete"===t}function WZ(t,e,n){return"a"===t.toLowerCase()&&$Z(e,n)}function VZ(t,e){void 0===t.__lexicalClassNameCache&&(t.__lexicalClassNameCache={});const n=t.__lexicalClassNameCache,r=n[e];if(void 0!==r)return r;const i=t[e];if("string"==typeof i){const t=WU(i);return n[e]=t,t}return i}function YZ(t,e,n,r,i){if(0===n.size)return;const o=r.__type,a=r.__key,s=e.get(o);void 0===s&&HU(33,o);const l=s.klass;let c=t.get(l);void 0===c&&(c=new Map,t.set(l,c));const u=c.get(a),d="destroyed"===u&&"created"===i;(void 0===u||d)&&c.set(a,d?"updated":i)}function qZ(t,e,n){const r=t.getParent();let i=n,o=t;return null!==r&&(e&&0===n?(i=o.getIndexWithinParent(),o=r):e||n!==o.getChildrenSize()||(i=o.getIndexWithinParent()+1,o=r)),o.getChildAtIndex(e?i-1:i)}function XZ(t,e){const n=t.offset;if("element"===t.type)return qZ(t.getNode(),e,n);{const r=t.getNode();if(e&&0===n||!e&&n===r.getTextContentSize()){const t=e?r.getPreviousSibling():r.getNextSibling();return null===t?qZ(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):t}}return null}function UZ(t){const e=nG(t).event,n=e&&e.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function ZZ(t,e,n){return UJ(t,e,n)}function GZ(t){return!aQ(t)&&!t.isLastChild()&&!t.isInline()}function KZ(t,e){const n=t._keyToDOMMap.get(e);return void 0===n&&HU(75,e),n}function JZ(t){const e=t.assignedSlot||t.parentElement;return hG(e)?e.host:e}function QZ(t){return function(t){return dG(t)&&9===t.nodeType}(t)?t:uG(t)?t.ownerDocument:null}function tG(t,e){let n=t.getParent();for(;null!==n;){if(n.is(e))return!0;n=n.getParent()}return!1}function eG(t){const e=QZ(t);return e?e.defaultView:null}function nG(t){const e=t._window;return null===e&&HU(78),e}function rG(t){return aQ(t)||eQ(t)&&t.isShadowRoot()}function iG(t){const e=FJ(),n=t.constructor.getType(),r=e._nodes.get(n);void 0===r&&HU(200,t.constructor.name,n);const{replace:i,replaceWithKlass:o}=r;if(null!==i){const e=i(t),r=e.constructor;return null!==o?e instanceof o||HU(201,o.name,o.getType(),r.name,r.getType(),t.constructor.name,n):e instanceof t.constructor&&r!==t.constructor||HU(202,r.name,r.getType(),t.constructor.name,n),e.__key===t.__key&&HU(203,t.constructor.name,n,r.name,r.getType()),e}return t}function oG(t,e){!aQ(t.getParent())||eQ(e)||iQ(e)||HU(99)}function aG(t){return(iQ(t)||eQ(t)&&!t.canBeEmpty())&&!t.isInline()}function sG(t,e,n){n.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=t.parentElement;null!==r&&r.removeChild(t)}function lG(t){return cU?(t||window).getSelection():null}function cG(t){return uG(t)&&"A"===t.tagName}function uG(t){return dG(t)&&1===t.nodeType}function dG(t){return"object"==typeof t&&null!==t&&"nodeType"in t&&"number"==typeof t.nodeType}function hG(t){return dG(t)&&11===t.nodeType}function pG(t){const e=new RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==t.nodeName.match(e)}function fG(t){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==t.nodeName.match(e)}function mG(t){if(iQ(t)&&!t.isInline())return!0;if(!eQ(t)||rG(t))return!1;const e=t.getFirstChild(),n=null===e||NK(e)||ZK(e)||e.isInline();return!t.isInline()&&!1!==t.canBeEmpty()&&n}function gG(t,e){let n=t;for(;null!==n&&null!==n.getParent()&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}const vG=new WeakMap,yG=new Map;function bG(t){if(!t._readOnly&&t.isEmpty())return yG;t._readOnly||HU(192);let e=vG.get(t);return e||(e=function(t){const e=new Map;for(const[n,r]of t._nodeMap){const t=r.__type;let i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)}return e}(t),vG.set(t,e)),e}function xG(t){const e=t.constructor.clone(t);return e.afterCloneFrom(t),e}function _G(t,e){const n=(parseInt(t.style.paddingInlineStart,10)||0)/40;e.setIndent(n)}function wG(t){return!0===t.__lexicalUnmanaged}function SG(t,e,n,r,i,o){let a=t.getFirstChild();for(;null!==a;){const t=a.__key;a.__parent===e&&(eQ(a)&&SG(a,t,n,r,i,o),n.has(t)||o.delete(t),i.push(t)),a=a.getNextSibling()}}let kG,CG,EG,MG,PG,OG,TG,NG,AG,DG,LG="",IG="",zG=null,RG="",FG="",$G=!1,jG=!1,BG=null;function HG(t,e){const n=TG.get(t);if(null!==e){const n=rK(t);n.parentNode===e&&e.removeChild(n)}if(NG.has(t)||CG._keyToDOMMap.delete(t),eQ(n)){const t=QG(n,TG);WG(t,0,t.length-1,null)}void 0!==n&&YZ(DG,EG,MG,n,"destroyed")}function WG(t,e,n,r){let i=e;for(;i<=n;++i){const e=t[i];void 0!==e&&HG(e,r)}}function VG(t,e){t.setProperty("text-align",e)}const YG="40px";function qG(t,e){const n=kG.theme.indent;if("string"==typeof n){const r=t.classList.contains(n);e>0&&!r?t.classList.add(n):e<1&&r&&t.classList.remove(n)}const r=getComputedStyle(t).getPropertyValue("--lexical-indent-base-value")||YG;t.style.setProperty("padding-inline-start",0===e?"":`calc(${e} * ${r})`)}function XG(t,e){const n=t.style;0===e?VG(n,""):1===e?VG(n,"left"):2===e?VG(n,"center"):3===e?VG(n,"right"):4===e?VG(n,"justify"):5===e?VG(n,"start"):6===e&&VG(n,"end")}function UG(t,e){const n=NG.get(t);void 0===n&&HU(60);const r=n.createDOM(kG,CG);if(function(t,e,n){const r=n._keyToDOMMap;(function(t,e,n){t[`__lexicalKey_${e._key}`]=n})(e,n,t),r.set(t,e)}(t,r,CG),ZK(n)?r.setAttribute("data-lexical-text","true"):iQ(n)&&r.setAttribute("data-lexical-decorator","true"),eQ(n)){const t=n.__indent,e=n.__size;if(0!==t&&qG(r,t),0!==e){const t=e-1;!function(t,e,n,r){const i=IG;IG="",ZG(t,n,0,e,n.getDOMSlot(r)),JG(n,r),IG=i}(QG(n,NG),t,n,r)}const i=n.__format;0!==i&&XG(r,i),n.isInline()||KG(null,n,r),GZ(n)&&(LG+=TU,FG+=TU)}else{const e=n.getTextContent();if(iQ(n)){const e=n.decorate(CG,kG);null!==e&&eK(t,e),r.contentEditable="false"}else ZK(n)&&(n.isDirectionless()||(IG+=e));LG+=e,FG+=e}return null!==e&&e.insertChild(r),YZ(DG,EG,MG,n,"created"),r}function ZG(t,e,n,r,i){const o=LG;LG="";let a=n;for(;a<=r;++a){UG(t[a],i);const e=NG.get(t[a]);null!==e&&ZK(e)&&(null===zG&&(zG=e.getFormat()),""===RG&&(RG=e.getStyle()))}GZ(e)&&(LG+=TU),i.element.__lexicalTextContent=LG,LG=o+LG}function GG(t,e){if(t){const n=t.__last;if(n){const t=e.get(n);if(t)return NK(t)?"line-break":iQ(t)&&t.isInline()?"decorator":null}return"empty"}return null}function KG(t,e,n){const r=GG(t,TG),i=GG(e,NG);r!==i&&e.getDOMSlot(n).setManagedLineBreak(i)}function JG(t,e){const n=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(n!==IG||r!==BG){const n=""===IG,o=n?BG:(i=IG,LU.test(i)?"rtl":IU.test(i)?"ltr":null);if(o!==r){const i=e.classList,a=kG.theme;let s=null!==r?a[r]:void 0,l=null!==o?a[o]:void 0;if(void 0!==s){if("string"==typeof s){const t=WU(s);s=a[r]=t}i.remove(...s)}if(null===o||n&&"ltr"===o)e.removeAttribute("dir");else{if(void 0!==l){if("string"==typeof l){const t=WU(l);l=a[o]=t}void 0!==l&&i.add(...l)}e.dir=o}jG||(t.getWritable().__dir=o)}BG=o,e.__lexicalDirTextContent=IG,e.__lexicalDir=o}var i}function QG(t,e){const n=[];let r=t.__first;for(;null!==r;){const t=e.get(r);void 0===t&&HU(101),n.push(r),r=t.__next}return n}function tK(t,e){const n=TG.get(t);let r=NG.get(t);void 0!==n&&void 0!==r||HU(61);const i=$G||OG.has(t)||PG.has(t),o=KZ(CG,t);if(n===r&&!i){if(eQ(n)){const t=o.__lexicalTextContent;void 0!==t&&(LG+=t,FG+=t);const e=o.__lexicalDirTextContent;void 0!==e&&(IG+=e)}else{const t=n.getTextContent();ZK(n)&&!n.isDirectionless()&&(IG+=t),FG+=t,LG+=t}return o}if(n!==r&&i&&YZ(DG,EG,MG,r,"updated"),r.updateDOM(n,o,kG)){const n=UG(t,null);return null===e&&HU(62),e.replaceChild(n,o),HG(t,null),n}if(eQ(n)&&eQ(r)){const t=r.__indent;t!==n.__indent&&qG(o,t);const e=r.__format;e!==n.__format&&XG(o,e),i&&(function(t,e,n){const r=IG;var i;IG="",zG=null,RG="",function(t,e,n){const r=LG,i=t.__size,o=e.__size;LG="";const a=n.element;if(1===i&&1===o){const n=t.__first,r=e.__first;if(n===r)tK(n,a);else{const t=rK(n),e=UG(r,null);try{a.replaceChild(e,t)}catch(i){if("object"==typeof i&&null!=i){const o=`${i.toString()} Parent: ${a.tagName}, new child: {tag: ${e.tagName} key: ${r}}, old child: {tag: ${t.tagName}, key: ${n}}.`;throw new Error(o)}throw i}HG(n,null)}const o=NG.get(r);ZK(o)&&(null===zG&&(zG=o.getFormat()),""===RG&&(RG=o.getStyle()))}else{const r=QG(t,TG),s=QG(e,NG);if(r.length!==i&&HU(227),s.length!==o&&HU(228),0===i)0!==o&&ZG(s,e,0,o-1,n);else if(0===o){if(0!==i){const t=null==n.after&&null==n.before&&null==n.element.__lexicalLineBreak;WG(r,0,i-1,t?null:a),t&&(a.textContent="")}}else!function(t,e,n,r,i,o){const a=r-1,s=i-1;let l,c,u=o.getFirstChild(),d=0,h=0;for(;d<=a&&h<=s;){const t=e[d],r=n[h];if(t===r)u=nK(tK(r,o.element)),d++,h++;else{void 0===l&&(l=new Set(e)),void 0===c&&(c=new Set(n));const i=c.has(t),a=l.has(r);if(i)if(a){const t=KZ(CG,r);t===u?u=nK(tK(r,o.element)):(o.withBefore(u).insertChild(t),tK(r,o.element)),d++,h++}else UG(r,o.withBefore(u)),h++;else u=nK(rK(t)),HG(t,o.element),d++}const i=NG.get(r);null!==i&&ZK(i)&&(null===zG&&(zG=i.getFormat()),""===RG&&(RG=i.getStyle()))}const p=d>a,f=h>s;if(p&&!f){const e=n[s+1],r=void 0===e?null:CG.getElementByKey(e);ZG(n,t,h,s,o.withBefore(r))}else f&&!p&&WG(e,d,a,o.element)}(e,r,s,i,o,n)}GZ(e)&&(LG+=TU),a.__lexicalTextContent=LG,LG=r+LG}(t,e,e.getDOMSlot(n)),JG(e,n),i=e,null==zG||zG===i.__textFormat||jG||(i.setTextFormat(zG),i.setTextStyle(RG)),function(t){""===RG||RG===t.__textStyle||jG||t.setTextStyle(RG)}(e),IG=r}(n,r,o),aQ(r)||r.isInline()||KG(n,r,o)),GZ(r)&&(LG+=TU,FG+=TU)}else{const e=r.getTextContent();if(iQ(r)){const e=r.decorate(CG,kG);null!==e&&eK(t,e)}else ZK(r)&&!r.isDirectionless()&&(IG+=e);LG+=e,FG+=e}if(!jG&&aQ(r)&&r.__cachedText!==FG){const t=r.getWritable();t.__cachedText=FG,r=t}return o}function eK(t,e){let n=CG._pendingDecorators;const r=CG._decorators;if(null===n){if(r[t]===e)return;n=kZ(CG)}n[t]=e}function nK(t){let e=t.nextSibling;return null!==e&&e===CG._blockCursorElement&&(e=e.nextSibling),e}function rK(t){const e=AG.get(t);return void 0===e&&HU(75,t),e}const iK=Object.freeze({}),oK=[["keydown",function(t,e){if(aK=t.timeStamp,sK=t.key,e.isComposing())return;const{key:n,shiftKey:r,ctrlKey:i,metaKey:o,altKey:a}=t;if(!ZZ(e,AX,t)&&null!=n){if(function(t,e,n,r){return FZ(t)&&!e&&!r&&!n}(n,i,a,o))ZZ(e,DX,t);else if(function(t,e,n,r,i){return FZ(t)&&!r&&!n&&(e||i)}(n,i,r,a,o))ZZ(e,LX,t);else if(function(t,e,n,r){return RZ(t)&&!e&&!r&&!n}(n,i,a,o))ZZ(e,IX,t);else if(function(t,e,n,r,i){return RZ(t)&&!r&&!n&&(e||i)}(n,i,r,a,o))ZZ(e,zX,t);else if(function(t,e,n){return function(t){return"ArrowUp"===t}(t)&&!e&&!n}(n,i,o))ZZ(e,RX,t);else if(function(t,e,n){return function(t){return"ArrowDown"===t}(t)&&!e&&!n}(n,i,o))ZZ(e,FX,t);else if(function(t,e){return jZ(t)&&e}(n,r))pK=!0,ZZ(e,$X,t);else if(function(t){return" "===t}(n))ZZ(e,jX,t);else if(function(t,e){return dU&&e&&"o"===t.toLowerCase()}(n,i))t.preventDefault(),pK=!0,ZZ(e,wX,!0);else if(function(t,e){return jZ(t)&&!e}(n,r))pK=!1,ZZ(e,$X,t);else if(function(t,e,n,r){return dU?!e&&!n&&(BZ(t)||"h"===t.toLowerCase()&&r):!(r||e||n)&&BZ(t)}(n,a,o,i))BZ(n)?ZZ(e,BX,t):(t.preventDefault(),ZZ(e,_X,!0));else if(function(t){return"Escape"===t}(n))ZZ(e,HX,t);else if(function(t,e,n,r,i){return dU?!(n||r||i)&&(HZ(t)||"d"===t.toLowerCase()&&e):!(e||r||i)&&HZ(t)}(n,i,r,a,o))HZ(n)?ZZ(e,WX,t):(t.preventDefault(),ZZ(e,_X,!1));else if(function(t,e,n){return BZ(t)&&(dU?e:n)}(n,a,i))t.preventDefault(),ZZ(e,MX,!0);else if(function(t,e,n){return HZ(t)&&(dU?e:n)}(n,a,i))t.preventDefault(),ZZ(e,MX,!1);else if(function(t,e){return dU&&e&&BZ(t)}(n,o))t.preventDefault(),ZZ(e,PX,!0);else if(function(t,e){return dU&&e&&HZ(t)}(n,o))t.preventDefault(),ZZ(e,PX,!1);else if(function(t,e,n,r){return"b"===t.toLowerCase()&&!e&&$Z(n,r)}(n,a,o,i))t.preventDefault(),ZZ(e,OX,"bold");else if(function(t,e,n,r){return"u"===t.toLowerCase()&&!e&&$Z(n,r)}(n,a,o,i))t.preventDefault(),ZZ(e,OX,"underline");else if(function(t,e,n,r){return"i"===t.toLowerCase()&&!e&&$Z(n,r)}(n,a,o,i))t.preventDefault(),ZZ(e,OX,"italic");else if(function(t,e,n,r){return"Tab"===t&&!e&&!n&&!r}(n,a,i,o))ZZ(e,VX,t);else if(function(t,e,n,r){return"z"===t.toLowerCase()&&!e&&$Z(n,r)}(n,r,o,i))t.preventDefault(),ZZ(e,TX,void 0);else if(function(t,e,n,r){return dU?"z"===t.toLowerCase()&&n&&e:"y"===t.toLowerCase()&&r||"z"===t.toLowerCase()&&r&&e}(n,r,o,i))t.preventDefault(),ZZ(e,NX,void 0);else{const a=e._editorState._selection;null===a||aJ(a)?!hU&&WZ(n,o,i)&&(t.preventDefault(),ZZ(e,eU,t)):function(t,e,n,r){return!e&&"c"===t.toLowerCase()&&(dU?n:r)}(n,r,o,i)?(t.preventDefault(),ZZ(e,QX,t)):function(t,e,n,r){return!e&&"x"===t.toLowerCase()&&(dU?n:r)}(n,r,o,i)?(t.preventDefault(),ZZ(e,tU,t)):WZ(n,o,i)&&(t.preventDefault(),ZZ(e,eU,t))}(function(t,e,n,r){return t||e||n||r})(i,r,a,o)&&ZZ(e,lU,t)}}],["pointerdown",function(t,e){const n=t.target,r=t.pointerType;dG(n)&&"touch"!==r&&0===t.button&&KJ(e,(()=>{iQ(SZ(n))||(hK=!0)}))}],["compositionstart",function(t,e){KJ(e,(()=>{const n=xJ();if(aJ(n)&&!e.isComposing()){const r=n.anchor,i=n.anchor.getNode();yZ(r.key),(t.timeStamp<aK+30||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||ZK(i)&&i.getStyle()!==n.style)&&ZZ(e,kX,NU)}}))}],["compositionend",function(t,e){hU?fK=!0:KJ(e,(()=>{xK(e,t.data)}))}],["input",function(t,e){t.stopPropagation(),KJ(e,(()=>{const n=xJ(),r=t.data,i=bK(t);if(null!=r&&aJ(n)&&gK(n,i,r,t.timeStamp,!1)){fK&&(xK(e,r),fK=!1);const i=n.anchor.getNode(),o=lG(e._window);if(null===o)return;const a=n.isBackward(),s=a?n.anchor.offset:n.focus.offset,l=a?n.focus.offset:n.anchor.offset;pU&&!n.isCollapsed()&&ZK(i)&&null!==o.anchorNode&&i.getTextContent().slice(0,s)+r+i.getTextContent().slice(s+l)===LZ(o.anchorNode)||ZZ(e,kX,r);const c=r.length;hU&&c>1&&"insertCompositionText"===t.inputType&&!e.isComposing()&&(n.anchor.offset-=c),fU||mU||bU||!e.isComposing()||(aK=0,yZ(null))}else IZ(!1,e,null!==r?r:void 0),fK&&(xK(e,r||void 0),fK=!1);IJ(),JU(FJ())})),cK=null}],["click",function(t,e){KJ(e,(()=>{const n=xJ(),r=lG(e._window),i=_J();if(r)if(aJ(n)){const e=n.anchor,o=e.getNode();"element"===e.type&&0===e.offset&&n.isCollapsed()&&!aQ(o)&&1===EZ().getChildrenSize()&&o.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i)?(r.removeAllRanges(),n.dirty=!0):3!==t.detail||n.isCollapsed()||o!==n.focus.getNode()&&(eQ(o)?o.select(0):o.getParentOrThrow().select(0))}else if("touch"===t.pointerType){const n=r.anchorNode;(uG(n)||pZ(n))&&PZ(bJ(i,r,e,t))}ZZ(e,xX,t)}))}],["cut",iK],["copy",iK],["dragstart",iK],["dragover",iK],["dragend",iK],["paste",iK],["focus",iK],["blur",iK],["drop",iK]];pU&&oK.push(["beforeinput",(t,e)=>function(t,e){const n=t.inputType,r=bK(t);"deleteCompositionText"===n||hU&&UZ(e)||"insertCompositionText"!==n&&KJ(e,(()=>{const i=xJ();if("deleteContentBackward"===n){if(null===i){const t=_J();if(!aJ(t))return;PZ(t.clone())}if(aJ(i)){const n=i.anchor.key===i.focus.key;if(o=t.timeStamp,"MediaLast"===sK&&o<aK+30&&e.isComposing()&&n){if(yZ(null),aK=0,setTimeout((()=>{KJ(e,(()=>{yZ(null)}))}),30),aJ(i)){const t=i.anchor.getNode();t.markDirty(),i.format=t.getFormat(),ZK(t)||HU(142),i.style=t.getStyle()}}else{yZ(null),t.preventDefault();const r=i.anchor.getNode(),o=r.getTextContent(),a=r.canInsertTextAfter(),s=0===i.anchor.offset&&i.focus.offset===o.length;yU&&n&&!s&&a||ZZ(e,_X,!0)}return}}var o;if(!aJ(i))return;const a=t.data;null!==cK&&IZ(!1,e,cK),i.dirty&&null===cK||!i.isCollapsed()||aQ(i.anchor.getNode())||null===r||i.applyDOMRange(r),cK=null;const s=i.anchor,l=i.focus,c=s.getNode(),u=l.getNode();if("insertText"!==n&&"insertTranspose"!==n)switch(t.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":ZZ(e,kX,t);break;case"insertFromComposition":yZ(null),ZZ(e,kX,t);break;case"insertLineBreak":yZ(null),ZZ(e,wX,!1);break;case"insertParagraph":yZ(null),pK&&!mU?(pK=!1,ZZ(e,wX,!1)):ZZ(e,SX,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":ZZ(e,CX,t);break;case"deleteByComposition":(function(t,e){return t!==e||eQ(t)||eQ(e)||!t.isToken()||!e.isToken()})(c,u)&&ZZ(e,EX,t);break;case"deleteByDrag":case"deleteByCut":ZZ(e,EX,t);break;case"deleteContent":ZZ(e,_X,!1);break;case"deleteWordBackward":ZZ(e,MX,!0);break;case"deleteWordForward":ZZ(e,MX,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":ZZ(e,PX,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":ZZ(e,PX,!1);break;case"formatStrikeThrough":ZZ(e,OX,"strikethrough");break;case"formatBold":ZZ(e,OX,"bold");break;case"formatItalic":ZZ(e,OX,"italic");break;case"formatUnderline":ZZ(e,OX,"underline");break;case"historyUndo":ZZ(e,TX,void 0);break;case"historyRedo":ZZ(e,NX,void 0)}else{if("\n"===a)t.preventDefault(),ZZ(e,wX,!1);else if(a===TU)t.preventDefault(),ZZ(e,SX,void 0);else if(null==a&&t.dataTransfer){const e=t.dataTransfer.getData("text/plain");t.preventDefault(),i.insertRawText(e)}else null!=a&&gK(i,r,a,t.timeStamp,!0)?(t.preventDefault(),ZZ(e,kX,a)):cK=a;lK=t.timeStamp}}))}(t,e)]);let aK=0,sK=null,lK=0,cK=null;const uK=new WeakMap;let dK=!1,hK=!1,pK=!1,fK=!1,mK=[0,"",0,"root",0];function gK(t,e,n,r,i){const o=t.anchor,a=t.focus,s=o.getNode(),l=FJ(),c=lG(l._window),u=null!==c?c.anchorNode:null,d=o.key,h=l.getElementByKey(d),p=n.length;return d!==a.key||!ZK(s)||(!i&&(!pU||lK<r+50)||s.isDirty()&&p<2||NZ(n))&&o.offset!==a.offset&&!s.isComposing()||hZ(s)||s.isDirty()&&p>1||(i||!pU)&&null!==h&&!s.isComposing()&&u!==fZ(h)||null!==c&&null!==e&&(!e.collapsed||e.startContainer!==c.anchorNode||e.startOffset!==c.anchorOffset)||s.getFormat()!==t.format||s.getStyle()!==t.style||function(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;const n=t.anchor.offset,r=e.getParentOrThrow(),i=e.isToken();return 0===n?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||i||function(t){const e=t.getPreviousSibling();return(ZK(e)||eQ(e)&&e.isInline())&&!e.canInsertTextAfter()}(e):n===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||i)}(t,s)}function vK(t,e){return pZ(t)&&null!==t.nodeValue&&0!==e&&e!==t.nodeValue.length}function yK(t,e,n){const{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}=t;dK&&(dK=!1,vK(r,i)&&vK(o,a))||KJ(e,(()=>{if(!n)return void PZ(null);if(!lZ(e,r,o))return;const s=xJ();if(aJ(s)){const n=s.anchor,r=n.getNode();if(s.isCollapsed()){"Range"===t.type&&t.anchorNode===t.focusNode&&(s.dirty=!0);const i=nG(e).event,o=i?i.timeStamp:performance.now(),[a,l,c,u,d]=mK,h=EZ(),p=!1===e.isComposing()&&""===h.getTextContent();if(o<d+200&&n.offset===c&&n.key===u)s.format=a,s.style=l;else if("text"===n.type)ZK(r)||HU(141),s.format=r.getFormat(),s.style=r.getStyle();else if("element"===n.type&&!p){eQ(r)||HU(259);const t=n.getNode();s.style="",t.isEmpty()?(s.format=t.getTextFormat(),s.style=t.getTextStyle()):s.format=0}}else{const t=n.key,e=s.focus.key,r=s.getNodes(),o=r.length,l=s.isBackward(),c=l?a:i,u=l?i:a,d=l?e:t,h=l?t:e;let p=2047,f=!1;for(let t=0;t<o;t++){const e=r[t],n=e.getTextContentSize();if(ZK(e)&&0!==n&&!(0===t&&e.__key===d&&c===n||t===o-1&&e.__key===h&&0===u)&&(f=!0,p&=e.getFormat(),0===p))break}s.format=f?p:0}}ZZ(e,yX,void 0)}))}function bK(t){if(!t.getTargetRanges)return null;const e=t.getTargetRanges();return 0===e.length?null:e[0]}function xK(t,e){const n=t._compositionKey;if(yZ(null),null!==n&&null!=e){if(""===e){const e=xZ(n),r=fZ(t.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&ZK(e)&&zZ(e,r.nodeValue,null,null,!0))}if("\n"===e[e.length-1]){const e=xJ();if(aJ(e)){const n=e.focus;return e.anchor.set(n.key,n.offset,n.type),void ZZ(t,$X,null)}}}IZ(!0,t,e)}function _K(t){let e=t.__lexicalEventHandles;return void 0===e&&(e=[],t.__lexicalEventHandles=e),e}const wK=new Map;function SK(t){const e=function(t){const e=eG(t);return e?e.getSelection():null}(t.target);if(null===e)return;const n=uZ(e.anchorNode);if(null===n)return;hK&&(hK=!1,KJ(n,(()=>{const r=_J(),i=e.anchorNode;(uG(i)||pZ(i))&&PZ(bJ(r,e,n,t))})));const r=AZ(n),i=r[r.length-1],o=i._key,a=wK.get(o),s=a||i;s!==n&&yK(e,s,!1),yK(e,n,!0),n!==i?wK.set(o,n):a&&wK.delete(o)}function kK(t){t._lexicalHandled=!0}function CK(t){return!0===t._lexicalHandled}function EK(t,e,n){IJ();const r=t.__key,i=t.getParent();if(null===i)return;const o=function(t){const e=xJ();if(!aJ(e)||!eQ(t))return e;const{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return tG(i,t)&&n.set(t.__key,0,"element"),tG(o,t)&&r.set(t.__key,0,"element"),e}(t);let a=!1;if(aJ(o)&&e){const e=o.anchor,n=o.focus;e.key===r&&(kJ(e,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0),n.key===r&&(kJ(n,t,i,t.getPreviousSibling(),t.getNextSibling()),a=!0)}else lJ(o)&&e&&t.isSelected()&&t.selectPrevious();if(aJ(o)&&e&&!a){const e=t.getIndexWithinParent();gZ(t),wJ(o,i,e,-1)}else gZ(t);n||rG(i)||i.canBeEmpty()||!i.isEmpty()||EK(i,e),e&&aQ(i)&&i.isEmpty()&&i.selectEnd()}class MK{static getType(){HU(64,this.name)}static clone(t){HU(65,this.name)}afterCloneFrom(t){this.__parent=t.__parent,this.__next=t.__next,this.__prev=t.__prev}constructor(t){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,function(t,e){if(null!=e)return void(t.__key=e);IJ(),zJ();const n=FJ(),r=RJ(),i=""+oZ++;r._nodeMap.set(i,t),eQ(t)?n._dirtyElements.set(i,!0):n._dirtyLeaves.add(i),n._cloneNotNeeded.add(i),n._dirtyType=1,t.__key=i}(this,t)}getType(){return this.__type}isInline(){HU(137,this.constructor.name)}isAttached(){let t=this.__key;for(;null!==t;){if("root"===t)return!0;const e=xZ(t);if(null===e)break;t=e.__parent}return!1}isSelected(t){const e=t||xJ();if(null==e)return!1;const n=e.getNodes().some((t=>t.__key===this.__key));if(ZK(this))return n;if(aJ(e)&&"element"===e.anchor.type&&"element"===e.focus.type){if(e.isCollapsed())return!1;const t=this.getParent();if(iQ(this)&&this.isInline()&&t){const n=e.isBackward()?e.focus:e.anchor,r=n.getNode();if(n.offset===r.getChildrenSize()&&r.is(t)&&r.getLastChildOrThrow().is(this))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){const t=this.getParent();if(null===t)return-1;let e=t.getFirstChild(),n=0;for(;null!==e;){if(this.is(e))return n;n++,e=e.getNextSibling()}return-1}getParent(){const t=this.getLatest().__parent;return null===t?null:xZ(t)}getParentOrThrow(){const t=this.getParent();return null===t&&HU(66,this.__key),t}getTopLevelElement(){let t=this;for(;null!==t;){const e=t.getParent();if(rG(e))return eQ(t)||t===this&&iQ(t)||HU(194),t;t=e}return null}getTopLevelElementOrThrow(){const t=this.getTopLevelElement();return null===t&&HU(67,this.__key),t}getParents(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e),e=e.getParent();return t}getParentKeys(){const t=[];let e=this.getParent();for(;null!==e;)t.push(e.__key),e=e.getParent();return t}getPreviousSibling(){const t=this.getLatest().__prev;return null===t?null:xZ(t)}getPreviousSiblings(){const t=[],e=this.getParent();if(null===e)return t;let n=e.getFirstChild();for(;null!==n&&!n.is(this);)t.push(n),n=n.getNextSibling();return t}getNextSibling(){const t=this.getLatest().__next;return null===t?null:xZ(t)}getNextSiblings(){const t=[];let e=this.getNextSibling();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getCommonAncestor(t){const e=this.getParents(),n=t.getParents();eQ(this)&&e.unshift(this),eQ(t)&&n.unshift(t);const r=e.length,i=n.length;if(0===r||0===i||e[r-1]!==n[i-1])return null;const o=new Set(n);for(let t=0;t<r;t++){const n=e[t];if(o.has(n))return n}return null}is(t){return null!=t&&this.__key===t.__key}isBefore(t){if(this===t)return!1;if(t.isParentOf(this))return!0;if(this.isParentOf(t))return!1;const e=this.getCommonAncestor(t);let n=0,r=0,i=this;for(;;){const t=i.getParentOrThrow();if(t===e){n=i.getIndexWithinParent();break}i=t}for(i=t;;){const t=i.getParentOrThrow();if(t===e){r=i.getIndexWithinParent();break}i=t}return n<r}isParentOf(t){const e=this.__key;if(e===t.__key)return!1;let n=t;for(;null!==n;){if(n.__key===e)return!0;n=n.getParent()}return!1}getNodesBetween(t){const e=this.isBefore(t),n=[],r=new Set;let i=this;for(;null!==i;){const o=i.__key;if(r.has(o)||(r.add(o),n.push(i)),i===t)break;const a=eQ(i)?e?i.getFirstChild():i.getLastChild():null;if(null!==a){i=a;continue}const s=e?i.getNextSibling():i.getPreviousSibling();if(null!==s){i=s;continue}const l=i.getParentOrThrow();if(r.has(l.__key)||n.push(l),l===t)break;let c=null,u=l;do{if(null===u&&HU(68),c=e?u.getNextSibling():u.getPreviousSibling(),u=u.getParent(),null===u)break;null!==c||r.has(u.__key)||n.push(u)}while(null===c);i=c}return e||n.reverse(),n}isDirty(){const t=FJ()._dirtyLeaves;return null!==t&&t.has(this.__key)}getLatest(){const t=xZ(this.__key);return null===t&&HU(113),t}getWritable(){IJ();const t=RJ(),e=FJ(),n=t._nodeMap,r=this.__key,i=this.getLatest(),o=e._cloneNotNeeded,a=xJ();if(null!==a&&a.setCachedNodes(null),o.has(r))return vZ(i),i;const s=xG(i);return o.add(r),vZ(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(t,e){HU(70)}updateDOM(t,e,n){HU(71)}exportDOM(t){return{element:this.createDOM(t._config,t)}}exportJSON(){return{type:this.__type,version:1}}static importJSON(t){HU(18,this.name)}updateFromJSON(t){return this}static transform(){return null}remove(t){EK(this,!0,t)}replace(t,e){IJ();let n=xJ();null!==n&&(n=n.clone()),oG(this,t);const r=this.getLatest(),i=this.__key,o=t.__key,a=t.getWritable(),s=this.getParentOrThrow().getWritable(),l=s.__size;gZ(a);const c=r.getPreviousSibling(),u=r.getNextSibling(),d=r.__prev,h=r.__next,p=r.__parent;if(EK(r,!1,!0),null===c?s.__first=o:c.getWritable().__next=o,a.__prev=d,null===u?s.__last=o:u.getWritable().__prev=o,a.__next=h,a.__parent=p,s.__size=l,e&&(eQ(this)&&eQ(a)||HU(139),this.getChildren().forEach((t=>{a.append(t)}))),aJ(n)){PZ(n);const t=n.anchor,e=n.focus;t.key===i&&rJ(t,a),e.key===i&&rJ(e,a)}return bZ()===i&&yZ(o),a}insertAfter(t,e=!0){IJ(),oG(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.getParent(),o=xJ();let a=!1,s=!1;if(null!==i){const e=t.getIndexWithinParent();if(gZ(r),aJ(o)){const t=i.__key,n=o.anchor,r=o.focus;a="element"===n.type&&n.key===t&&n.offset===e+1,s="element"===r.type&&r.key===t&&r.offset===e+1}}const l=this.getNextSibling(),c=this.getParentOrThrow().getWritable(),u=r.__key,d=n.__next;if(null===l?c.__last=u:l.getWritable().__prev=u,c.__size++,n.__next=u,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,e&&aJ(o)){const t=this.getIndexWithinParent();wJ(o,c,t+1);const e=c.__key;a&&o.anchor.set(e,t+2,"element"),s&&o.focus.set(e,t+2,"element")}return t}insertBefore(t,e=!0){IJ(),oG(this,t);const n=this.getWritable(),r=t.getWritable(),i=r.__key;gZ(r);const o=this.getPreviousSibling(),a=this.getParentOrThrow().getWritable(),s=n.__prev,l=this.getIndexWithinParent();null===o?a.__first=i:o.getWritable().__next=i,a.__size++,n.__prev=i,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;const c=xJ();return e&&aJ(c)&&wJ(c,this.getParentOrThrow(),l),t}isParentRequired(){return!1}createParentElementNode(){return fQ()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(t,e){IJ();const n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(eQ(n))return n.select();if(!ZK(n)){const t=n.getIndexWithinParent()+1;return r.select(t,t)}return n.select(t,e)}selectNext(t,e){IJ();const n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(eQ(n))return n.select(0,0);if(!ZK(n)){const t=n.getIndexWithinParent();return r.select(t,t)}return n.select(t,e)}markDirty(){this.getWritable()}reconcileObservedMutation(t,e){this.markDirty()}}class PK extends MK{static getType(){return"linebreak"}static clone(t){return new PK(t.__key)}constructor(t){super(t)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:t=>function(t){const e=t.parentElement;if(null!==e&&fG(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&AK(n)){const n=e.lastChild;if(n===t||n.previousSibling===t&&AK(n))return!0}}return!1}(t)||function(t){const e=t.parentElement;if(null!==e&&fG(e)){const n=e.firstChild;if(n===t||n.nextSibling===t&&AK(n))return!1;const r=e.lastChild;if(r===t||r.previousSibling===t&&AK(r))return!0}return!1}(t)?null:{conversion:OK,priority:0}}}static importJSON(t){return TK().updateFromJSON(t)}}function OK(t){return{node:TK()}}function TK(){return iG(new PK)}function NK(t){return t instanceof PK}function AK(t){return pZ(t)&&/^( |\t|\r?\n)+$/.test(t.textContent||"")}function DK(t,e){return 16&e?"code":128&e?"mark":32&e?"sub":64&e?"sup":null}function LK(t,e){return 1&e?"strong":2&e?"em":"span"}function IK(t,e,n,r,i){const o=r.classList;let a=VZ(i,"base");void 0!==a&&o.add(...a),a=VZ(i,"underlineStrikethrough");let s=!1;const l=8&e&&4&e;void 0!==a&&(8&n&&4&n?(s=!0,l||o.add(...a)):l&&o.remove(...a));for(const t in zU){const r=zU[t];if(a=VZ(i,t),void 0!==a)if(n&r){if(s&&("underline"===t||"strikethrough"===t)){e&r&&o.remove(...a);continue}e&r&&(!l||"underline"!==t)&&"strikethrough"!==t||o.add(...a)}else e&r&&o.remove(...a)}}function zK(t,e,n){const r=e.firstChild,i=n.isComposing(),o=t+(i?OU:"");if(null==r)e.textContent=o;else{const t=r.nodeValue;if(t!==o)if(i||hU){const[e,n,i]=function(t,e){const n=t.length,r=e.length;let i=0,o=0;for(;i<n&&i<r&&t[i]===e[i];)i++;for(;o+i<n&&o+i<r&&t[n-o-1]===e[r-o-1];)o++;return[i,n-i-o,e.slice(i,r-o)]}(t,o);0!==n&&r.deleteData(e,n),r.insertData(e,i)}else r.nodeValue=o}}function RK(t,e,n,r,i,o){zK(i,t,e);const a=o.theme.text;void 0!==a&&IK(0,0,r,t,a)}function FK(t,e){const n=document.createElement(e);return n.appendChild(t),n}class $K extends MK{static getType(){return"text"}static clone(t){return new $K(t.__text,t.__key)}afterCloneFrom(t){super.afterCloneFrom(t),this.__text=t.__text,this.__format=t.__format,this.__style=t.__style,this.__mode=t.__mode,this.__detail=t.__detail}constructor(t="",e){super(e),this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return BU[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===bZ()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const e=zU[t];return!!(this.getFormat()&e)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(t,e){return mZ(this.getLatest().__format,t,e)}canHaveFormat(){return!0}createDOM(t,e){const n=this.__format,r=DK(0,n),i=LK(0,n),o=null===r?i:r,a=document.createElement(o);let s=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(i),a.appendChild(s)),RK(s,this,0,n,this.__text,t);const l=this.__style;return""!==l&&(a.style.cssText=l),a}updateDOM(t,e,n){const r=this.__text,i=t.__format,o=this.__format,a=DK(0,i),s=DK(0,o),l=LK(0,i),c=LK(0,o);if((null===a?l:a)!==(null===s?c:s))return!0;if(a===s&&l!==c){const t=e.firstChild;null==t&&HU(48);const i=document.createElement(c);return RK(i,this,0,o,r,n),e.replaceChild(i,t),!1}let u=e;null!==s&&null!==a&&(u=e.firstChild,null==u&&HU(49)),zK(r,u,this);const d=n.theme.text;void 0!==d&&i!==o&&IK(0,i,o,u,d);const h=t.__style,p=this.__style;return h!==p&&(e.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:VK,priority:0}),b:()=>({conversion:BK,priority:0}),code:()=>({conversion:XK,priority:0}),em:()=>({conversion:XK,priority:0}),i:()=>({conversion:XK,priority:0}),s:()=>({conversion:XK,priority:0}),span:()=>({conversion:jK,priority:0}),strong:()=>({conversion:XK,priority:0}),sub:()=>({conversion:XK,priority:0}),sup:()=>({conversion:XK,priority:0}),u:()=>({conversion:XK,priority:0})}}static importJSON(t){return UK().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTextContent(t.text).setFormat(t.format).setDetail(t.detail).setMode(t.mode).setStyle(t.style)}exportDOM(t){let{element:e}=super.exportDOM(t);return uG(e)||HU(132),e.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(e=FK(e,"b")),this.hasFormat("italic")&&(e=FK(e,"i")),this.hasFormat("strikethrough")&&(e=FK(e,"s")),this.hasFormat("underline")&&(e=FK(e,"u")),{element:e}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(t,e){}setFormat(t){const e=this.getWritable();return e.__format="string"==typeof t?zU[t]:t,e}setDetail(t){const e=this.getWritable();return e.__detail="string"==typeof t?RU[t]:t,e}setStyle(t){const e=this.getWritable();return e.__style=t,e}toggleFormat(t){const e=mZ(this.getFormat(),t,null);return this.setFormat(e)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const e=jU[t];if(this.__mode===e)return this;const n=this.getWritable();return n.__mode=e,n}setTextContent(t){if(this.__text===t)return this;const e=this.getWritable();return e.__text=t,e}select(t,e){IJ();let n=t,r=e;const i=xJ(),o=this.getTextContent(),a=this.__key;if("string"==typeof o){const t=o.length;void 0===n&&(n=t),void 0===r&&(r=t)}else n=0,r=0;if(!aJ(i))return vJ(a,n,a,r,"text","text");{const t=bZ();t!==i.anchor.key&&t!==i.focus.key||yZ(a),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,e,n,r){const i=this.getWritable(),o=i.__text,a=n.length;let s=t;s<0&&(s=a+s,s<0&&(s=0));const l=xJ();if(r&&aJ(l)){const e=t+a;l.setTextNodeRange(i,e,i,e)}const c=o.slice(0,s)+n+o.slice(s+e);return i.__text=c,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){IJ();const e=this.getLatest(),n=e.getTextContent(),r=e.__key,i=bZ(),o=new Set(t),a=[],s=n.length;let l="";for(let t=0;t<s;t++)""!==l&&o.has(t)&&(a.push(l),l=""),l+=n[t];""!==l&&a.push(l);const c=a.length;if(0===c)return[];if(a[0]===n)return[e];const u=a[0],d=e.getParent();let h;const p=e.getFormat(),f=e.getStyle(),m=e.__detail;let g=!1;e.isSegmented()?(h=UK(u),h.__format=p,h.__style=f,h.__detail=m,g=!0):(h=e.getWritable(),h.__text=u);const v=xJ(),y=[h];let b=u.length;for(let t=1;t<c;t++){const e=a[t],n=e.length,o=UK(e).getWritable();o.__format=p,o.__style=f,o.__detail=m;const s=o.__key,l=b+n;if(aJ(v)){const t=v.anchor,e=v.focus;t.key===r&&"text"===t.type&&t.offset>b&&t.offset<=l&&(t.key=s,t.offset-=b,v.dirty=!0),e.key===r&&"text"===e.type&&e.offset>b&&e.offset<=l&&(e.key=s,e.offset-=b,v.dirty=!0)}i===r&&yZ(s),b=l,y.push(o)}if(null!==d){!function(t){const e=t.getPreviousSibling(),n=t.getNextSibling();null!==e&&vZ(e),null!==n&&vZ(n)}(this);const t=d.getWritable(),e=this.getIndexWithinParent();g?(t.splice(e,0,y),this.remove()):t.splice(e,1,y),aJ(v)&&wJ(v,d,e,c-1)}return y}mergeWithSibling(t){const e=t===this.getPreviousSibling();e||t===this.getNextSibling()||HU(50);const n=this.__key,r=t.__key,i=this.__text,o=i.length;bZ()===r&&yZ(n);const a=xJ();if(aJ(a)){const i=a.anchor,s=a.focus;null!==i&&i.key===r&&(CJ(i,e,n,t,o),a.dirty=!0),null!==s&&s.key===r&&(CJ(s,e,n,t,o),a.dirty=!0)}const s=t.__text,l=e?s+i:i+s;this.setTextContent(l);const c=this.getWritable();return t.remove(),c}isTextEntity(){return!1}}function jK(t){return{forChild:GK(t.style),node:null}}function BK(t){const e=t,n="normal"===e.style.fontWeight;return{forChild:GK(e.style,n?void 0:"bold"),node:null}}const HK=new WeakMap;function WK(t){if(!uG(t))return!1;if("PRE"===t.nodeName)return!0;const e=t.style.whiteSpace;return"string"==typeof e&&e.startsWith("pre")}function VK(t){const e=t;null===t.parentElement&&HU(129);let n=e.textContent||"";if(null!==function(t){let e,n=t.parentNode;const r=[t];for(;null!==n&&void 0===(e=HK.get(n))&&!WK(n);)r.push(n),n=n.parentNode;const i=void 0===e?n:e;for(let t=0;t<r.length;t++)HK.set(r[t],i);return i}(e)){const t=n.split(/(\r?\n|\t)/),e=[],r=t.length;for(let n=0;n<r;n++){const r=t[n];"\n"===r||"\r\n"===r?e.push(TK()):"\t"===r?e.push(JK()):""!==r&&e.push(UK(r))}return{node:e}}if(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," "),""===n)return{node:null};if(" "===n[0]){let t=e,r=!0;for(;null!==t&&null!==(t=YK(t,!1));){const e=t.textContent||"";if(e.length>0){/[ \t\n]$/.test(e)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let t=e,r=!0;for(;null!==t&&null!==(t=YK(t,!0));)if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}:{node:UK(n)}}function YK(t,e){let n=t;for(;;){let t;for(;null===(t=e?n.nextSibling:n.previousSibling);){const t=n.parentElement;if(null===t)return null;n=t}if(n=t,uG(n)){const t=n.style.display;if(""===t&&!pG(n)||""!==t&&!t.startsWith("inline"))return null}let r=n;for(;null!==(r=e?n.firstChild:n.lastChild);)n=r;if(pZ(n))return n;if("BR"===n.nodeName)return null}}const qK={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function XK(t){const e=qK[t.nodeName.toLowerCase()];return void 0===e?{node:null}:{forChild:GK(t.style,e),node:null}}function UK(t=""){return iG(new $K(t))}function ZK(t){return t instanceof $K}function GK(t,e){const n=t.fontWeight,r=t.textDecoration.split(" "),i="700"===n||"bold"===n,o=r.includes("line-through"),a="italic"===t.fontStyle,s=r.includes("underline"),l=t.verticalAlign;return t=>ZK(t)?(i&&!t.hasFormat("bold")&&t.toggleFormat("bold"),o&&!t.hasFormat("strikethrough")&&t.toggleFormat("strikethrough"),a&&!t.hasFormat("italic")&&t.toggleFormat("italic"),s&&!t.hasFormat("underline")&&t.toggleFormat("underline"),"sub"!==l||t.hasFormat("subscript")||t.toggleFormat("subscript"),"super"!==l||t.hasFormat("superscript")||t.toggleFormat("superscript"),e&&!t.hasFormat(e)&&t.toggleFormat(e),t):t}class KK extends $K{static getType(){return"tab"}static clone(t){return new KK(t.__key)}constructor(t){super("\t",t),this.__detail=2}static importDOM(){return null}createDOM(t){const e=super.createDOM(t),n=VZ(t.theme,"tab");return void 0!==n&&e.classList.add(...n),e}static importJSON(t){return JK().updateFromJSON(t)}setTextContent(t){return"\t"!==t&&""!==t&&HU(126),super.setTextContent(t)}setDetail(t){return 2!==t&&HU(127),this}setMode(t){return"normal"!==t&&HU(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function JK(){return iG(new KK)}function QK(t){return t instanceof KK}class tJ{constructor(t,e,n){this._selection=null,this.key=t,this.offset=e,this.type=n}is(t){return this.key===t.key&&this.offset===t.offset&&this.type===t.type}isBefore(t){let e=this.getNode(),n=t.getNode();const r=this.offset,i=t.offset;if(eQ(e)){const t=e.getDescendantByIndex(r);e=null!=t?t:e}if(eQ(n)){const t=n.getDescendantByIndex(i);n=null!=t?t:n}return e===n?r<i:e.isBefore(n)}getNode(){const t=xZ(this.key);return null===t&&HU(20),t}set(t,e,n){const r=this._selection,i=this.key;this.key=t,this.offset=e,this.type=n,LJ()||(bZ()===i&&yZ(t),null!==r&&(r.setCachedNodes(null),r.dirty=!0))}}function eJ(t,e,n){return new tJ(t,e,n)}function nJ(t,e){let n=e.__key,r=t.offset,i="element";if(ZK(e)){i="text";const t=e.getTextContentSize();r>t&&(r=t)}else if(!eQ(e)){const t=e.getNextSibling();if(ZK(t))n=t.__key,r=0,i="text";else{const t=e.getParent();t&&(n=t.__key,r=e.getIndexWithinParent()+1)}}t.set(n,r,i)}function rJ(t,e){if(eQ(e)){const n=e.getLastDescendant();eQ(n)||ZK(n)?nJ(t,n):nJ(t,e)}else nJ(t,e)}function iJ(t,e,n,r){t.key=e,t.offset=n,t.type=r}class oJ{constructor(t){this._cachedNodes=null,this._nodes=t,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){if(!lJ(t))return!1;const e=this._nodes,n=t._nodes;return e.size===n.size&&Array.from(e).every((t=>n.has(t)))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(t){this.dirty=!0,this._nodes.add(t),this._cachedNodes=null}delete(t){this.dirty=!0,this._nodes.delete(t),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(t){return this._nodes.has(t)}clone(){return new oJ(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(t){}insertText(){}insertNodes(t){const e=this.getNodes(),n=e.length,r=e[n-1];let i;if(ZK(r))i=r.select();else{const t=r.getIndexWithinParent()+1;i=r.getParentOrThrow().select(t,t)}i.insertNodes(t);for(let t=0;t<n;t++)e[t].remove()}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this._nodes,n=[];for(const t of e){const e=xZ(t);null!==e&&n.push(e)}return LJ()||(this._cachedNodes=n),n}getTextContent(){const t=this.getNodes();let e="";for(let n=0;n<t.length;n++)e+=t[n].getTextContent();return e}}function aJ(t){return t instanceof sJ}class sJ{constructor(t,e,n,r){this.anchor=t,this.focus=e,t._selection=this,e._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(t){this._cachedNodes=t}is(t){return!!aJ(t)&&this.anchor.is(t.anchor)&&this.focus.is(t.focus)&&this.format===t.format&&this.style===t.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const t=this._cachedNodes;if(null!==t)return t;const e=this.anchor,n=this.focus,r=e.isBefore(n),i=r?e:n,o=r?n:e;let a=i.getNode(),s=o.getNode();const l=eQ(a)&&i.offset>0&&i.offset>=a.getChildrenSize(),c=i.offset,u=o.offset;if(eQ(a)){const t=a.getDescendantByIndex(c);a=null!=t?t:a}if(eQ(s)){let t=s.getDescendantByIndex(u);null!==t&&t!==a&&s.getChildAtIndex(u)===t&&(t=t.getPreviousSibling()),s=null!=t?t:s}let d;if(a.is(s))d=eQ(a)&&a.getChildrenSize()>0?[]:[a];else if(d=a.getNodesBetween(s),l){const t=d.findIndex((t=>!t.is(a)&&!t.isBefore(a)));d.splice(0,t)}return LJ()||(this._cachedNodes=d),d}setTextNodeRange(t,e,n,r){iJ(this.anchor,t.__key,e,"text"),iJ(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const t=this.getNodes();if(0===t.length)return"";const e=t[0],n=t[t.length-1],r=this.anchor,i=this.focus,o=r.isBefore(i),[a,s]=uJ(this);let l="",c=!0;for(let u=0;u<t.length;u++){const d=t[u];if(eQ(d)&&!d.isInline())c||(l+="\n"),c=!d.isEmpty();else if(c=!1,ZK(d)){let t=d.getTextContent();d===e?d===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(t=a<s?t.slice(a,s):t.slice(s,a)):t=o?t.slice(a):t.slice(s):d===n&&(t=o?t.slice(0,s):t.slice(0,a)),l+=t}else!iQ(d)&&!NK(d)||d===n&&this.isCollapsed()||(l+=d.getTextContent())}return l}applyDOMRange(t){const e=FJ(),n=e.getEditorState()._selection,r=mJ(t.startContainer,t.startOffset,t.endContainer,t.endOffset,e,n);if(null===r)return;const[i,o]=r;iJ(this.anchor,i.key,i.offset,i.type),iJ(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}clone(){const t=this.anchor,e=this.focus;return new sJ(eJ(t.key,t.offset,t.type),eJ(e.key,e.offset,e.type),this.format,this.style)}toggleFormat(t){this.format=mZ(this.format,t,null),this.dirty=!0}setStyle(t){this.style=t,this.dirty=!0}hasFormat(t){const e=zU[t];return!!(this.format&e)}insertRawText(t){const e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){const r=e[t];"\n"===r||"\r\n"===r?n.push(TK()):"\t"===r?n.push(JK()):n.push(UK(r))}this.insertNodes(n)}insertText(t){const e=this.anchor,n=this.focus,r=this.format,i=this.style;let o=e,a=n;!this.isCollapsed()&&n.isBefore(e)&&(o=n,a=e),"element"===o.type&&function(t,e,n,r){const i=t.getNode(),o=i.getChildAtIndex(t.offset),a=UK(),s=aQ(i)?fQ().append(a):a;a.setFormat(n),a.setStyle(r),null===o?i.append(s):o.insertBefore(s),t.is(e)&&e.set(a.__key,0,"text"),t.set(a.__key,0,"text")}(o,a,r,i);const s=o.offset;let l=a.offset;const c=this.getNodes(),u=c.length;let d=c[0];ZK(d)||HU(26);const h=d.getTextContent().length,p=d.getParentOrThrow();let f=c[u-1];if(1===u&&"element"===a.type&&(l=h,a.set(o.key,l,"text")),this.isCollapsed()&&s===h&&(d.isSegmented()||d.isToken()||!d.canInsertTextAfter()||!p.canInsertTextAfter()&&null===d.getNextSibling())){let e=d.getNextSibling();if(ZK(e)&&e.canInsertTextBefore()&&!hZ(e)||(e=UK(),e.setFormat(r),e.setStyle(i),p.canInsertTextAfter()?d.insertAfter(e):p.insertAfter(e)),e.select(0,0),d=e,""!==t)return void this.insertText(t)}else if(this.isCollapsed()&&0===s&&(d.isSegmented()||d.isToken()||!d.canInsertTextBefore()||!p.canInsertTextBefore()&&null===d.getPreviousSibling())){let e=d.getPreviousSibling();if(ZK(e)&&!hZ(e)||(e=UK(),e.setFormat(r),p.canInsertTextBefore()?d.insertBefore(e):p.insertBefore(e)),e.select(),d=e,""!==t)return void this.insertText(t)}else if(d.isSegmented()&&s!==h){const t=UK(d.getTextContent());t.setFormat(r),d.replace(t),d=t}else if(!this.isCollapsed()&&""!==t){const e=f.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||eQ(e)&&(!e.canInsertTextBefore()||!e.canInsertTextAfter()))return this.insertText(""),fJ(this.anchor,this.focus,null),void this.insertText(t)}if(1===u){if(d.isToken()){const e=UK(t);return e.select(),void d.replace(e)}const e=d.getFormat(),n=d.getStyle();if(s!==l||e===r&&n===i){if(QK(d)){const e=UK(t);return e.setFormat(r),e.setStyle(i),e.select(),void d.replace(e)}}else{if(""!==d.getTextContent()){const e=UK(t);if(e.setFormat(r),e.setStyle(i),e.select(),0===s)d.insertBefore(e,!1);else{const[t]=d.splitText(s);t.insertAfter(e,!1)}return void(e.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=t.length))}d.setFormat(r),d.setStyle(i)}const o=l-s;d=d.spliceText(s,o,t,!0),""===d.getTextContent()?d.remove():"text"===this.anchor.type&&(d.isComposing()?this.anchor.offset-=t.length:(this.format=e,this.style=n))}else{const e=new Set([...d.getParentKeys(),...f.getParentKeys()]),n=eQ(d)?d:d.getParentOrThrow();let r=eQ(f)?f:f.getParentOrThrow(),i=f;if(!n.is(r)&&r.isInline())do{i=r,r=r.getParentOrThrow()}while(r.isInline());if("text"===a.type&&(0!==l||""===f.getTextContent())||"element"===a.type&&f.getIndexWithinParent()<l)if(ZK(f)&&!f.isToken()&&l!==f.getTextContentSize()){if(f.isSegmented()){const t=UK(f.getTextContent());f.replace(t),f=t}aQ(a.getNode())||"text"!==a.type||(f=f.spliceText(0,l,"")),e.add(f.__key)}else{const t=f.getParentOrThrow();t.canBeEmpty()||1!==t.getChildrenSize()?f.remove():t.remove()}else e.add(f.__key);const o=r.getChildren(),p=new Set(c),m=n.is(r),g=n.isInline()&&null===d.getNextSibling()?n:d;for(let t=o.length-1;t>=0;t--){const e=o[t];if(e.is(d)||eQ(e)&&e.isParentOf(d))break;e.isAttached()&&(!p.has(e)||e.is(i)?m||g.insertAfter(e,!1):e.remove())}if(!m){let t=r,n=null;for(;null!==t;){const r=t.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(e.delete(t.__key),n=t),t=t.getParent()}}if(d.isToken())if(s===h)d.select();else{const e=UK(t);e.select(),d.replace(e)}else d=d.spliceText(s,h-s,t,!0),""===d.getTextContent()?d.remove():d.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=t.length);for(let t=1;t<u;t++){const n=c[t],r=n.__key;e.has(r)||n.remove()}}}removeText(){if(this.isCollapsed())return;const{anchor:t,focus:e}=this,n=this.getNodes(),r=this.isBackward()?e:t,i=this.isBackward()?t:e;let o=r.getNode(),a=i.getNode();const s=gG(o,mG),l=gG(a,mG);ZK(o)&&o.isToken()&&r.offset<o.getTextContentSize()&&(r.offset=0),i.offset>0&&ZK(a)&&a.isToken()&&(i.offset=a.getTextContentSize());for(const t of n)tG(o,t)||tG(a,t)||t.getKey()===o.getKey()||t.getKey()===a.getKey()||t.remove();const c=(t,e)=>{if(""===t.getTextContent())t.remove();else if(0!==e&&hZ(t)){const e=UK(t.getTextContent());return e.setFormat(t.getFormat()),e.setStyle(t.getStyle()),t.replace(e)}};if(o===a&&ZK(o)){const n=Math.abs(e.offset-t.offset);return o.spliceText(r.offset,n,"",!0),void c(o,n)}if(ZK(o)){const t=o.getTextContentSize()-r.offset;o.spliceText(r.offset,t,""),o=c(o,t)||o}ZK(a)&&(a.spliceText(0,i.offset,""),a=c(a,i.offset)||a),o.isAttached()&&ZK(o)?o.selectEnd():a.isAttached()&&ZK(a)&&a.selectStart(),eQ(s)&&eQ(l)&&s!==l&&(s.append(...l.getChildren()),l.remove(),i.set(r.key,r.offset,r.type))}formatText(t,e=null){if(this.isCollapsed())return this.toggleFormat(t),void yZ(null);const n=this.getNodes(),r=[];for(const t of n)ZK(t)&&r.push(t);const i=e=>{n.forEach((n=>{if(eQ(n)){const r=n.getFormatFlags(t,e);n.setTextFormat(r)}}))},o=r.length;if(0===o)return this.toggleFormat(t),yZ(null),void i(e);const a=this.anchor,s=this.focus,l=this.isBackward(),c=l?s:a,u=l?a:s;let d=0,h=r[0],p="element"===c.type?0:c.offset;if("text"===c.type&&p===h.getTextContentSize()&&(d=1,h=r[1],p=0),null==h)return;const f=h.getFormatFlags(t,e);i(f);const m=o-1;let g=r[m];const v="text"===u.type?u.offset:g.getTextContentSize();if(h.is(g)){if(p===v)return;if(hZ(h)||0===p&&v===h.getTextContentSize())h.setFormat(f);else{const t=h.splitText(p,v),e=0===p?t[0]:t[1];e.setFormat(f),"text"===c.type&&c.set(e.__key,0,"text"),"text"===u.type&&u.set(e.__key,v-p,"text")}return void(this.format=f)}0===p||hZ(h)||([,h]=h.splitText(p),p=0),h.setFormat(f);const y=g.getFormatFlags(t,f);v>0&&(v===g.getTextContentSize()||hZ(g)||([g]=g.splitText(v)),g.setFormat(y));for(let e=d+1;e<m;e++){const n=r[e],i=n.getFormatFlags(t,y);n.setFormat(i)}"text"===c.type&&c.set(h.__key,p,"text"),"text"===u.type&&u.set(g.__key,v,"text"),this.format=f|y}insertNodes(t){if(0===t.length)return;if("root"===this.anchor.key){this.insertParagraph();const e=xJ();return aJ(e)||HU(134),e.insertNodes(t)}const e=(this.isBackward()?this.focus:this.anchor).getNode(),n=gG(e,mG),r=t[t.length-1];if(eQ(n)&&"__language"in n){if("__language"in t[0])this.insertText(t[0].getTextContent());else{const e=EJ(this);n.splice(e,0,t),r.selectEnd()}return}if(!t.some((t=>(eQ(t)||iQ(t))&&!t.isInline()))){eQ(n)||HU(211,e.constructor.name,e.getType());const i=EJ(this);return n.splice(i,0,t),void r.selectEnd()}const i=function(t){const e=fQ();let n=null;for(let r=0;r<t.length;r++){const i=t[r],o=NK(i);if(o||iQ(i)&&i.isInline()||eQ(i)&&i.isInline()||ZK(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),e.append(n),o))continue;null!==n&&n.append(i)}else e.append(i),n=null}return e}(t),o=i.getLastDescendant(),a=i.getChildren(),s=eQ(n)&&n.isEmpty()?null:this.insertParagraph(),l=a[a.length-1];let c=a[0];var u;eQ(u=c)&&mG(u)&&!u.isEmpty()&&eQ(n)&&(!n.isEmpty()||n.canMergeWhenEmpty())&&(eQ(n)||HU(211,e.constructor.name,e.getType()),n.append(...c.getChildren()),c=a[1]),c&&(null===n&&HU(212,e.constructor.name,e.getType()),function(t,e){const n=e.getParentOrThrow().getLastChild();let r=e;const i=[e];for(;r!==n;)r.getNextSibling()||HU(140),r=r.getNextSibling(),i.push(r);let o=t;for(const t of i)o=o.insertAfter(t)}(n,c));const d=gG(o,mG);s&&eQ(d)&&(s.canMergeWhenEmpty()||mG(l))&&(d.append(...s.getChildren()),s.remove()),eQ(n)&&n.isEmpty()&&n.remove(),o.selectEnd();const h=eQ(n)?n.getLastChild():null;NK(h)&&d!==n&&h.remove()}insertParagraph(){if("root"===this.anchor.key){const t=fQ();return EZ().splice(this.anchor.offset,0,[t]),t.select(),t}const t=EJ(this),e=gG(this.anchor.getNode(),mG);eQ(e)||HU(213);const n=e.getChildAtIndex(t),r=n?[n,...n.getNextSiblings()]:[],i=e.insertNewAfter(this,!1);return i?(i.append(...r),i.selectStart(),i):null}insertLineBreak(t){const e=TK();if(this.insertNodes([e]),t){const t=e.getParentOrThrow(),n=e.getIndexWithinParent();t.select(n,n)}}extract(){const t=this.getNodes(),e=t.length,n=e-1,r=this.anchor,i=this.focus;let o=t[0],a=t[n];const[s,l]=uJ(this);if(0===e)return[];if(1===e){if(ZK(o)&&!this.isCollapsed()){const t=s>l?l:s,e=s>l?s:l,n=o.splitText(t,e),r=0===t?n[0]:n[1];return null!=r?[r]:[]}return[o]}const c=r.isBefore(i);if(ZK(o)){const e=c?s:l;e===o.getTextContentSize()?t.shift():0!==e&&([,o]=o.splitText(e),t[0]=o)}if(ZK(a)){const e=a.getTextContent().length,r=c?l:s;0===r?t.pop():r!==e&&([a]=a.splitText(r),t[n]=a)}return t}modify(t,e,n){const r=this.focus,i=this.anchor,o="move"===t,a=XZ(r,e);if(iQ(a)&&!a.isIsolated()){if(o&&a.isKeyboardSelectable()){const t=yJ();return t.add(a.__key),void PZ(t)}const t=e?a.getPreviousSibling():a.getNextSibling();if(ZK(t)){const n=t.__key,a=e?t.getTextContent().length:0;return r.set(n,a,"text"),void(o&&i.set(n,a,"text"))}{const n=a.getParentOrThrow();let s,l;return eQ(t)?(l=t.__key,s=e?t.getChildrenSize():0):(s=a.getIndexWithinParent(),l=n.__key,e||s++),r.set(l,s,"element"),void(o&&i.set(l,s,"element"))}}const s=FJ(),l=lG(s._window);if(!l)return;const c=s._blockCursorElement,u=s._rootElement;if(null===u||null===c||!eQ(a)||a.isInline()||a.canBeEmpty()||sG(c,s,u),function(t,e,n,r){t.modify(e,n,r)}(l,t,e?"backward":"forward",n),l.rangeCount>0){const t=l.getRangeAt(0),n=this.anchor.getNode(),r=aQ(n)?n:function(t){let e=t.getParentOrThrow();for(;null!==e;){if(rG(e))return e;e=e.getParentOrThrow()}return e}(n);if(this.applyDOMRange(t),this.dirty=!0,!o){const n=this.getNodes(),i=[];let o=!1;for(let t=0;t<n.length;t++){const e=n[t];tG(e,r)?i.push(e):o=!0}if(o&&i.length>0)if(e){const t=i[0];eQ(t)?t.selectStart():t.getParentOrThrow().selectStart()}else{const t=i[i.length-1];eQ(t)?t.selectEnd():t.getParentOrThrow().selectEnd()}l.anchorNode===t.startContainer&&l.anchorOffset===t.startOffset||function(t){const e=t.focus,n=t.anchor,r=n.key,i=n.offset,o=n.type;iJ(n,e.key,e.offset,e.type),iJ(e,r,i,o),t._cachedNodes=null}(this)}}}forwardDeletion(t,e,n){if(!n&&("element"===t.type&&eQ(e)&&t.offset===e.getChildrenSize()||"text"===t.type&&t.offset===e.getTextContentSize())){const t=e.getParent(),n=e.getNextSibling()||(null===t?null:t.getNextSibling());if(eQ(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(t){const e=this.isCollapsed();if(this.isCollapsed()){const e=this.anchor;let n=e.getNode();if(this.forwardDeletion(e,n,t))return;const r=this.focus,i=XZ(r,t);if(iQ(i)&&!i.isIsolated()){if(i.isKeyboardSelectable()&&eQ(n)&&0===n.getChildrenSize()){n.remove();const t=yJ();t.add(i.__key),PZ(t)}else i.remove(),FJ().dispatchCommand(yX,void 0);return}if(!t&&eQ(i)&&eQ(n)&&n.isEmpty())return n.remove(),void i.selectStart();if(this.modify("extend",t,"character"),this.isCollapsed()){if(t&&0===e.offset&&("element"===e.type?e.getNode():e.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const i="text"===r.type?r.getNode():null;if(n="text"===e.type?e.getNode():null,null!==i&&i.isSegmented()){const e=r.offset,o=i.getTextContentSize();if(i.is(n)||t&&e!==o||!t&&0!==e)return void dJ(i,t,e)}else if(null!==n&&n.isSegmented()){const r=e.offset,o=n.getTextContentSize();if(n.is(i)||t&&0!==r||!t&&r!==o)return void dJ(n,t,r)}!function(t,e){const n=t.anchor,r=t.focus,i=n.getNode();if(i===r.getNode()&&"text"===n.type&&"text"===r.type){const t=n.offset,o=r.offset,a=t<o,s=a?t:o,l=a?o:t,c=l-1;s!==c&&(NZ(i.getTextContent().slice(s,l))||(e?r.offset=c:n.offset=c))}}(this,t)}}if(this.removeText(),t&&!e&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){const t=this.anchor.getNode();t.isEmpty()&&aQ(t.getParent())&&0===t.getIndexWithinParent()&&t.collapseAtStart(this)}}deleteLine(t){if(this.isCollapsed()){const e="element"===this.anchor.type;if(e&&this.insertText(" "),this.modify("extend",t,"lineboundary"),this.isCollapsed()&&0===this.anchor.offset&&this.modify("extend",t,"character"),e){const e=t?this.anchor:this.focus;e.set(e.key,e.offset+1,e.type)}}this.removeText()}deleteWord(t){if(this.isCollapsed()){const e=this.anchor,n=e.getNode();if(this.forwardDeletion(e,n,t))return;this.modify("extend",t,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function lJ(t){return t instanceof oJ}function cJ(t){const e=t.offset;if("text"===t.type)return e;const n=t.getNode();return e===n.getChildrenSize()?n.getTextContent().length:0}function uJ(t){const e=t.getStartEndPoints();if(null===e)return[0,0];const[n,r]=e;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[cJ(n),cJ(r)]}function dJ(t,e,n){const r=t,i=r.getTextContent().split(/(?=\s)/g),o=i.length;let a=0,s=0;for(let t=0;t<o;t++){const r=t===o-1;if(s=a,a+=i[t].length,e&&a===n||a>n||r){i.splice(t,1),r&&(s=void 0);break}}const l=i.join("").trim();""===l?r.remove():(r.setTextContent(l),r.select(s,s))}function hJ(t,e,n,r){let i,o=e;if(uG(t)){let a=!1;const s=t.childNodes,l=s.length,c=r._blockCursorElement;o===l&&(a=!0,o=l-1);let u=s[o],d=!1;if(u===c)u=s[o+1],d=!0;else if(null!==c){const n=c.parentNode;t===n&&e>Array.prototype.indexOf.call(n.children,c)&&o--}if(i=OZ(u),ZK(i))o=TZ(i,a);else{let s=OZ(t);if(null===s)return null;if(eQ(s)){const l=r.getElementByKey(s.getKey());null===l&&HU(214);const c=s.getDOMSlot(l);[s,o]=c.resolveChildIndex(s,l,t,e),eQ(s)||HU(215),a&&o>=s.getChildrenSize()&&(o=Math.max(0,s.getChildrenSize()-1));let u=s.getChildAtIndex(o);if(eQ(u)&&function(t,e,n){const r=t.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(u,0,n)){const t=a?u.getLastDescendant():u.getFirstDescendant();null===t?s=u:(u=t,s=eQ(u)?u:u.getParentOrThrow()),o=0}ZK(u)?(i=u,s=null,o=TZ(u,a)):u!==s&&a&&!d&&(eQ(s)||HU(216),o=Math.min(s.getChildrenSize(),o+1))}else{const n=s.getIndexWithinParent();o=0===e&&iQ(s)&&OZ(t)===s?n:n+1,s=s.getParentOrThrow()}if(eQ(s))return eJ(s.__key,o,"element")}}else i=OZ(t);return ZK(i)?eJ(i.__key,o,"text"):null}function pJ(t,e,n){const r=t.offset,i=t.getNode();if(0===r){const r=i.getPreviousSibling(),o=i.getParent();if(e){if((n||!e)&&null===r&&eQ(o)&&o.isInline()){const e=o.getPreviousSibling();ZK(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)}}else eQ(r)&&!n&&r.isInline()?(t.key=r.__key,t.offset=r.getChildrenSize(),t.type="element"):ZK(r)&&(t.key=r.__key,t.offset=r.getTextContent().length)}else if(r===i.getTextContent().length){const r=i.getNextSibling(),o=i.getParent();if(e&&eQ(r)&&r.isInline())t.key=r.__key,t.offset=0,t.type="element";else if((n||e)&&null===r&&eQ(o)&&o.isInline()&&!o.canInsertTextAfter()){const e=o.getNextSibling();ZK(e)&&(t.key=e.__key,t.offset=0)}}}function fJ(t,e,n){if("text"===t.type&&"text"===e.type){const r=t.isBefore(e),i=t.is(e);pJ(t,r,i),pJ(e,!r,i),i&&(e.key=t.key,e.offset=t.offset,e.type=t.type);const o=FJ();if(o.isComposing()&&o._compositionKey!==t.key&&aJ(n)){const r=n.anchor,i=n.focus;iJ(t,r.key,r.offset,r.type),iJ(e,i.key,i.offset,i.type)}}}function mJ(t,e,n,r,i,o){if(null===t||null===n||!lZ(i,t,n))return null;const a=hJ(t,e,aJ(o)?o.anchor:null,i);if(null===a)return null;const s=hJ(n,r,aJ(o)?o.focus:null,i);if(null===s)return null;if("element"===a.type&&"element"===s.type){const e=OZ(t),r=OZ(n);if(iQ(e)&&iQ(r))return null}return fJ(a,s,o),[a,s]}function gJ(t){return eQ(t)&&!t.isInline()}function vJ(t,e,n,r,i,o){const a=RJ(),s=new sJ(eJ(t,e,i),eJ(n,r,o),0,"");return s.dirty=!0,a._selection=s,s}function yJ(){return new oJ(new Set)}function bJ(t,e,n,r){const i=n._window;if(null===i)return null;const o=r||i.event,a=o?o.type:void 0,s="selectionchange"===a,l=!VU&&(s||"beforeinput"===a||"compositionstart"===a||"compositionend"===a||"click"===a&&o&&3===o.detail||"drop"===a||void 0===a);let c,u,d,h;if(aJ(t)&&!l)return t.clone();if(null===e)return null;if(c=e.anchorNode,u=e.focusNode,d=e.anchorOffset,h=e.focusOffset,s&&aJ(t)&&!lZ(n,c,u))return t.clone();const p=mJ(c,d,u,h,n,t);if(null===p)return null;const[f,m]=p;return new sJ(f,m,aJ(t)?t.format:0,aJ(t)?t.style:"")}function xJ(){return RJ()._selection}function _J(){return FJ()._editorState._selection}function wJ(t,e,n,r=1){const i=t.anchor,o=t.focus,a=i.getNode(),s=o.getNode();if(!e.is(a)&&!e.is(s))return;const l=e.__key;if(t.isCollapsed()){const e=i.offset;if(n<=e&&r>0||n<e&&r<0){const n=Math.max(0,e+r);i.set(l,n,"element"),o.set(l,n,"element"),SJ(t)}}else{const a=t.isBackward(),s=a?o:i,c=s.getNode(),u=a?i:o,d=u.getNode();if(e.is(c)){const t=s.offset;(n<=t&&r>0||n<t&&r<0)&&s.set(l,Math.max(0,t+r),"element")}if(e.is(d)){const t=u.offset;(n<=t&&r>0||n<t&&r<0)&&u.set(l,Math.max(0,t+r),"element")}}SJ(t)}function SJ(t){const e=t.anchor,n=e.offset,r=t.focus,i=r.offset,o=e.getNode(),a=r.getNode();if(t.isCollapsed()){if(!eQ(o))return;const t=o.getChildrenSize(),i=n>=t,a=i?o.getChildAtIndex(t-1):o.getChildAtIndex(n);if(ZK(a)){let t=0;i&&(t=a.getTextContentSize()),e.set(a.__key,t,"text"),r.set(a.__key,t,"text")}}else{if(eQ(o)){const t=o.getChildrenSize(),r=n>=t,i=r?o.getChildAtIndex(t-1):o.getChildAtIndex(n);if(ZK(i)){let t=0;r&&(t=i.getTextContentSize()),e.set(i.__key,t,"text")}}if(eQ(a)){const t=a.getChildrenSize(),e=i>=t,n=e?a.getChildAtIndex(t-1):a.getChildAtIndex(i);if(ZK(n)){let t=0;e&&(t=n.getTextContentSize()),r.set(n.__key,t,"text")}}}}function kJ(t,e,n,r,i){let o=null,a=0,s=null;null!==r?(o=r.__key,ZK(r)?(a=r.getTextContentSize(),s="text"):eQ(r)&&(a=r.getChildrenSize(),s="element")):null!==i&&(o=i.__key,ZK(i)?s="text":eQ(i)&&(s="element")),null!==o&&null!==s?t.set(o,a,s):(a=e.getIndexWithinParent(),-1===a&&(a=n.getChildrenSize()),t.set(n.__key,a,"element"))}function CJ(t,e,n,r,i){"text"===t.type?(t.key=n,e||(t.offset+=i)):t.offset>r.getIndexWithinParent()&&(t.offset-=1)}function EJ(t){let e=t;t.isCollapsed()||e.removeText();const n=xJ();aJ(n)&&(e=n),aJ(e)||HU(161);const r=e.anchor;let i=r.getNode(),o=r.offset;for(;!mG(i);)[i,o]=MJ(i,o);return o}function MJ(t,e){const n=t.getParent();if(!n){const t=fQ();return EZ().append(t),t.select(),[EZ(),0]}if(ZK(t)){const r=t.splitText(e);if(0===r.length)return[n,t.getIndexWithinParent()];const i=0===e?0:1;return[n,r[0].getIndexWithinParent()+i]}if(!eQ(t)||0===e)return[n,t.getIndexWithinParent()];const r=t.getChildAtIndex(e);if(r){const n=new sJ(eJ(t.__key,e,"element"),eJ(t.__key,e,"element"),0,""),i=t.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,t.getIndexWithinParent()+1]}let PJ=null,OJ=null,TJ=!1,NJ=!1,AJ=0;const DJ={characterData:!0,childList:!0,subtree:!0};function LJ(){return TJ||null!==PJ&&PJ._readOnly}function IJ(){TJ&&HU(13)}function zJ(){AJ>99&&HU(14)}function RJ(){return null===PJ&&HU(195,$J()),PJ}function FJ(){return null===OJ&&HU(196,$J()),OJ}function $J(){let t=0;const e=new Set,n=yQ.version;if("undefined"!=typeof window)for(const r of document.querySelectorAll("[contenteditable]")){const i=dZ(r);if(cZ(i))t++;else if(i){let t=String(i.constructor.version||"<0.17.1");t===n&&(t+=" (separately built, likely a bundler configuration issue)"),e.add(t)}}let r=` Detected on the page: ${t} compatible editor(s) with version ${n}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function jJ(t,e,n){const r=e.__type,i=function(t,e){const n=t._nodes.get(e);return void 0===n&&HU(30,e),n}(t,r);let o=n.get(r);void 0===o&&(o=Array.from(i.transforms),n.set(r,o));const a=o.length;for(let t=0;t<a&&(o[t](e),e.isAttached());t++);}function BJ(t,e){return void 0!==t&&t.__key!==e&&t.isAttached()}function HJ(t,e){if(!e)return;const n=t._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const t of r)n.add(t)}function WJ(t){return VJ(t,FJ()._nodes)}function VJ(t,e){const n=t.type,r=e.get(n);void 0===r&&HU(17,n);const i=r.klass;t.type!==i.getType()&&HU(18,i.name);const o=i.importJSON(t),a=t.children;if(eQ(o)&&Array.isArray(a))for(let t=0;t<a.length;t++){const n=VJ(a[t],e);o.append(n)}return o}function YJ(t,e,n){const r=PJ,i=TJ,o=OJ;PJ=e,TJ=!0,OJ=t;try{return n()}finally{PJ=r,TJ=i,OJ=o}}function qJ(t,e){const n=t._pendingEditorState,r=t._rootElement,i=t._headless||null===r;if(null===n)return;const o=t._editorState,a=o._selection,s=n._selection,l=0!==t._dirtyType,c=PJ,u=TJ,d=OJ,h=t._updating,p=t._observer;let f=null;if(t._pendingEditorState=null,t._editorState=n,!i&&l&&null!==p){OJ=t,PJ=n,TJ=!1,t._updating=!0;try{const e=t._dirtyType,r=t._dirtyElements,i=t._dirtyLeaves;p.disconnect(),f=function(t,e,n,r,i,o){LG="",FG="",IG="",$G=2===r,BG=null,CG=n,kG=n._config,EG=n._nodes,MG=CG._listeners.mutation,PG=i,OG=o,TG=t._nodeMap,NG=e._nodeMap,jG=e._readOnly,AG=new Map(n._keyToDOMMap);const a=new Map;return DG=a,tK("root",null),CG=void 0,EG=void 0,PG=void 0,OG=void 0,TG=void 0,NG=void 0,kG=void 0,AG=void 0,DG=void 0,a}(o,n,t,e,r,i)}catch(e){if(e instanceof Error&&t._onError(e),NJ)throw e;return gQ(t,null,r,n),QU(t),t._dirtyType=2,NJ=!0,qJ(t,o),void(NJ=!1)}finally{p.observe(r,DJ),t._updating=h,PJ=c,TJ=u,OJ=d}}n._readOnly||(n._readOnly=!0);const m=t._dirtyLeaves,g=t._dirtyElements,v=t._normalizedNodes,y=t._updateTags,b=t._deferred;l&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),function(t,e){const n=t._decorators;let r=t._pendingDecorators||n;const i=e._nodeMap;let o;for(o in r)i.has(o)||(r===n&&(r=kZ(t)),delete r[o])}(t,n);const x=i?null:lG(t._window);if(t._editable&&null!==x&&(l||null===s||s.dirty)&&null!==r&&!y.has("skip-dom-selection")){OJ=t,PJ=n;try{if(null!==p&&p.disconnect(),l||null===s||s.dirty){const e=t._blockCursorElement;null!==e&&sG(e,t,r),function(t,e,n,r,i,o){const a=r.anchorNode,s=r.focusNode,l=r.anchorOffset,c=r.focusOffset,u=document.activeElement;if(i.has("collaboration")&&u!==o||null!==u&&sZ(u))return;if(!aJ(e))return void(null!==t&&lZ(n,a,s)&&r.removeAllRanges());const d=e.anchor,h=e.focus,p=d.key,f=h.key,m=KZ(n,p),g=KZ(n,f),v=d.offset,y=h.offset,b=e.format,x=e.style,_=e.isCollapsed();let w=m,S=g,k=!1;if("text"===d.type){w=fZ(m);const t=d.getNode();k=t.getFormat()!==b||t.getStyle()!==x}else aJ(t)&&"text"===t.anchor.type&&(k=!0);var C,E,M,P,O;if("text"===h.type&&(S=fZ(g)),null!==w&&null!==S&&(_&&(null===t||k||aJ(t)&&(t.format!==b||t.style!==x))&&(C=b,E=x,M=v,P=p,O=performance.now(),mK=[C,E,M,P,O]),l!==v||c!==y||a!==w||s!==S||"Range"===r.type&&_||(null!==u&&o.contains(u)||o.focus({preventScroll:!0}),"element"===d.type))){try{r.setBaseAndExtent(w,v,S,y)}catch(t){}if(!i.has("skip-scroll-into-view")&&e.isCollapsed()&&null!==o&&o===document.activeElement){const t=aJ(e)&&"element"===e.anchor.type?w.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==t){let e;if(t instanceof Text){const n=document.createRange();n.selectNode(t),e=n.getBoundingClientRect()}else e=t.getBoundingClientRect();!function(t,e,n){const r=QZ(n),i=eG(r);if(null===r||null===i)return;let{top:o,bottom:a}=e,s=0,l=0,c=n;for(;null!==c;){const e=c===r.body;if(e)s=0,l=nG(t).innerHeight;else{const t=c.getBoundingClientRect();s=t.top,l=t.bottom}let n=0;if(o<s?n=-(s-o):a>l&&(n=a-l),0!==n)if(e)i.scrollBy(0,n);else{const t=c.scrollTop;c.scrollTop+=n;const e=c.scrollTop-t;o-=e,a-=e}if(e)break;c=JZ(c)}}(n,e,o)}}dK=!0}}(a,s,t,x,y,r)}(function(t,e,n){let r=t._blockCursorElement;if(aJ(n)&&n.isCollapsed()&&"element"===n.anchor.type&&e.contains(document.activeElement)){const i=n.anchor,o=i.getNode(),a=i.offset;let s=!1,l=null;if(a===o.getChildrenSize())aG(o.getChildAtIndex(a-1))&&(s=!0);else{const e=o.getChildAtIndex(a);if(null!==e&&aG(e)){const n=e.getPreviousSibling();(null===n||aG(n))&&(s=!0,l=t.getElementByKey(e.__key))}}if(s){const n=t.getElementByKey(o.__key);return null===r&&(t._blockCursorElement=r=function(t){const e=t.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=e.blockCursor;if(void 0!==r){if("string"==typeof r){const t=WU(r);r=e.blockCursor=t}void 0!==r&&n.classList.add(...r)}return n}(t._config)),e.style.caretColor="transparent",void(null===l?n.appendChild(r):n.insertBefore(r,l))}}null!==r&&sG(r,t,e)})(t,r,s),null!==p&&p.observe(r,DJ)}finally{OJ=d,PJ=c}}null!==f&&function(t,e,n,r,i){const o=Array.from(t._listeners.mutation),a=o.length;for(let t=0;t<a;t++){const[a,s]=o[t],l=e.get(s);void 0!==l&&a(l,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}(t,f,y,m,o),aJ(s)||null===s||null!==a&&a.is(s)||t.dispatchCommand(yX,void 0);const _=t._pendingDecorators;null!==_&&(t._decorators=_,t._pendingDecorators=null,XJ("decorator",t,!0,_)),function(t,e,n){const r=CZ(e),i=CZ(n);r!==i&&XJ("textcontent",t,!0,i)}(t,e||o,n),XJ("update",t,!0,{dirtyElements:g,dirtyLeaves:m,editorState:n,normalizedNodes:v,prevEditorState:e||o,tags:y}),function(t,e){if(t._deferred=[],0!==e.length){const n=t._updating;t._updating=!0;try{for(let t=0;t<e.length;t++)e[t]()}finally{t._updating=n}}}(t,b),function(t){const e=t._updates;if(0!==e.length){const n=e.shift();if(n){const[e,r]=n;GJ(t,e,r)}}}(t)}function XJ(t,e,n,...r){const i=e._updating;e._updating=n;try{const n=Array.from(e._listeners[t]);for(let t=0;t<n.length;t++)n[t].apply(null,r)}finally{e._updating=i}}function UJ(t,e,n){if(!1===t._updating||OJ!==t){let r=!1;return t.update((()=>{r=UJ(t,e,n)})),r}const r=AZ(t);for(let i=4;i>=0;i--)for(let o=0;o<r.length;o++){const a=r[o]._commands.get(e);if(void 0!==a){const e=a[i];if(void 0!==e){const r=Array.from(e),i=r.length;for(let e=0;e<i;e++)if(!0===r[e](n,t))return!0}}}return!1}function ZJ(t,e){const n=t._updates;let r=e||!1;for(;0!==n.length;){const e=n.shift();if(e){const[n,i]=e;let o;if(void 0!==i){if(o=i.onUpdate,i.skipTransforms&&(r=!0),i.discrete){const e=t._pendingEditorState;null===e&&HU(191),e._flushSync=!0}o&&t._deferred.push(o),HJ(t,i.tag)}n()}}return r}function GJ(t,e,n){const r=t._updateTags;let i,o=!1,a=!1;void 0!==n&&(i=n.onUpdate,HJ(t,n.tag),o=n.skipTransforms||!1,a=n.discrete||!1),i&&t._deferred.push(i);const s=t._editorState;let l=t._pendingEditorState,c=!1;(null===l||l._readOnly)&&(l=t._pendingEditorState=sQ(l||s),c=!0),l._flushSync=a;const u=PJ,d=TJ,h=OJ,p=t._updating;PJ=l,TJ=!1,t._updating=!0,OJ=t;try{c&&(t._headless?null!==s._selection&&(l._selection=s._selection.clone()):l._selection=function(t){const e=t.getEditorState()._selection,n=lG(t._window);return aJ(e)||null==e?bJ(e,n,t,null):e.clone()}(t));const n=t._compositionKey;e(),o=ZJ(t,o),function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(aJ(r)){const t=r.anchor,e=r.focus;let i;if("text"===t.type&&(i=t.getNode(),i.selectionTransform(n,r)),"text"===e.type){const t=e.getNode();i!==t&&t.selectionTransform(n,r)}}}(l,t),0!==t._dirtyType&&(o?function(t,e){const n=e._dirtyLeaves,r=t._nodeMap;for(const t of n){const e=r.get(t);ZK(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&nZ(e)}}(l,t):function(t,e){const n=e._dirtyLeaves,r=e._dirtyElements,i=t._nodeMap,o=bZ(),a=new Map;let s=n,l=s.size,c=r,u=c.size;for(;l>0||u>0;){if(l>0){e._dirtyLeaves=new Set;for(const t of s){const r=i.get(t);ZK(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&nZ(r),void 0!==r&&BJ(r,o)&&jJ(e,r,a),n.add(t)}if(s=e._dirtyLeaves,l=s.size,l>0){AJ++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(const t of c){const n=t[0],s=t[1];if("root"!==n&&!s)continue;const l=i.get(n);void 0!==l&&BJ(l,o)&&jJ(e,l,a),r.set(n,s)}s=e._dirtyLeaves,l=s.size,c=e._dirtyElements,u=c.size,AJ++}e._dirtyLeaves=n,e._dirtyElements=r}(l,t),ZJ(t),function(t,e,n,r){const i=t._nodeMap,o=e._nodeMap,a=[];for(const[t]of r){const e=o.get(t);void 0!==e&&(e.isAttached()||(eQ(e)&&SG(e,t,i,o,a,r),i.has(t)||r.delete(t),a.push(t)))}for(const t of a)o.delete(t);for(const t of n){const e=o.get(t);void 0===e||e.isAttached()||(i.has(t)||n.delete(t),o.delete(t))}}(s,l,t._dirtyLeaves,t._dirtyElements)),n!==t._compositionKey&&(l._flushSync=!0);const r=l._selection;if(aJ(r)){const t=l._nodeMap,e=r.anchor.key,n=r.focus.key;void 0!==t.get(e)&&void 0!==t.get(n)||HU(19)}else lJ(r)&&0===r._nodes.size&&(l._selection=null)}catch(e){return e instanceof Error&&t._onError(e),t._pendingEditorState=s,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),void qJ(t)}finally{PJ=u,TJ=d,OJ=h,t._updating=p,AJ=0}const f=0!==t._dirtyType||t._deferred.length>0||function(t,e){const n=e.getEditorState()._selection,r=t._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(l,t);f?l._flushSync?(l._flushSync=!1,qJ(t)):c&&aZ((()=>{qJ(t)})):(l._flushSync=!1,c&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function KJ(t,e,n){t._updating?t._updates.push([e,n]):GJ(t,e,n)}class JJ{constructor(t,e,n){this.element=t,this.before=e||null,this.after=n||null}withBefore(t){return new JJ(this.element,t,this.after)}withAfter(t){return new JJ(this.element,this.before,t)}withElement(t){return new JJ(t,this.before,this.after)}insertChild(t){const e=this.before||this.getManagedLineBreak();return null!==e&&e.parentElement!==this.element&&HU(222),this.element.insertBefore(t,e),this}removeChild(t){return t.parentElement!==this.element&&HU(223),this.element.removeChild(t),this}replaceChild(t,e){return e.parentElement!==this.element&&HU(224),this.element.replaceChild(t,e),this}getFirstChild(){const t=this.after?this.after.nextSibling:this.element.firstChild;return t===this.before||t===this.getManagedLineBreak()?null:t}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(t){if(null===t)this.removeManagedLineBreak();else{const e="decorator"===t&&(mU||fU);this.insertManagedLineBreak(e)}}removeManagedLineBreak(){const t=this.getManagedLineBreak();if(t){const e=this.element,n="IMG"===t.nodeName?t.nextSibling:null;n&&e.removeChild(n),e.removeChild(t),e.__lexicalLineBreak=void 0}}insertManagedLineBreak(t){const e=this.getManagedLineBreak();if(e){if(t===("IMG"===e.nodeName))return;this.removeManagedLineBreak()}const n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),t){const t=document.createElement("img");t.setAttribute("data-lexical-linebreak","true"),t.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",t.alt="",n.insertBefore(t,i),n.__lexicalLineBreak=t}else n.__lexicalLineBreak=i}getFirstChildOffset(){let t=0;for(let e=this.after;null!==e;e=e.previousSibling)t++;return t}resolveChildIndex(t,e,n,r){if(n===this.element){const e=this.getFirstChildOffset();return[t,Math.min(e+t.getChildrenSize(),Math.max(e,r))]}const i=QJ(e,n);i.push(r);const o=QJ(e,this.element);let a=t.getIndexWithinParent();for(let t=0;t<o.length;t++){const e=i[t],n=o[t];if(void 0===e||e<n)break;if(e>n){a+=1;break}}return[t.getParentOrThrow(),a]}}function QJ(t,e){const n=[];let r=e;for(;r!==t&&null!==r;r=e.parentNode){let t=0;for(let e=r.previousSibling;null!==e;e=r.previousSibling)t++;n.push(t)}return r!==t&&HU(225),n.reverse()}class tQ extends MK{constructor(t){super(t),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(t){super.afterCloneFrom(t),this.__first=t.__first,this.__last=t.__last,this.__size=t.__size,this.__indent=t.__indent,this.__format=t.__format,this.__style=t.__style,this.__dir=t.__dir,this.__textFormat=t.__textFormat,this.__textStyle=t.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return $U[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e),e=e.getNextSibling();return t}getChildrenKeys(){const t=[];let e=this.getFirstChild();for(;null!==e;)t.push(e.__key),e=e.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){const t=FJ()._dirtyElements;return null!==t&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),e=this.getParentOrThrow().getLastChild();return null!==e&&e.is(t)}getAllTextNodes(){const t=[];let e=this.getFirstChild();for(;null!==e;){if(ZK(e)&&t.push(e),eQ(e)){const n=e.getAllTextNodes();t.push(...n)}e=e.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;eQ(t);){const e=t.getFirstChild();if(null===e)break;t=e}return t}getLastDescendant(){let t=this.getLastChild();for(;eQ(t);){const e=t.getLastChild();if(null===e)break;t=e}return t}getDescendantByIndex(t){const e=this.getChildren(),n=e.length;if(t>=n){const t=e[n-1];return eQ(t)&&t.getLastDescendant()||t||null}const r=e[t];return eQ(r)&&r.getFirstDescendant()||r||null}getFirstChild(){const t=this.getLatest().__first;return null===t?null:xZ(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return null===t&&HU(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return null===t?null:xZ(t)}getLastChildOrThrow(){const t=this.getLastChild();return null===t&&HU(96,this.__key),t}getChildAtIndex(t){const e=this.getChildrenSize();let n,r;if(t<e/2){for(n=this.getFirstChild(),r=0;null!==n&&r<=t;){if(r===t)return n;n=n.getNextSibling(),r++}return null}for(n=this.getLastChild(),r=e-1;null!==n&&r>=t;){if(r===t)return n;n=n.getPreviousSibling(),r--}return null}getTextContent(){let t="";const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContent(),eQ(i)&&r!==n-1&&!i.isInline()&&(t+=TU)}return t}getTextContentSize(){let t=0;const e=this.getChildren(),n=e.length;for(let r=0;r<n;r++){const i=e[r];t+=i.getTextContentSize(),eQ(i)&&r!==n-1&&!i.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(""!==t){const e=FU[t];return!!(this.getFormat()&e)}return!1}hasTextFormat(t){const e=zU[t];return!!(this.getTextFormat()&e)}getFormatFlags(t,e){return mZ(this.getLatest().__textFormat,t,e)}getTextStyle(){return this.getLatest().__textStyle}select(t,e){IJ();const n=xJ();let r=t,i=e;const o=this.getChildrenSize();if(!this.canBeEmpty())if(0===t&&0===e){const t=this.getFirstChild();if(ZK(t)||eQ(t))return t.select(0,0)}else if(!(void 0!==t&&t!==o||void 0!==e&&e!==o)){const t=this.getLastChild();if(ZK(t)||eQ(t))return t.select()}void 0===r&&(r=o),void 0===i&&(i=o);const a=this.__key;return aJ(n)?(n.anchor.set(a,r,"element"),n.focus.set(a,i,"element"),n.dirty=!0,n):vJ(a,r,a,i,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach((t=>t.remove())),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const e=this.getWritable();return e.__dir=t,e}setFormat(t){return this.getWritable().__format=""!==t?FU[t]:0,this}setStyle(t){return this.getWritable().__style=t||"",this}setTextFormat(t){const e=this.getWritable();return e.__textFormat=t,e}setTextStyle(t){const e=this.getWritable();return e.__textStyle=t,e}setIndent(t){return this.getWritable().__indent=t,this}splice(t,e,n){const r=n.length,i=this.getChildrenSize(),o=this.getWritable();t+e<=i||HU(226,String(t),String(e),String(i));const a=o.__key,s=[],l=[],c=this.getChildAtIndex(t+e);let u=null,d=i-e+r;if(0!==t)if(t===i)u=this.getLastChild();else{const e=this.getChildAtIndex(t);null!==e&&(u=e.getPreviousSibling())}if(e>0){let t=null===u?this.getFirstChild():u.getNextSibling();for(let n=0;n<e;n++){null===t&&HU(100);const e=t.getNextSibling(),n=t.__key;gZ(t.getWritable()),l.push(n),t=e}}let h=u;for(let t=0;t<r;t++){const e=n[t];null!==h&&e.is(h)&&(u=h=h.getPreviousSibling());const r=e.getWritable();r.__parent===a&&d--,gZ(r);const i=e.__key;if(null===h)o.__first=i,r.__prev=null;else{const t=h.getWritable();t.__next=i,r.__prev=t.__key}e.__key===a&&HU(76),r.__parent=a,s.push(i),h=e}if(t+e===i)null!==h&&(h.getWritable().__next=null,o.__last=h.__key);else if(null!==c){const t=c.getWritable();if(null!==h){const e=h.getWritable();t.__prev=h.__key,e.__next=c.__key}else t.__prev=null}if(o.__size=d,l.length){const t=xJ();if(aJ(t)){const e=new Set(l),n=new Set(s),{anchor:r,focus:i}=t;nQ(r,e,n)&&kJ(r,r.getNode(),this,u,c),nQ(i,e,n)&&kJ(i,i.getNode(),this,u,c),0!==d||this.canBeEmpty()||rG(this)||this.remove()}}return o}getDOMSlot(t){return new JJ(t)}exportDOM(t){const{element:e}=super.exportDOM(t);if(uG(e)){const t=this.getIndent();t>0&&(e.style.paddingInlineStart=40*t+"px")}return{element:e}}exportJSON(){const t={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},e=this.getTextFormat(),n=this.getTextStyle();return 0!==e&&(t.textFormat=e),""!==n&&(t.textStyle=n),t}updateFromJSON(t){return super.updateFromJSON(t).setFormat(t.format).setIndent(t.indent).setDirection(t.direction).setTextFormat(t.textFormat||0).setTextStyle(t.textStyle||"")}insertNewAfter(t,e){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,e,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,e){const n=this.getDOMSlot(t);let r=n.getFirstChild();for(let t=this.getFirstChild();t;t=t.getNextSibling()){const i=e.getElementByKey(t.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}}function eQ(t){return t instanceof tQ}function nQ(t,e,n){let r=t.getNode();for(;r;){const t=r.__key;if(e.has(t)&&!n.has(t))return!0;r=r.getParent()}return!1}class rQ extends MK{decorate(t,e){HU(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function iQ(t){return t instanceof rQ}class oQ extends tQ{static getType(){return"root"}static clone(){return new oQ}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){HU(51)}getTextContent(){const t=this.__cachedText;return!LJ()&&0!==FJ()._dirtyType||null===t?super.getTextContent():t}remove(){HU(52)}replace(t){HU(53)}insertBefore(t){HU(54)}insertAfter(t){HU(55)}updateDOM(t,e){return!1}append(...t){for(let e=0;e<t.length;e++){const n=t[e];eQ(n)||iQ(n)||HU(56)}return super.append(...t)}static importJSON(t){return EZ().updateFromJSON(t)}collapseAtStart(){return!0}}function aQ(t){return t instanceof oQ}function sQ(t){return new uQ(new Map(t._nodeMap))}function lQ(){return new uQ(new Map([["root",new oQ]]))}function cQ(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&HU(130,n.name),eQ(t)){const r=e.children;Array.isArray(r)||HU(59,n.name);const i=t.getChildren();for(let t=0;t<i.length;t++){const e=cQ(i[t]);r.push(e)}}return e}class uQ{constructor(t,e){this._nodeMap=t,this._selection=e||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(t,e){return YJ(e&&e.editor||null,this,t)}clone(t){const e=new uQ(this._nodeMap,void 0===t?this._selection:t);return e._readOnly=!0,e}toJSON(){return YJ(null,this,(()=>({root:cQ(EZ())})))}}class dQ extends tQ{static getType(){return"artificial"}createDOM(t){return document.createElement("div")}}class hQ extends tQ{static getType(){return"paragraph"}static clone(t){return new hQ(t.__key)}createDOM(t){const e=document.createElement("p"),n=VZ(t.theme,"paragraph");return void 0!==n&&e.classList.add(...n),e}updateDOM(t,e,n){return!1}static importDOM(){return{p:t=>({conversion:pQ,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(uG(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();e.style.textAlign=t;const n=this.getDirection();n&&(e.dir=n)}return{element:e}}static importJSON(t){return fQ().updateFromJSON(t)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}insertNewAfter(t,e){const n=fQ();n.setTextFormat(t.format),n.setTextStyle(t.style);const r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getTextStyle()),this.insertAfter(n,e),n}collapseAtStart(){const t=this.getChildren();if(0===t.length||ZK(t[0])&&""===t[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function pQ(t){const e=fQ();return t.style&&(e.setFormat(t.style.textAlign),_G(t,e)),{node:e}}function fQ(){return iG(new hQ)}function mQ(t){return t instanceof hQ}function gQ(t,e,n,r){const i=t._keyToDOMMap;i.clear(),t._editorState=lQ(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],t._blockCursorElement=null;const o=t._observer;null!==o&&(o.disconnect(),t._observer=null),null!==e&&(e.textContent=""),null!==n&&(n.textContent="",i.set("root",n))}function vQ(t){const e=t||{},n=OJ,r=e.theme||{},i=void 0===t?n:e.parentEditor||null,o=e.disableEvents||!1,a=lQ(),s=e.namespace||(null!==i?i._config.namespace:DZ()),l=e.editorState,c=[oQ,$K,PK,KK,hQ,dQ,...e.nodes||[]],{onError:u,html:d}=e,h=void 0===e.editable||e.editable;let p;if(void 0===t&&null!==n)p=n._nodes;else{p=new Map;for(let t=0;t<c.length;t++){let e=c[t],n=null,r=null;if("function"!=typeof e){const t=e;e=t.replace,n=t.with,r=t.withKlass||null}const i=e.getType(),o=e.transform(),a=new Set;null!==o&&a.add(o),p.set(i,{exportDOM:d&&d.export?d.export.get(e):void 0,klass:e,replace:n,replaceWithKlass:r,transforms:a})}}const f=new yQ(a,i,p,{disableEvents:o,namespace:s,theme:r},u||console.error,function(t,e){const n=new Map,r=new Set,i=t=>{Object.keys(t).forEach((e=>{let r=n.get(e);void 0===r&&(r=[],n.set(e,r)),r.push(t[e])}))};return t.forEach((t=>{const e=t.klass.importDOM;if(null==e||r.has(e))return;r.add(e);const n=e.call(t.klass);null!==n&&i(n)})),e&&i(e),n}(p,d?d.import:void 0),h);return void 0!==l&&(f._pendingEditorState=l,f._dirtyType=2),f}class yQ{constructor(t,e,n,r,i,o,a){this._parentEditor=e,this._rootElement=null,this._editorState=t,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=DZ(),this._onError=i,this._htmlConversions=o,this._editable=a,this._headless=null!==e&&e._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(t){const e=this._listeners.update;return e.add(t),()=>{e.delete(t)}}registerEditableListener(t){const e=this._listeners.editable;return e.add(t),()=>{e.delete(t)}}registerDecoratorListener(t){const e=this._listeners.decorator;return e.add(t),()=>{e.delete(t)}}registerTextContentListener(t){const e=this._listeners.textcontent;return e.add(t),()=>{e.delete(t)}}registerRootListener(t){const e=this._listeners.root;return t(this._rootElement,null),e.add(t),()=>{t(null,this._rootElement),e.delete(t)}}registerCommand(t,e,n){void 0===n&&HU(35);const r=this._commands;r.has(t)||r.set(t,[new Set,new Set,new Set,new Set,new Set]);const i=r.get(t);void 0===i&&HU(36,String(t));const o=i[n];return o.add(e),()=>{o.delete(e),i.every((t=>0===t.size))&&r.delete(t)}}registerMutationListener(t,e,n){const r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(t)).klass,i=this._listeners.mutation;i.set(e,r);const o=n&&n.skipInitialization;return void 0!==o&&o||this.initializeMutationListener(e,r),()=>{i.delete(e)}}getRegisteredNode(t){const e=this._nodes.get(t.getType());return void 0===e&&HU(37,t.name),e}resolveRegisteredNodeAfterReplacements(t){for(;t.replaceWithKlass;)t=this.getRegisteredNode(t.replaceWithKlass);return t}initializeMutationListener(t,e){const n=this._editorState,r=bG(n).get(e.getType());if(!r)return;const i=new Map;for(const t of r.keys())i.set(t,"created");i.size>0&&t(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(t,e){const n=this.getRegisteredNode(t);return n.transforms.add(e),n}registerNodeTransform(t,e){const n=this.registerNodeTransformToKlass(t,e),r=[n],i=n.replaceWithKlass;if(null!=i){const t=this.registerNodeTransformToKlass(i,e);r.push(t)}return function(t,e){const n=bG(t.getEditorState()),r=[];for(const t of e){const e=n.get(t);e&&r.push(e)}0!==r.length&&t.update((()=>{for(const t of r)for(const e of t.keys()){const t=xZ(e);t&&t.markDirty()}}),null===t._pendingEditorState?{tag:"history-merge"}:void 0)}(this,r.map((t=>t.klass.getType()))),()=>{r.forEach((t=>t.transforms.delete(e)))}}hasNode(t){return this._nodes.has(t.getType())}hasNodes(t){return t.every(this.hasNode.bind(this))}dispatchCommand(t,e){return ZZ(this,t,e)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(t){const e=this._rootElement;if(t!==e){const n=VZ(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=t,gQ(this,e,t,r),null!==e&&(this._config.disableEvents||function(t){const e=t.ownerDocument,n=uK.get(e);void 0===n&&HU(162);const r=n-1;r>=0||HU(164),uK.set(e,r),0===r&&e.removeEventListener("selectionchange",SK);const i=dZ(t);cZ(i)?(function(t){if(null!==t._parentEditor){const e=AZ(t),n=e[e.length-1]._key;wK.get(n)===t&&wK.delete(n)}else wK.delete(t._key)}(i),t.__lexicalEditor=null):i&&HU(198);const o=_K(t);for(let t=0;t<o.length;t++)o[t]();t.__lexicalEventHandles=[]}(e),null!=n&&e.classList.remove(...n)),null!==t){const e=eG(t),r=t.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",t.setAttribute("data-lexical-editor","true"),this._window=e,this._dirtyType=2,QU(this),this._updateTags.add("history-merge"),qJ(this),this._config.disableEvents||function(t,e){const n=t.ownerDocument,r=uK.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",SK),uK.set(n,(r||0)+1),t.__lexicalEditor=e;const i=_K(t);for(let n=0;n<oK.length;n++){const[r,o]=oK[n],a="function"==typeof o?t=>{CK(t)||(kK(t),(e.isEditable()||"click"===r)&&o(t,e))}:t=>{if(CK(t))return;kK(t);const n=e.isEditable();switch(r){case"cut":return n&&ZZ(e,tU,t);case"copy":return ZZ(e,QX,t);case"paste":return n&&ZZ(e,CX,t);case"dragstart":return n&&ZZ(e,GX,t);case"dragover":return n&&ZZ(e,KX,t);case"dragend":return n&&ZZ(e,JX,t);case"focus":return n&&ZZ(e,aU,t);case"blur":return n&&ZZ(e,sU,t);case"drop":return n&&ZZ(e,UX,t)}};t.addEventListener(r,a),i.push((()=>{t.removeEventListener(r,a)}))}}(t,this),null!=n&&t.classList.add(...n)}else this._window=null,this._updateTags.add("history-merge"),qJ(this);XJ("root",this,!1,t,e)}}getElementByKey(t){return this._keyToDOMMap.get(t)||null}getEditorState(){return this._editorState}setEditorState(t,e){t.isEmpty()&&HU(38);let n=t;n._readOnly&&(n=sQ(t),n._selection=t._selection?t._selection.clone():null),JU(this);const r=this._pendingEditorState,i=this._updateTags,o=void 0!==e?e.tag:null;null===r||r.isEmpty()||(null!=o&&i.add(o),qJ(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&i.add(o),this._updating||qJ(this)}parseEditorState(t,e){return function(t,e,n){const r=lQ(),i=PJ,o=TJ,a=OJ,s=e._dirtyElements,l=e._dirtyLeaves,c=e._cloneNotNeeded,u=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._cloneNotNeeded=new Set,e._dirtyType=0,PJ=r,TJ=!1,OJ=e;try{const i=e._nodes;VJ(t.root,i),n&&n(),r._readOnly=!0}catch(t){t instanceof Error&&e._onError(t)}finally{e._dirtyElements=s,e._dirtyLeaves=l,e._cloneNotNeeded=c,e._dirtyType=u,PJ=i,TJ=o,OJ=a}return r}("string"==typeof t?JSON.parse(t):t,this,e)}read(t){return qJ(this),this.getEditorState().read(t,{editor:this})}update(t,e){KJ(this,t,e)}focus(t,e={}){const n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),KJ(this,(()=>{const t=xJ(),n=EZ();null!==t?t.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===e.defaultSelection?n.selectStart():n.selectEnd())}),{onUpdate:()=>{n.removeAttribute("autocapitalize"),t&&t()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){const t=this._rootElement;null!==t&&t.blur();const e=lG(this._window);null!==e&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(t){this._editable!==t&&(this._editable=t,XJ("editable",this,!0,t))}toJSON(){return{editorState:this._editorState.toJSON()}}}yQ.version="0.23.1+prod.esm";class bQ extends $K{constructor(t,e){super(t,e)}static getType(){return"extended-text"}static clone(t){return new bQ(t.__text,t.__key)}static importDOM(){const t=$K.importDOM();return{...t,code:()=>({conversion:xQ(t?.code),priority:1}),em:()=>({conversion:xQ(t?.em),priority:1}),span:()=>({conversion:xQ(t?.span),priority:1}),strong:()=>({conversion:xQ(t?.strong),priority:1}),sub:()=>({conversion:xQ(t?.sub),priority:1}),sup:()=>({conversion:xQ(t?.sup),priority:1})}}static importJSON(t){return $K.importJSON(t)}isSimpleText(){return("text"===this.__type||"extended-text"===this.__type)&&0===this.__mode}exportJSON(){return{...super.exportJSON(),type:"extended-text",version:1}}}function xQ(t){return e=>{const n=t?.(e);if(!n)return null;const r=n.conversion(e);if(!r)return r;const i=e.style.backgroundColor,o=e.style.color,a=e.style.fontFamily,s=e.style.fontWeight,l=e.style.fontSize,c=e.style.textDecoration;return{...r,forChild:(t,e)=>{const n=r?.forChild??(t=>t),u=n(t,e);if(ZK(u)){const t=[i?`background-color: ${i}`:null,o?`color: ${o}`:null,a?`font-family: ${a}`:null,s?`font-weight: ${s}`:null,l?`font-size: ${l}`:null,c?`text-decoration: ${c}`:null].filter((t=>null!=t)).join("; ");if(t.length)return u.setStyle(t)}return u}}}}var _Q=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){const e=new URLSearchParams;e.append("code",t);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));const wQ=new Map;function SQ(t){const e={};if(!t)return e;const n=t.split(";");for(const t of n)if(""!==t){const[n,r]=t.split(/:([^]+)/);n&&r&&(e[n.trim()]=r.trim())}return e}function kQ(t){let e=wQ.get(t);return void 0===e&&(e=SQ(t),wQ.set(t,e)),e}function CQ(t,e){const n=t.getStartEndPoints();if(e.isSelected(t)&&!e.isSegmented()&&!e.isToken()&&null!==n){const[r,i]=n,o=t.isBackward(),a=r.getNode(),s=i.getNode(),l=e.is(a),c=e.is(s);if(l||c){const[n,r]=uJ(t),i=a.is(s),l=e.is(o?s:a),c=e.is(o?a:s);let u,d=0;return i?(d=n>r?r:n,u=n>r?n:r):l?(d=o?r:n,u=void 0):c&&(d=0,u=o?n:r),e.__text=e.__text.slice(d,u),e}}return e}function EQ(t){if("text"===t.type)return t.offset===t.getNode().getTextContentSize();const e=t.getNode();return eQ(e)||_Q(177),t.offset===e.getChildrenSize()}function MQ(t){const e=t.getStyle(),n=SQ(e);wQ.set(e,n)}function PQ(t,e){const n=kQ("getStyle"in t?t.getStyle():t.style),r=Object.entries(e).reduce(((e,[r,i])=>("function"==typeof i?e[r]=i(n[r],t):null===i?delete e[r]:e[r]=i,e)),{...n}||{}),i=function(t){let e="";for(const n in t)n&&(e+=`${n}: ${t[n]};`);return e}(r);t.setStyle(i),wQ.set(i,r)}function OQ(t,e){t.isCollapsed()&&aJ(t)?PQ(t,e):function(t){const e=xJ();if(!aJ(e))return;const n=e.getNodes(),r=n.length,{anchor:i,focus:o}=e,a=r-1;let s=n[0],l=n[a];const c=s.getTextContent().length,u=o.offset;let d=i.offset;const h=i.isBefore(o);let p=h?d:u,f=h?u:d;const m=h?i.type:o.type,g=h?o.type:i.type,v=h?o.key:i.key;if(ZK(s)&&p===c){const t=s.getNextSibling();ZK(t)&&(d=0,p=0,s=t)}if(1===n.length){if(ZK(s)&&s.canHaveFormat()){if(p="element"===m?0:d>u?u:d,f="element"===g?c:d>u?d:u,p===f)return;if(hZ(s)||0===p&&f===c)t(s),s.select(p,f);else{const e=s.splitText(p,f),n=0===p?e[0]:e[1];t(n),n.select(0,f-p)}}}else{if(ZK(s)&&p<s.getTextContentSize()&&s.canHaveFormat()&&(0===p||hZ(s)||(s=s.splitText(p)[1],p=0,h?i.set(s.getKey(),p,"text"):o.set(s.getKey(),p,"text")),t(s)),ZK(l)&&l.canHaveFormat()){const e=l.getTextContent().length;l.__key!==v&&0!==f&&(f=e),f===e||hZ(l)||([l]=l.splitText(f)),0===f&&"element"!==g||t(l)}for(let e=1;e<a;e++){const r=n[e],i=r.getKey();ZK(r)&&r.canHaveFormat()&&i!==s.getKey()&&i!==l.getKey()&&!r.isToken()&&t(r)}}}((t=>{PQ(t,e)}))}function TQ(t,e){if(null===t)return;const n=t.getStartEndPoints(),r=n?n[0]:null;if(null!==r&&"root"===r.key){const t=e(),n=EZ(),r=n.getFirstChild();return void(r?r.replace(t,!0):n.append(t))}const i=t.getNodes(),o=null!==r&&function(t,e){let n=t;for(;null!==n&&null!==n.getParent()&&!e(n);)n=n.getParentOrThrow();return e(n)?n:null}(r.getNode(),IQ);o&&-1===i.indexOf(o)&&i.push(o);for(let t=0;t<i.length;t++){const n=i[t];if(!IQ(n))continue;eQ(n)||_Q(178);const r=e();r.setFormat(n.getFormatType()),r.setIndent(n.getIndent()),n.replace(r,!0)}}function NQ(t,e){const n=XZ(t.focus,e);return iQ(n)&&!n.isIsolated()||eQ(n)&&!n.isInline()&&!n.canBeEmpty()}function AQ(t,e,n){const r=function(t){const e=t.anchor.getNode();return"rtl"===(aQ(e)?e:e.getParentOrThrow()).getDirection()}(t);!function(t,e,n,r){t.modify(e?"extend":"move",n,r)}(t,e,n?!r:r,"character")}function DQ(t,e,n){const r=kQ(t.getStyle());return null!==r&&r[e]||n}function LQ(t,e,n=""){let r=null;const i=t.getNodes(),o=t.anchor,a=t.focus,s=t.isBackward(),l=s?a.offset:o.offset,c=s?a.getNode():o.getNode();if(aJ(t)&&t.isCollapsed()&&""!==t.style){const n=kQ(t.style);if(null!==n&&e in n)return n[e]}for(let t=0;t<i.length;t++){const o=i[t];if((0===t||0!==l||!o.is(c))&&ZK(o)){const t=DQ(o,e,n);if(null===r)r=t;else if(r!==t){r="";break}}}return null===r?n:r}function IQ(t){if(iQ(t))return!1;if(!eQ(t)||rG(t))return!1;const e=t.getFirstChild(),n=null===e||NK(e)||ZK(e)||e.isInline();return!t.isInline()&&!1!==t.canBeEmpty()&&n}var zQ=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){const e=new URLSearchParams;e.append("code",t);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));const RQ="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,FQ=RQ&&"documentMode"in document?document.documentMode:null;RQ&&/Mac|iPod|iPhone|iPad/.test(navigator.platform);const $Q=RQ&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);RQ&&"InputEvent"in window&&!FQ&&new window.InputEvent("input"),RQ&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),RQ&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,RQ&&/Android/.test(navigator.userAgent);RQ&&/^(?=.*Chrome).*/i.test(navigator.userAgent);function jQ(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}function BQ(...t){return()=>{for(let e=t.length-1;e>=0;e--)t[e]();t.length=0}}RQ&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent);function HQ(t,...e){const n=jQ(...e);n.length>0&&t.classList.add(...n)}function WQ(t,...e){const n=jQ(...e);n.length>0&&t.classList.remove(...n)}const VQ=(t,e)=>{let n=t;for(;n!==EZ()&&null!=n;){if(e(n))return n;n=n.getParent()}return null};function YQ(t,e){return null!==t&&Object.getPrototypeOf(t).constructor.name===e.name}let qQ=!($Q||!RQ)&&void 0;var XQ,UQ={exports:{}};XQ||(XQ=1,function(t){var e=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof o?new o(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(t){return Object.prototype.toString.call(t).slice(8,-1)},objId:function(t){return t.__id||Object.defineProperty(t,"__id",{value:++n}),t.__id},clone:function t(e,n){var r,o;switch(n=n||{},i.util.type(e)){case"Object":if(o=i.util.objId(e),n[o])return n[o];for(var a in r={},n[o]=r,e)e.hasOwnProperty(a)&&(r[a]=t(e[a],n));return r;case"Array":return o=i.util.objId(e),n[o]?n[o]:(r=[],n[o]=r,e.forEach((function(e,i){r[i]=t(e,n)})),r);default:return e}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var n in e)if(e[n].src==t)return e[n]}return null}},isActive:function(t,e,n){for(var r="no-"+e;t;){var i=t.classList;if(i.contains(e))return!0;if(i.contains(r))return!1;t=t.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(t,e){var n=i.util.clone(i.languages[t]);for(var r in e)n[r]=e[r];return n},insertBefore:function(t,e,n,r){var o=(r=r||i.languages)[t],a={};for(var s in o)if(o.hasOwnProperty(s)){if(s==e)for(var l in n)n.hasOwnProperty(l)&&(a[l]=n[l]);n.hasOwnProperty(s)||(a[s]=o[s])}var c=r[t];return r[t]=a,i.languages.DFS(i.languages,(function(e,n){n===c&&e!=t&&(this[e]=a)})),a},DFS:function t(e,n,r,o){o=o||{};var a=i.util.objId;for(var s in e)if(e.hasOwnProperty(s)){n.call(e,s,e[s],r||s);var l=e[s],c=i.util.type(l);"Object"!==c||o[a(l)]?"Array"!==c||o[a(l)]||(o[a(l)]=!0,t(l,n,s,o)):(o[a(l)]=!0,t(l,n,null,o))}}},plugins:{},highlightAll:function(t,e){i.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,n){var r={callback:n,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var o,a=0;o=r.elements[a++];)i.highlightElement(o,!0===e,r.callback)},highlightElement:function(e,n,r){var o=i.util.getLanguage(e),a=i.languages[o];i.util.setLanguage(e,o);var s=e.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&i.util.setLanguage(s,o);var l={element:e,language:o,grammar:a,code:e.textContent};function c(t){l.highlightedCode=t,i.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,i.hooks.run("after-highlight",l),i.hooks.run("complete",l),r&&r.call(l.element)}if(i.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return i.hooks.run("complete",l),void(r&&r.call(l.element));if(i.hooks.run("before-highlight",l),l.grammar)if(n&&t.Worker){var u=new Worker(i.filename);u.onmessage=function(t){c(t.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(i.highlight(l.code,l.grammar,l.language));else c(i.util.encode(l.code))},highlight:function(t,e,n){var r={code:t,grammar:e,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),o.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(t,e){var n=e.rest;if(n){for(var r in n)e[r]=n[r];delete e.rest}var i=new l;return c(i,i.head,t),s(t,i,e,i.head,0),function(t){for(var e=[],n=t.head.next;n!==t.tail;)e.push(n.value),n=n.next;return e}(i)},hooks:{all:{},add:function(t,e){var n=i.hooks.all;n[t]=n[t]||[],n[t].push(e)},run:function(t,e){var n=i.hooks.all[t];if(n&&n.length)for(var r,o=0;r=n[o++];)r(e)}},Token:o};function o(t,e,n,r){this.type=t,this.content=e,this.alias=n,this.length=0|(r||"").length}function a(t,e,n,r){t.lastIndex=e;var i=t.exec(n);if(i&&r&&i[1]){var o=i[1].length;i.index+=o,i[0]=i[0].slice(o)}return i}function s(t,e,n,r,l,d){for(var h in n)if(n.hasOwnProperty(h)&&n[h]){var p=n[h];p=Array.isArray(p)?p:[p];for(var f=0;f<p.length;++f){if(d&&d.cause==h+","+f)return;var m=p[f],g=m.inside,v=!!m.lookbehind,y=!!m.greedy,b=m.alias;if(y&&!m.pattern.global){var x=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,x+"g")}for(var _=m.pattern||m,w=r.next,S=l;w!==e.tail&&!(d&&S>=d.reach);S+=w.value.length,w=w.next){var k=w.value;if(e.length>t.length)return;if(!(k instanceof o)){var C,E=1;if(y){if(!(C=a(_,S,t,v))||C.index>=t.length)break;var M=C.index,P=C.index+C[0].length,O=S;for(O+=w.value.length;M>=O;)O+=(w=w.next).value.length;if(S=O-=w.value.length,w.value instanceof o)continue;for(var T=w;T!==e.tail&&(O<P||"string"==typeof T.value);T=T.next)E++,O+=T.value.length;E--,k=t.slice(S,O),C.index-=S}else if(!(C=a(_,0,k,v)))continue;M=C.index;var N=C[0],A=k.slice(0,M),D=k.slice(M+N.length),L=S+k.length;d&&L>d.reach&&(d.reach=L);var I=w.prev;if(A&&(I=c(e,I,A),S+=A.length),u(e,I,E),w=c(e,I,new o(h,g?i.tokenize(N,g):N,b,N)),D&&c(e,w,D),E>1){var z={cause:h+","+f,reach:L};s(t,e,n,w.prev,S,z),d&&z.reach>d.reach&&(d.reach=z.reach)}}}}}}function l(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function c(t,e,n){var r=e.next,i={value:n,prev:e,next:r};return e.next=i,r.prev=i,t.length++,i}function u(t,e,n){for(var r=e.next,i=0;i<n&&r!==t.tail;i++)r=r.next;e.next=r,r.prev=e,t.length-=i}if(t.Prism=i,o.stringify=function t(e,n){if("string"==typeof e)return e;if(Array.isArray(e)){var r="";return e.forEach((function(e){r+=t(e,n)})),r}var o={type:e.type,content:t(e.content,n),tag:"span",classes:["token",e.type],attributes:{},language:n},a=e.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(o.classes,a):o.classes.push(a)),i.hooks.run("wrap",o);var s="";for(var l in o.attributes)s+=" "+l+'="'+(o.attributes[l]||"").replace(/"/g,""")+'"';return"<"+o.tag+' class="'+o.classes.join(" ")+'"'+s+">"+o.content+"</"+o.tag+">"},!t.document)return t.addEventListener?(i.disableWorkerMessageHandler||t.addEventListener("message",(function(e){var n=JSON.parse(e.data),r=n.language,o=n.code,a=n.immediateClose;t.postMessage(i.highlight(o,i.languages[r],r)),a&&t.close()}),!1),i):i;var d=i.util.currentScript();function h(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var p=document.readyState;"loading"===p||"interactive"===p&&d&&d.defer?document.addEventListener("DOMContentLoaded",h):window.requestAnimationFrame?window.requestAnimationFrame(h):window.setTimeout(h,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
92
|
-
/**
|
|
93
|
-
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
94
|
-
*
|
|
95
|
-
* @license MIT <https://opensource.org/licenses/MIT>
|
|
96
|
-
* @author Lea Verou <https://lea.verou.me>
|
|
97
|
-
* @namespace
|
|
98
|
-
* @public
|
|
99
|
-
*/t.exports&&(t.exports=e),void 0!==gt&&(gt.Prism=e),e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e),e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript,function(){if(void 0!==e&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",i="loaded",o="pre[data-src]:not(["+n+'="'+i+'"]):not(['+n+'="'+r+'"])';e.hooks.add("before-highlightall",(function(t){t.selector+=", "+o})),e.hooks.add("before-sanity-check",(function(a){var s=a.element;if(s.matches(o)){a.code="",s.setAttribute(n,r);var l=s.appendChild(document.createElement("CODE"));l.textContent="Loading…";var c=s.getAttribute("data-src"),u=a.language;if("none"===u){var d=(/\.(\w+)$/.exec(c)||[,"none"])[1];u=t[d]||d}e.util.setLanguage(l,u),e.util.setLanguage(s,u);var h=e.plugins.autoloader;h&&h.loadLanguages(u),function(t,e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?e(r.responseText):r.status>=400?n(function(t,e){return"✖ Error "+t+" while fetching file: "+e}(r.status,r.statusText)):n("✖ Error: File does not exist or is empty"))},r.send(null)}(c,(function(t){s.setAttribute(n,i);var r=function(t){var e=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(t||"");if(e){var n=Number(e[1]),r=e[2],i=e[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(r){var o=t.split(/\r\n?|\n/g),a=r[0],c=null==r[1]?o.length:r[1];a<0&&(a+=o.length),a=Math.max(0,Math.min(a-1,o.length)),c<0&&(c+=o.length),c=Math.max(0,Math.min(c,o.length)),t=o.slice(a,c).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}l.textContent=t,e.highlightElement(l)}),(function(t){s.setAttribute(n,"failed"),l.textContent=t}))}})),e.plugins.fileHighlight={highlight:function(t){for(var n,r=(t||document).querySelectorAll(o),i=0;n=r[i++];)e.highlightElement(n)}};var a=!1;e.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),e.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(UQ)),Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript,Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(t,e){var n={};n["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return t})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Prism.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(t){return t=t.replace(/<inner>/g,(function(){return e})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+t+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(e){["url","bold","italic","strike","code-snippet"].forEach((function(n){e!==n&&(t.languages.markdown[e].inside.content.inside[n]=t.languages.markdown[n])}))})),t.hooks.add("after-tokenize",(function(t){"markdown"!==t.language&&"md"!==t.language||function t(e){if(e&&"string"!=typeof e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if("code"===i.type){var o=i.content[1],a=i.content[3];if(o&&a&&"code-language"===o.type&&"code-block"===a.type&&"string"==typeof o.content){var s=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,l]:a.alias.push(l):a.alias=[l]}}else t(i.content)}}(t.tokens)})),t.hooks.add("wrap",(function(e){if("code-block"===e.type){for(var n="",r=0,i=e.classes.length;r<i;r++){var o=e.classes[r],c=/language-(.+)/.exec(o);if(c){n=c[1];break}}var u,d,h=t.languages[n];if(h)e.content=t.highlight((u=e.content,d=(d=u.replace(a,"")).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(t,e){var n;if("#"===(e=e.toLowerCase())[0])return n="x"===e[1]?parseInt(e.slice(2),16):Number(e.slice(1)),l(n);var r=s[e];return r||t})),d),h,n);else if(n&&"none"!==n&&t.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());e.attributes.id=p,t.plugins.autoloader.loadLanguages(n,(function(){var e=document.getElementById(p);e&&(e.innerHTML=t.highlight(e.textContent,t.languages[n],n))}))}}}));var a=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;t.languages.md=t.languages.markdown}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec,Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}}(Prism);var ZQ;ZQ||(ZQ=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python);var GQ;GQ||(GQ=1,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,(function(){return e}));e=e.replace(/<self>/g,(function(){return/[^\s\S]/.source})),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism)),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(t){t.inside.interpolation.inside=Prism.languages.swift}));var KQ;KQ||(KQ=1,function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var e=t.languages.extend("typescript",{});delete e["class-name"],t.languages.typescript["class-name"].inside=e,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e}}}}),t.languages.ts=t.languages.typescript}(Prism));var JQ;JQ||(JQ=1,function(t){var e=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};t.languages.java=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:e,function:[t.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),t.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),t.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:e,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism));var QQ;QQ||(QQ=1,function(t){var e=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return e.source}));t.languages.cpp=t.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return e.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:e,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),t.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),t.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t.languages.cpp}}}}),t.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:t.languages.extend("cpp",{})}}),t.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},t.languages.cpp["base-clause"])}(Prism)),function(t){t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")&&t.default}((function(t){const e=new URLSearchParams;e.append("code",t);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));const t0=globalThis.Prism||window.Prism,e0=t=>{try{return!!t&&t0.languages.hasOwnProperty(t)}catch(t){return!1}};function n0(t,e){for(const n of t.childNodes){if(uG(n)&&n.tagName===e)return!0;n0(n,e)}return!1}const r0="data-language",i0="data-highlight-language";class o0 extends tQ{static getType(){return"code"}static clone(t){return new o0(t.__language,t.__key)}constructor(t,e){super(e),this.__language=t||void 0,this.__isSyntaxHighlightSupported=e0(t)}createDOM(t){const e=document.createElement("code");HQ(e,t.theme.code),e.setAttribute("spellcheck","false");const n=this.getLanguage();return n&&(e.setAttribute(r0,n),this.getIsSyntaxHighlightSupported()&&e.setAttribute(i0,n)),e}updateDOM(t,e,n){const r=this.__language,i=t.__language;return r?r!==i&&(e.setAttribute(r0,r),this.__isSyntaxHighlightSupported&&e.setAttribute(i0,r)):i&&(e.removeAttribute(r0),t.__isSyntaxHighlightSupported&&e.removeAttribute(i0)),!1}exportDOM(t){const e=document.createElement("pre");HQ(e,t._config.theme.code),e.setAttribute("spellcheck","false");const n=this.getLanguage();return n&&(e.setAttribute(r0,n),this.getIsSyntaxHighlightSupported()&&e.setAttribute(i0,n)),{element:e}}static importDOM(){return{code:t=>null!=t.textContent&&(/\r?\n/.test(t.textContent)||n0(t,"BR"))?{conversion:s0,priority:1}:null,div:()=>({conversion:l0,priority:1}),pre:()=>({conversion:s0,priority:0}),table:t=>h0(t)?{conversion:c0,priority:3}:null,td:t=>{const e=t,n=e.closest("table");return e.classList.contains("js-file-line")||n&&h0(n)?{conversion:u0,priority:3}:null},tr:t=>{const e=t.closest("table");return e&&h0(e)?{conversion:u0,priority:3}:null}}}static importJSON(t){return a0().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setLanguage(t.language)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage()}}insertNewAfter(t,e=!0){const n=this.getChildren(),r=n.length;if(r>=2&&"\n"===n[r-1].getTextContent()&&"\n"===n[r-2].getTextContent()&&t.isCollapsed()&&t.anchor.key===this.__key&&t.anchor.offset===r){n[r-1].remove(),n[r-2].remove();const t=fQ();return this.insertAfter(t,e),t}const{anchor:i,focus:o}=t,a=(i.isBefore(o)?i:o).getNode();if(ZK(a)){let t=function(t){let e=t,n=t;for(;g0(n)||QK(n);)e=n,n=n.getPreviousSibling();return e}(a);const e=[];for(;;)if(QK(t))e.push(JK()),t=t.getNextSibling();else{if(!g0(t))break;{let n=0;const r=t.getTextContent(),i=t.getTextContentSize();for(;n<i&&" "===r[n];)n++;if(0!==n&&e.push(m0(" ".repeat(n))),n!==i)break;t=t.getNextSibling()}}const n=a.splitText(i.offset)[0],r=0===i.offset?0:1,o=n.getIndexWithinParent()+r,s=a.getParentOrThrow(),l=[TK(),...e];s.splice(o,0,l);const c=e[e.length-1];c?c.select():0===i.offset?n.selectPrevious():n.getNextSibling().selectNext(0,0)}if(function(t){return t instanceof o0}(a)){const{offset:e}=t.anchor;a.splice(e,0,[TK()]),a.select(e+1,e+1)}return null}canIndent(){return!1}collapseAtStart(){const t=fQ();return this.getChildren().forEach((e=>t.append(e))),this.replace(t),!0}setLanguage(t){const e=this.getWritable();return e.__language=t||void 0,e.__isSyntaxHighlightSupported=e0(t),e}getLanguage(){return this.getLatest().__language}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}}function a0(t){return iG(new o0(t))}function s0(t){return{node:a0(t.getAttribute(r0))}}function l0(t){const e=t,n=d0(e);return n||function(t){let e=t.parentElement;for(;null!==e;){if(d0(e))return!0;e=e.parentElement}return!1}(e)?{node:n?a0():null}:{node:null}}function c0(){return{node:a0()}}function u0(){return{node:null}}function d0(t){return null!==t.style.fontFamily.match("monospace")}function h0(t){return t.classList.contains("js-file-line-container")}class p0 extends $K{constructor(t="",e,n){super(t,n),this.__highlightType=e}static getType(){return"code-highlight"}static clone(t){return new p0(t.__text,t.__highlightType||void 0,t.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(t){const e=this.getWritable();return e.__highlightType=t||void 0,e}canHaveFormat(){return!1}createDOM(t){const e=super.createDOM(t);return HQ(e,f0(t.theme,this.__highlightType)),e}updateDOM(t,e,n){const r=super.updateDOM(t,e,n),i=f0(n.theme,t.__highlightType),o=f0(n.theme,this.__highlightType);return i!==o&&(i&&WQ(e,i),o&&HQ(e,o)),r}static importJSON(t){return m0().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setHighlightType(t.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(t){return this}isParentRequired(){return!0}createParentElementNode(){return a0()}}function f0(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function m0(t="",e){return iG(new p0(t,e))}function g0(t){return t instanceof p0}var v0=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){const e=new URLSearchParams;e.append("code",t);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));function y0(t){return N0(t)&&F0(t.getFirstChild())}function b0(t){return T0().append(t)}function x0(t,e){t.splice(t.getChildrenSize(),0,e)}function _0(t,e){const n=t.getLastChild(),r=e.getFirstChild();n&&r&&y0(n)&&y0(r)&&(_0(n.getFirstChild(),r.getFirstChild()),r.remove());const i=e.getChildren();i.length>0&&t.append(...i),e.remove()}function w0(t){const e=new Set;if(y0(t)||e.has(t.getKey()))return;const n=t.getParent(),r=t.getNextSibling(),i=t.getPreviousSibling();if(y0(r)&&y0(i)){const n=i.getFirstChild();if(F0(n)){n.append(t);const i=r.getFirstChild();F0(i)&&(x0(n,i.getChildren()),r.remove(),e.add(r.getKey()))}}else if(y0(r)){const e=r.getFirstChild();if(F0(e)){const n=e.getFirstChild();null!==n&&n.insertBefore(t)}}else if(y0(i)){const e=i.getFirstChild();F0(e)&&e.append(t)}else if(F0(n)){const e=T0(),o=R0(n.getListType());e.append(o),o.append(t),i?i.insertAfter(e):r?r.insertBefore(e):n.append(e)}}function S0(t){if(y0(t))return;const e=t.getParent(),n=e?e.getParent():void 0;if(F0(n?n.getParent():void 0)&&N0(n)&&F0(e)){const r=e?e.getFirstChild():void 0,i=e?e.getLastChild():void 0;if(t.is(r))n.insertBefore(t),e.isEmpty()&&n.remove();else if(t.is(i))n.insertAfter(t),e.isEmpty()&&n.remove();else{const r=e.getListType(),i=T0(),o=R0(r);i.append(o),t.getPreviousSiblings().forEach((t=>o.append(t)));const a=T0(),s=R0(r);a.append(s),x0(s,t.getNextSiblings()),n.insertBefore(i),n.insertAfter(a),n.replace(t)}}}function k0(...t){const e=[];for(const n of t)if(n&&"string"==typeof n)for(const[t]of n.matchAll(/\S+/g))e.push(t);return e}class C0 extends tQ{static getType(){return"listitem"}static clone(t){return new C0(t.__value,t.__checked,t.__key)}constructor(t,e,n){super(n),this.__value=void 0===t?1:t,this.__checked=e}createDOM(t){const e=document.createElement("li"),n=this.getParent();return F0(n)&&"check"===n.getListType()&&M0(e,this,null),e.value=this.__value,E0(e,t.theme,this),e}updateDOM(t,e,n){const r=this.getParent();return F0(r)&&"check"===r.getListType()&&M0(e,this,t),e.value=this.__value,E0(e,n.theme,this),!1}static transform(){return t=>{if(N0(t)||v0(144),null==t.__checked)return;const e=t.getParent();F0(e)&&"check"!==e.getListType()&&null!=t.getChecked()&&t.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:P0,priority:0})}}static importJSON(t){return T0().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setValue(t.value).setChecked(t.checked)}exportDOM(t){const e=this.createDOM(t._config);return e.style.textAlign=this.getFormatType(),{element:e}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...t){for(let e=0;e<t.length;e++){const n=t[e];if(eQ(n)&&this.canMergeWith(n)){const t=n.getChildren();this.append(...t),n.remove()}else super.append(n)}return this}replace(t,e){if(N0(t))return super.replace(t);this.setIndent(0);const n=this.getParentOrThrow();if(!F0(n))return t;if(n.__first===this.getKey())n.insertBefore(t);else if(n.__last===this.getKey())n.insertAfter(t);else{const e=R0(n.getListType());let r=this.getNextSibling();for(;r;){const t=r;r=r.getNextSibling(),e.append(t)}n.insertAfter(t),t.insertAfter(e)}return e&&(eQ(t)||v0(139),this.getChildren().forEach((e=>{t.append(e)}))),this.remove(),0===n.getChildrenSize()&&n.remove(),t}insertAfter(t,e=!0){const n=this.getParentOrThrow();if(F0(n)||v0(39),N0(t))return super.insertAfter(t,e);const r=this.getNextSiblings();if(n.insertAfter(t,e),0!==r.length){const i=R0(n.getListType());r.forEach((t=>i.append(t))),t.insertAfter(i,e)}return t}remove(t){const e=this.getPreviousSibling(),n=this.getNextSibling();super.remove(t),e&&n&&y0(e)&&y0(n)&&(_0(e.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(t,e=!0){const n=T0().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,e),n}collapseAtStart(t){const e=fQ();this.getChildren().forEach((t=>e.append(t)));const n=this.getParentOrThrow(),r=n.getParentOrThrow(),i=N0(r);if(1===n.getChildrenSize())if(i)n.remove(),r.select();else{n.insertBefore(e),n.remove();const r=t.anchor,i=t.focus,o=e.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(o,r.offset,"element"),"element"===i.type&&i.getNode().is(this)&&i.set(o,i.offset,"element")}else n.insertBefore(e),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(t){const e=this.getWritable();return e.__value=t,e}getChecked(){const t=this.getLatest();let e;const n=this.getParent();return F0(n)&&(e=n.getListType()),"check"===e?Boolean(t.__checked):void 0}setChecked(t){const e=this.getWritable();return e.__checked=t,e}toggleChecked(){const t=this.getWritable();return t.setChecked(!t.__checked)}getIndent(){const t=this.getParent();if(null===t)return this.getLatest().__indent;let e=t.getParentOrThrow(),n=0;for(;N0(e);)e=e.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(t){"number"!=typeof t&&v0(117),(t=Math.floor(t))>=0||v0(199);let e=this.getIndent();for(;e!==t;)e<t?(w0(this),e++):(S0(this),e--);return this}canInsertAfter(t){return N0(t)}canReplaceWith(t){return N0(t)}canMergeWith(t){return N0(t)||mQ(t)}extractWithChild(t,e){if(!aJ(e))return!1;const n=e.anchor.getNode(),r=e.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===e.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return R0("bullet")}canMergeWhenEmpty(){return!0}}function E0(t,e,n){const r=[],i=[],o=e.list,a=o?o.listitem:void 0;let s;if(o&&o.nested&&(s=o.nested.listitem),void 0!==a&&r.push(...k0(a)),o){const t=n.getParent(),e=F0(t)&&"check"===t.getListType(),a=n.getChecked();e&&!a||i.push(o.listitemUnchecked),e&&a||i.push(o.listitemChecked),e&&r.push(a?o.listitemChecked:o.listitemUnchecked)}if(void 0!==s){const t=k0(s);n.getChildren().some((t=>F0(t)))?r.push(...t):i.push(...t)}i.length>0&&WQ(t,...i),r.length>0&&HQ(t,...r)}function M0(t,e,n,r){F0(e.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),n&&e.__checked===n.__checked||t.setAttribute("aria-checked",e.getChecked()?"true":"false"))}function P0(t){if(t.classList.contains("task-list-item"))for(const e of t.children)if("INPUT"===e.tagName)return O0(e);const e=t.getAttribute("aria-checked");return{node:T0("true"===e||"false"!==e&&void 0)}}function O0(t){return"checkbox"!==t.getAttribute("type")?{node:null}:{node:T0(t.hasAttribute("checked"))}}function T0(t){return iG(new C0(void 0,t))}function N0(t){return t instanceof C0}class A0 extends tQ{static getType(){return"list"}static clone(t){const e=t.__listType||z0[t.__tag];return new A0(e,t.__start,t.__key)}constructor(t="number",e=1,n){super(n);const r=z0[t]||t;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=e}getTag(){return this.__tag}setListType(t){const e=this.getWritable();return e.__listType=t,e.__tag="number"===t?"ol":"ul",e}getListType(){return this.__listType}getStart(){return this.__start}setStart(t){const e=this.getWritable();return e.__start=t,e}createDOM(t,e){const n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,D0(r,t.theme,this),r}updateDOM(t,e,n){return t.__tag!==this.__tag||(D0(e,n.theme,this),!1)}static transform(){return t=>{F0(t)||v0(163),function(t){const e=t.getNextSibling();F0(e)&&t.getListType()===e.getListType()&&_0(t,e)}(t),function(t){const e="check"!==t.getListType();let n=t.getStart();for(const r of t.getChildren())N0(r)&&(r.getValue()!==n&&r.setValue(n),e&&null!=r.getLatest().__checked&&r.setChecked(void 0),F0(r.getFirstChild())||n++)}(t)}}static importDOM(){return{ol:()=>({conversion:I0,priority:0}),ul:()=>({conversion:I0,priority:0})}}static importJSON(t){return R0().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setListType(t.listType).setStart(t.start)}exportDOM(t){const e=this.createDOM(t._config,t);return uG(e)&&(1!==this.__start&&e.setAttribute("start",String(this.__start)),"check"===this.__listType&&e.setAttribute("__lexicalListType","check")),{element:e}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}append(...t){for(let e=0;e<t.length;e++){const n=t[e];if(N0(n))super.append(n);else{const t=T0();if(F0(n))t.append(n);else if(eQ(n))if(n.isInline())t.append(n);else{const e=UK(n.getTextContent());t.append(e)}else t.append(n);super.append(t)}}return this}extractWithChild(t){return N0(t)}}function D0(t,e,n){const r=[],i=[],o=e.list;if(void 0!==o){const t=o[`${n.__tag}Depth`]||[],e=function(t){let e=1,n=t.getParent();for(;null!=n;){if(N0(n)){const t=n.getParent();if(F0(t)){e++,n=t.getParent();continue}v0(40)}return e}return e}(n)-1,a=e%t.length,s=t[a],l=o[n.__tag];let c;const u=o.nested,d=o.checklist;if(void 0!==u&&u.list&&(c=u.list),void 0!==l&&r.push(l),void 0!==d&&"check"===n.__listType&&r.push(d),void 0!==s){r.push(...k0(s));for(let e=0;e<t.length;e++)e!==a&&i.push(n.__tag+e)}if(void 0!==c){const t=k0(c);e>1?r.push(...t):i.push(...t)}}i.length>0&&WQ(t,...i),r.length>0&&HQ(t,...r)}function L0(t){const e=[];for(let n=0;n<t.length;n++){const r=t[n];if(N0(r)){e.push(r);const t=r.getChildren();t.length>1&&t.forEach((t=>{F0(t)&&e.push(b0(t))}))}else e.push(b0(r))}return e}function I0(t){const e=t.nodeName.toLowerCase();let n=null;return"ol"===e?n=R0("number",t.start):"ul"===e&&(n=function(t){if("check"===t.getAttribute("__lexicallisttype")||t.classList.contains("contains-task-list"))return!0;for(const e of t.childNodes)if(uG(e)&&e.hasAttribute("aria-checked"))return!0;return!1}(t)?R0("check"):R0("bullet")),{after:L0,node:n}}const z0={ol:"number",ul:"bullet"};function R0(t="number",e=1){return iG(new A0(t,e))}function F0(t){return t instanceof A0}const $0={},j0={};function B0(t,e){const n=e.body?e.body.childNodes:[];let r=[];const i=[];for(let e=0;e<n.length;e++){const o=n[e];if(!V0.has(o.nodeName)){const e=Y0(o,t,i,!1);null!==e&&(r=r.concat(e))}}return function(t){for(const e of t)e.getNextSibling()instanceof dQ&&e.insertAfter(TK());for(const e of t){const t=e.getChildren();for(const n of t)e.insertBefore(n);e.remove()}}(i),r}function H0(t,e){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const n=document.createElement("div"),r=EZ().getChildren();for(let i=0;i<r.length;i++)W0(t,r[i],n,e);return n.innerHTML}function W0(t,e,n,r=null){let i=null===r||e.isSelected(r);const o=eQ(e)&&e.excludeFromCopy("html");let a=e;if(null!==r){let t=xG(e);t=ZK(t)&&null!==r?CQ(r,t):t,a=t}const s=eQ(a)?a.getChildren():[],l=t._nodes.get(a.getType());let c;c=l&&void 0!==l.exportDOM?l.exportDOM(t,a):a.exportDOM(t);const{element:u,after:d}=c;if(!u)return!1;const h=document.createDocumentFragment();for(let n=0;n<s.length;n++){const o=s[n],a=W0(t,o,h,r);!i&&eQ(e)&&a&&e.extractWithChild(o,r,"html")&&(i=!0)}if(i&&!o){if((uG(u)||hG(u))&&u.append(h),n.append(u),d){const t=d.call(a,u);t&&(hG(u)?u.replaceChildren(t):u.replaceWith(t))}}else n.append(h);return i}const V0=new Set(["STYLE","SCRIPT"]);function Y0(t,e,n,r,i=new Map,o){let a=[];if(V0.has(t.nodeName))return a;let s=null;const l=function(t,e){const{nodeName:n}=t,r=e._htmlConversions.get(n.toLowerCase());let i=null;if(void 0!==r)for(const e of r){const n=e(t);null!==n&&(null===i||(i.priority||0)<=(n.priority||0))&&(i=n)}return null!==i?i.conversion:null}(t,e),c=l?l(t):null;let u=null;if(null!==c){u=c.after;const e=c.node;if(s=Array.isArray(e)?e[e.length-1]:e,null!==s){for(const[,t]of i)if(s=t(s,o),!s)break;s&&a.push(...Array.isArray(e)?e:[s])}null!=c.forChild&&i.set(t.nodeName,c.forChild)}const d=t.childNodes;let h=[];const p=(null==s||!rG(s))&&(null!=s&&gJ(s)||r);for(let t=0;t<d.length;t++)h.push(...Y0(d[t],e,n,p,new Map(i),s));return null!=u&&(h=u(h)),fG(t)&&(h=function(t,e,n){const r=t.style.textAlign,i=[];let o=[];for(let t=0;t<e.length;t++){const a=e[t];if(gJ(a))r&&!a.getFormat()&&a.setFormat(r),i.push(a);else if(o.push(a),t===e.length-1||t<e.length-1&&gJ(e[t+1])){const t=n();t.setFormat(r),t.append(...o),i.push(t),o=[]}}return i}(t,h,p?()=>{const t=new dQ;return n.push(t),t}:fQ)),null==s?h.length>0?a=a.concat(h):fG(t)&&function(t){return null!=t.nextSibling&&null!=t.previousSibling&&(pG(t.nextSibling)&&pG(t.previousSibling))}(t)&&(a=a.concat(TK())):eQ(s)&&s.append(...h),a}var q0=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){const e=new URLSearchParams;e.append("code",t);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));function X0(t,e,n){const r=t.getData("application/x-lexical-editor");if(r)try{const t=JSON.parse(r);if(t.namespace===n._config.namespace&&Array.isArray(t.nodes))return U0(n,function(t){const e=[];for(let n=0;n<t.length;n++){const r=WJ(t[n]);ZK(r)&&MQ(r),e.push(r)}return e}(t.nodes),e)}catch(t){}const i=t.getData("text/html");if(i)try{return U0(n,B0(n,(new DOMParser).parseFromString(function(t){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:t=>t}).createHTML(t):t}(i),"text/html")),e)}catch(t){}const o=t.getData("text/plain")||t.getData("text/uri-list");if(null!=o)if(aJ(e)){const t=o.split(/(\r?\n|\t)/);""===t[t.length-1]&&t.pop();for(let e=0;e<t.length;e++){const n=xJ();if(aJ(n)){const r=t[e];"\n"===r||"\r\n"===r?n.insertParagraph():"\t"===r?n.insertNodes([JK()]):n.insertText(r)}}}else e.insertRawText(o)}function U0(t,e,n){t.dispatchCommand(bX,{nodes:e,selection:n})||n.insertNodes(e)}function Z0(t,e,n,r=[]){let i=null===e||n.isSelected(e);const o=eQ(n)&&n.excludeFromCopy("html");let a=n;if(null!==e){let t=xG(n);t=ZK(t)&&null!==e?CQ(e,t):t,a=t}const s=eQ(a)?a.getChildren():[],l=function(t){const e=t.exportJSON(),n=t.constructor;if(e.type!==n.getType()&&q0(58,n.name),eQ(t)){const t=e.children;Array.isArray(t)||q0(59,n.name)}return e}(a);if(ZK(a)){const t=a.__text;t.length>0?l.text=t:i=!1}for(let r=0;r<s.length;r++){const o=s[r],a=Z0(t,e,o,l.children);!i&&eQ(n)&&a&&n.extractWithChild(o,e,"clone")&&(i=!0)}if(i&&!o)r.push(l);else if(Array.isArray(l.children))for(let t=0;t<l.children.length;t++){const e=l.children[t];r.push(e)}return i}let G0=null;async function K0(t,e,n){if(null!==G0)return!1;if(null!==e)return new Promise(((r,i)=>{t.update((()=>{r(J0(t,e,n))}))}));const r=t.getRootElement(),i=null==t._window?window.document:t._window.document,o=lG(t._window);if(null===r||null===o)return!1;const a=i.createElement("span");a.style.cssText="position: fixed; top: -1000px;",a.append(i.createTextNode("#")),r.append(a);const s=new Range;return s.setStart(a,0),s.setEnd(a,1),o.removeAllRanges(),o.addRange(s),new Promise(((e,r)=>{const o=t.registerCommand(QX,(r=>(YQ(r,ClipboardEvent)&&(o(),null!==G0&&(window.clearTimeout(G0),G0=null),e(J0(t,r,n))),!0)),4);G0=window.setTimeout((()=>{o(),G0=null,e(!1)}),50),i.execCommand("copy"),a.remove()}))}function J0(t,e,n){if(void 0===n){const e=lG(t._window);if(!e)return!1;const r=e.anchorNode,i=e.focusNode;if(null!==r&&null!==i&&!lZ(t,r,i))return!1;const o=xJ();if(null===o)return!1;n=function(t=xJ()){const e={"text/plain":t?t.getTextContent():""};if(t){const n=FJ();for(const[r,i]of Q0){const o=i(n,t);null!==o&&(e[r]=o)}}return e}(o)}e.preventDefault();const r=e.clipboardData;return null!==r&&(function(t,e){for(const n in e){const r=e[n];void 0!==r&&t.setData(n,r)}}(r,n),!0)}const Q0=[["text/html",function(t,e=xJ()){return null==e&&q0(166),aJ(e)&&e.isCollapsed()||0===e.getNodes().length?"":H0(t,e)}],["application/x-lexical-editor",function(t,e=xJ()){return null==e&&q0(166),aJ(e)&&e.isCollapsed()||0===e.getNodes().length?null:JSON.stringify(function(t,e){const n=[],r=EZ().getChildren();for(let i=0;i<r.length;i++)Z0(t,e,r[i],n);return{namespace:t._config.namespace,nodes:n}}(t,e))}]];function t1(t,e){if(void 0!==document.caretRangeFromPoint){const n=document.caretRangeFromPoint(t,e);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){const n=document.caretPositionFromPoint(t,e);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}const e1="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,n1=e1&&"documentMode"in document?document.documentMode:null,r1=!(!e1||!("InputEvent"in window)||n1)&&"getTargetRanges"in new window.InputEvent("input"),i1=e1&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),o1=e1&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,a1=e1&&/^(?=.*Chrome).*/i.test(navigator.userAgent),s1=e1&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!a1,l1={};class c1 extends tQ{static getType(){return"quote"}static clone(t){return new c1(t.__key)}createDOM(t){const e=document.createElement("blockquote");return HQ(e,t.theme.quote),e}updateDOM(t,e){return!1}static importDOM(){return{blockquote:t=>({conversion:f1,priority:0})}}exportDOM(t){const{element:e}=super.exportDOM(t);if(uG(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();e.style.textAlign=t;const n=this.getDirection();n&&(e.dir=n)}return{element:e}}static importJSON(t){return u1().updateFromJSON(t)}insertNewAfter(t,e){const n=fQ(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,e),n}collapseAtStart(){const t=fQ();return this.getChildren().forEach((e=>t.append(e))),this.replace(t),!0}canMergeWhenEmpty(){return!0}}function u1(){return iG(new c1)}class d1 extends tQ{static getType(){return"heading"}static clone(t){return new d1(t.__tag,t.__key)}constructor(t,e){super(e),this.__tag=t}getTag(){return this.__tag}setTag(t){const e=this.getWritable();return this.__tag=t,e}createDOM(t){const e=this.__tag,n=document.createElement(e),r=t.theme.heading;if(void 0!==r){HQ(n,r[e])}return n}updateDOM(t,e,n){return t.__tag!==this.__tag}static importDOM(){return{h1:t=>({conversion:p1,priority:0}),h2:t=>({conversion:p1,priority:0}),h3:t=>({conversion:p1,priority:0}),h4:t=>({conversion:p1,priority:0}),h5:t=>({conversion:p1,priority:0}),h6:t=>({conversion:p1,priority:0}),p:t=>{const e=t.firstChild;return null!==e&&h1(e)?{conversion:()=>({node:null}),priority:3}:null},span:t=>h1(t)?{conversion:t=>({node:m1("h1")}),priority:3}:null}}exportDOM(t){const{element:e}=super.exportDOM(t);if(uG(e)){this.isEmpty()&&e.append(document.createElement("br"));const t=this.getFormatType();e.style.textAlign=t;const n=this.getDirection();n&&(e.dir=n)}return{element:e}}static importJSON(t){return m1(t.tag).updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setTag(t.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(t,e=!0){const n=t?t.anchor.offset:0,r=this.getLastDescendant(),i=!r||t&&t.anchor.key===r.getKey()&&n===r.getTextContentSize()||!t?fQ():m1(this.getTag()),o=this.getDirection();if(i.setDirection(o),this.insertAfter(i,e),0===n&&!this.isEmpty()&&t){const t=fQ();t.select(),this.replace(t,!0)}return i}collapseAtStart(){const t=this.isEmpty()?fQ():m1(this.getTag());return this.getChildren().forEach((e=>t.append(e))),this.replace(t),!0}extractWithChild(){return!0}}function h1(t){return"span"===t.nodeName.toLowerCase()&&"26pt"===t.style.fontSize}function p1(t){const e=t.nodeName.toLowerCase();let n=null;return"h1"!==e&&"h2"!==e&&"h3"!==e&&"h4"!==e&&"h5"!==e&&"h6"!==e||(n=m1(e),null!==t.style&&(_G(t,n),n.setFormat(t.style.textAlign))),{node:n}}function f1(t){const e=u1();return null!==t.style&&(e.setFormat(t.style.textAlign),_G(t,e)),{node:e}}function m1(t="h1"){return iG(new d1(t))}function g1(t){let e=null;if(YQ(t,DragEvent)?e=t.dataTransfer:YQ(t,ClipboardEvent)&&(e=t.clipboardData),null===e)return[!1,[],!1];const n=e.types,r=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(e.files),i]}function v1(t){const e=xJ();if(!aJ(e))return!1;const n=new Set,r=e.getNodes();for(let e=0;e<r.length;e++){const i=r[e],o=i.getKey();if(n.has(o))continue;const a=VQ(i,(t=>eQ(t)&&!t.isInline()));if(null===a)continue;const s=a.getKey();a.canIndent()&&!n.has(s)&&(n.add(s),t(a))}return n.size>0}function y1(t){return iQ(SZ(t))}function b1(t){for(const e of["lowercase","uppercase","capitalize"])t.hasFormat(e)&&t.toggleFormat(e)}function x1(t){return BQ(t.registerCommand(xX,(t=>{const e=xJ();return!!lJ(e)&&(e.clear(),!0)}),0),t.registerCommand(_X,(t=>{const e=xJ();return!!aJ(e)&&(e.deleteCharacter(t),!0)}),0),t.registerCommand(MX,(t=>{const e=xJ();return!!aJ(e)&&(e.deleteWord(t),!0)}),0),t.registerCommand(PX,(t=>{const e=xJ();return!!aJ(e)&&(e.deleteLine(t),!0)}),0),t.registerCommand(kX,(e=>{const n=xJ();if("string"==typeof e)null!==n&&n.insertText(e);else{if(null===n)return!1;const r=e.dataTransfer;if(null!=r)X0(r,n,t);else if(aJ(n)){const t=e.data;return t&&n.insertText(t),!0}}return!0}),0),t.registerCommand(EX,(()=>{const t=xJ();return!!aJ(t)&&(t.removeText(),!0)}),0),t.registerCommand(OX,(t=>{const e=xJ();return!!aJ(e)&&(e.formatText(t),!0)}),0),t.registerCommand(ZX,(t=>{const e=xJ();if(!aJ(e)&&!lJ(e))return!1;const n=e.getNodes();for(const e of n){const n=VQ(e,(t=>eQ(t)&&!t.isInline()));null!==n&&n.setFormat(t)}return!0}),0),t.registerCommand(wX,(t=>{const e=xJ();return!!aJ(e)&&(e.insertLineBreak(t),!0)}),0),t.registerCommand(SX,(()=>{const t=xJ();return!!aJ(t)&&(t.insertParagraph(),!0)}),0),t.registerCommand(YX,(()=>(function(t){let e=xJ()||_J();null===e&&(e=EZ().selectEnd()),e.insertNodes(t)}([JK()]),!0)),0),t.registerCommand(qX,(()=>v1((t=>{const e=t.getIndent();t.setIndent(e+1)}))),0),t.registerCommand(XX,(()=>v1((t=>{const e=t.getIndent();e>0&&t.setIndent(e-1)}))),0),t.registerCommand(RX,(t=>{const e=xJ();if(lJ(e)&&!y1(t.target)){const t=e.getNodes();if(t.length>0)return t[0].selectPrevious(),!0}else if(aJ(e)){const n=XZ(e.focus,!0);if(!t.shiftKey&&iQ(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),t.preventDefault(),!0}return!1}),0),t.registerCommand(FX,(t=>{const e=xJ();if(lJ(e)){const t=e.getNodes();if(t.length>0)return t[0].selectNext(0,0),!0}else if(aJ(e)){if(function(t){const e=t.focus;return"root"===e.key&&e.offset===EZ().getChildrenSize()}(e))return t.preventDefault(),!0;const n=XZ(e.focus,!1);if(!t.shiftKey&&iQ(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),t.preventDefault(),!0}return!1}),0),t.registerCommand(IX,(t=>{const e=xJ();if(lJ(e)){const n=e.getNodes();if(n.length>0)return t.preventDefault(),n[0].selectPrevious(),!0}if(!aJ(e))return!1;if(NQ(e,!0)){const n=t.shiftKey;return t.preventDefault(),AQ(e,n,!0),!0}return!1}),0),t.registerCommand(DX,(t=>{const e=xJ();if(lJ(e)&&!y1(t.target)){const n=e.getNodes();if(n.length>0)return t.preventDefault(),n[0].selectNext(0,0),!0}if(!aJ(e))return!1;const n=t.shiftKey;return!!NQ(e,!1)&&(t.preventDefault(),AQ(e,n,!1),!0)}),0),t.registerCommand(BX,(e=>{if(y1(e.target))return!1;const n=xJ();if(!aJ(n))return!1;const{anchor:r}=n,i=r.getNode();return n.isCollapsed()&&0===r.offset&&!aQ(i)&&function(t){const e=VQ(t,(t=>eQ(t)&&!t.isInline()));return eQ(e)||zQ(4,t.__key),e}(i).getIndent()>0?(e.preventDefault(),t.dispatchCommand(XX,void 0)):(!o1||"ko-KR"!==navigator.language)&&(e.preventDefault(),t.dispatchCommand(_X,!0))}),0),t.registerCommand(WX,(e=>{if(y1(e.target))return!1;return!!aJ(xJ())&&(e.preventDefault(),t.dispatchCommand(_X,!1))}),0),t.registerCommand($X,(e=>{const n=xJ();if(!aJ(n))return!1;if(b1(n),null!==e){if((o1||i1||s1)&&r1)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(wX,!1)}return t.dispatchCommand(SX,void 0)}),0),t.registerCommand(HX,(()=>!!aJ(xJ())&&(t.blur(),!0)),0),t.registerCommand(UX,(e=>{const[,n]=g1(e);if(n.length>0){const r=t1(e.clientX,e.clientY);if(null!==r){const{offset:e,node:i}=r,o=SZ(i);if(null!==o){const t=function(){const t=eJ("root",0,"element"),e=eJ("root",0,"element");return new sJ(t,e,0,"")}();if(ZK(o))t.anchor.set(o.getKey(),e,"text"),t.focus.set(o.getKey(),e,"text");else{const e=o.getParentOrThrow().getKey(),n=o.getIndexWithinParent()+1;t.anchor.set(e,n,"element"),t.focus.set(e,n,"element")}PZ(rZ(t))}t.dispatchCommand(l1,n)}return e.preventDefault(),!0}return!!aJ(xJ())}),0),t.registerCommand(GX,(t=>{const[e]=g1(t),n=xJ();return!(e&&!aJ(n))}),0),t.registerCommand(KX,(t=>{const[e]=g1(t),n=xJ();if(e&&!aJ(n))return!1;const r=t1(t.clientX,t.clientY);if(null!==r){iQ(SZ(r.node))&&t.preventDefault()}return!0}),0),t.registerCommand(eU,(()=>(function(t){const e=EZ();if(aJ(t)){const e=t.anchor,n=t.focus,r=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();return e.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),rZ(t),t}{const t=e.select(0,e.getChildrenSize());PZ(rZ(t))}}(),!0)),0),t.registerCommand(QX,(e=>(K0(t,YQ(e,ClipboardEvent)?e:null),!0)),0),t.registerCommand(tU,(e=>(async function(t,e){await K0(e,YQ(t,ClipboardEvent)?t:null),e.update((()=>{const t=xJ();aJ(t)?t.removeText():lJ(t)&&t.getNodes().forEach((t=>t.remove()))}))}(e,t),!0)),0),t.registerCommand(CX,(e=>{const[,n,r]=g1(e);return n.length>0&&!r?(t.dispatchCommand(l1,n),!0):(!dG(e.target)||!sZ(e.target))&&(null!==xJ()&&(function(t,e){t.preventDefault(),e.update((()=>{const n=xJ(),r=YQ(t,InputEvent)||YQ(t,KeyboardEvent)?null:t.clipboardData;null!=r&&null!==n&&X0(r,n,e)}),{tag:"paste"})}(e,t),!0))}),0),t.registerCommand(jX,(t=>{const e=xJ();return aJ(e)&&b1(e),!1}),0),t.registerCommand(VX,(t=>{const e=xJ();return aJ(e)&&b1(e),!1}),0))}var _1=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){const e=new URLSearchParams;e.append("code",t);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));const w1=g(null);function S1(){const t=p(w1);return null==t&&_1(8),t}const k1="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,C1=k1?d:l,E1={tag:"history-merge"};function M1({initialConfig:e,children:n}){const r=o((()=>{const{theme:t,namespace:n,nodes:r,onError:i,editorState:o,html:a}=e,s=function(t,e){let n=null;return null!=t&&(n=t[1]),{getTheme:function(){return null!=e?e:null!=n?n.getTheme():null}}}(null,t),l=vQ({editable:e.editable,html:a,namespace:n,nodes:r,onError:t=>i(t,l),theme:t});return function(t,e){if(null!==e)if(void 0===e)t.update((()=>{const e=EZ();if(e.isEmpty()){const n=fQ();e.append(n);const r=k1?document.activeElement:null;(null!==xJ()||null!==r&&r===t.getRootElement())&&n.select()}}),E1);else if(null!==e)switch(typeof e){case"string":{const n=t.parseEditorState(e);t.setEditorState(n,E1);break}case"object":t.setEditorState(e,E1);break;case"function":t.update((()=>{EZ().isEmpty()&&e(t)}),E1)}}(l,o),[l,s]}),[]);return C1((()=>{const t=e.editable,[n]=r;n.setEditable(void 0===t||t)}),[]),t(w1.Provider,{value:r,children:n})}var P1="LexicalContent-module_editableContent__f69V7";function O1({defaultSelection:t}){const[e]=S1();return l((()=>{e.focus((()=>{const t=document.activeElement,n=e.getRootElement();null===n||null!==t&&n.contains(t)||n.focus({preventScroll:!0})}),{defaultSelection:t})}),[t,e]),null}const T1="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d:l;function N1(t){return{initialValueFn:()=>t.isEditable(),subscribe:e=>t.registerEditableListener(e)}}function A1(t,e=!0){if(t)return!1;let n=EZ().getTextContent();return e&&(n=n.trim()),""===n}function D1(t){return()=>function(t){if(!A1(t,!1))return!1;const e=EZ().getChildren(),n=e.length;if(n>1)return!1;for(let t=0;t<n;t++){const n=e[t];if(iQ(n))return!1;if(eQ(n)){if(!mQ(n))return!1;if(0!==n.__indent)return!1;const e=n.getChildren(),r=e.length;for(let n=0;n<r;n++)if(!ZK(e[t]))return!1}}return!0}(t)}!function(t){t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")&&t.default}((function(t){const e=new URLSearchParams;e.append("code",t);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));const L1="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d:l;function I1(t){return t.getEditorState().read(D1(t.isComposing()))}function z1({contentEditable:r,placeholder:i=null,ErrorBoundary:a}){const[s]=S1(),c=function(e,n){const[r,i]=u((()=>e.getDecorators()));return L1((()=>e.registerDecoratorListener((t=>{O((()=>{i(t)}))}))),[e]),l((()=>{i(e.getDecorators())}),[e]),o((()=>{const i=[],o=Object.keys(r);for(let a=0;a<o.length;a++){const s=o[a],l=t(n,{onError:t=>e._onError(t),children:t(k,{fallback:null,children:r[s]})}),c=e.getElementByKey(s);null!==c&&i.push(M(l,c,s))}return i}),[n,r,e])}(s,a);return function(t){L1((()=>BQ(x1(t),function(t){const e=window.location.origin,n=n=>{if(n.origin!==e)return;const r=t.getRootElement();if(document.activeElement!==r)return;const i=n.data;if("string"==typeof i){let e;try{e=JSON.parse(i)}catch(t){return}if(e&&"nuanria_messaging"===e.protocol&&"request"===e.type){const r=e.payload;if(r&&"makeChanges"===r.functionId){const e=r.args;if(e){const[r,i,o,a,s,l]=e;t.update((()=>{const t=xJ();if(aJ(t)){const e=t.anchor;let l=e.getNode(),c=0,u=0;if(ZK(l)&&r>=0&&i>=0&&(c=r,u=r+i,t.setTextNodeRange(l,c,l,u)),c===u&&""===o||(t.insertRawText(o),l=e.getNode()),ZK(l)){c=a,u=a+s;const e=l.getTextContentSize();c=c>e?e:c,u=u>e?e:u,t.setTextNodeRange(l,c,l,u)}n.stopImmediatePropagation()}}))}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(t))),[t])}(s),e(n,{children:[r,t(R1,{content:i}),c]})}function R1({content:t}){const[e]=S1(),n=function(t){const[e,n]=u((()=>I1(t)));return L1((()=>{function e(){const e=I1(t);n(e)}return e(),BQ(t.registerUpdateListener((()=>{e()})),t.registerEditableListener((()=>{e()})))}),[t]),e}(e),r=function(t){const[e]=S1(),n=o((()=>t(e)),[e,t]),[r,i]=u((()=>n.initialValueFn())),a=s(r);return T1((()=>{const{initialValueFn:t,subscribe:e}=n,r=t();return a.current!==r&&(a.current=r,i(r)),e((t=>{a.current=t,i(t)}))}),[n,t]),r}(N1);return n?"function"==typeof t?t(r):t:null}const F1="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?d:l;const $1=h((function({editor:e,ariaActiveDescendant:n,ariaAutoComplete:r,ariaControls:i,ariaDescribedBy:a,ariaErrorMessage:s,ariaExpanded:l,ariaInvalid:d,ariaLabel:h,ariaLabelledBy:p,ariaMultiline:f,ariaOwns:m,ariaRequired:g,autoCapitalize:v,className:y,id:b,role:x="textbox",spellCheck:_=!0,style:w,tabIndex:S,"data-testid":k,...C},E){const[M,P]=u(e.isEditable()),O=c((t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)}),[e]),T=o((()=>function(...t){return e=>{t.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}}(E,O)),[O,E]);return F1((()=>(P(e.isEditable()),e.registerEditableListener((t=>{P(t)})))),[e]),t("div",{"aria-activedescendant":M?n:void 0,"aria-autocomplete":M?r:"none","aria-controls":M?i:void 0,"aria-describedby":a,...null!=s?{"aria-errormessage":s}:{},"aria-expanded":M&&"combobox"===x?!!l:void 0,...null!=d?{"aria-invalid":d}:{},"aria-label":h,"aria-labelledby":p,"aria-multiline":f,"aria-owns":M?m:void 0,"aria-readonly":!M||void 0,"aria-required":g,autoCapitalize:v,className:y,contentEditable:M,"data-testid":k,id:b,ref:T,role:M?x:void 0,spellCheck:_,style:w,tabIndex:S,...C})}));function j1(t){return t.getEditorState().read(D1(t.isComposing()))}const B1=h((function(r,i){const{placeholder:o,...a}=r,[s]=S1();return e(n,{children:[t($1,{editor:s,...a,ref:i}),null!=o&&t(H1,{editor:s,content:o})]})}));function H1({content:e,editor:n}){const r=function(t){const[e,n]=u((()=>j1(t)));return F1((()=>{function e(){const e=j1(t);n(e)}return e(),BQ(t.registerUpdateListener((()=>{e()})),t.registerEditableListener((()=>{e()})))}),[t]),e}(n),[i,o]=u(n.isEditable());if(d((()=>(o(n.isEditable()),n.registerEditableListener((t=>{o(t)})))),[n]),!r)return null;let a=null;return"function"==typeof e?a=e(i):null!==e&&(a=e),null===a?null:t("div",{"aria-hidden":!0,children:a})}function W1(t,e,n,r,i){if(null===t||0===n.size&&0===r.size&&!i)return 0;const o=e._selection,a=t._selection;if(i)return 1;if(!(aJ(o)&&aJ(a)&&a.isCollapsed()&&o.isCollapsed()))return 0;const s=function(t,e,n){const r=t._nodeMap,i=[];for(const t of e){const e=r.get(t);void 0!==e&&i.push(e)}for(const[t,e]of n){if(!e)continue;const n=r.get(t);void 0===n||aQ(n)||i.push(n)}return i}(e,n,r);if(0===s.length)return 0;if(s.length>1){const n=e._nodeMap,r=n.get(o.anchor.key),i=n.get(a.anchor.key);return r&&i&&!t._nodeMap.has(r.__key)&&ZK(r)&&1===r.__text.length&&1===o.anchor.offset?2:0}const l=s[0],c=t._nodeMap.get(l.__key);if(!ZK(c)||!ZK(l)||c.__mode!==l.__mode)return 0;const u=c.__text,d=l.__text;if(u===d)return 0;const h=o.anchor,p=a.anchor;if(h.key!==p.key||"text"!==h.type)return 0;const f=h.offset,m=p.offset,g=d.length-u.length;return 1===g&&m===f-1?2:-1===g&&m===f+1?3:-1===g&&m===f?4:0}function V1(t,e){let n=Date.now(),r=0;return(i,o,a,s,l,c)=>{const u=Date.now();if(c.has("historic"))return r=0,n=u,2;const d=W1(i,o,s,l,t.isComposing()),h=(()=>{const h=null===a||a.editor===t,p=c.has("history-push");if(!p&&h&&c.has("history-merge"))return 0;if(null===i)return 1;const f=o._selection;return s.size>0||l.size>0?!1===p&&0!==d&&d===r&&u<n+e&&h||1===s.size&&function(t,e,n){const r=e._nodeMap.get(t),i=n._nodeMap.get(t),o=e._selection,a=n._selection;return!(aJ(o)&&aJ(a)&&"element"===o.anchor.type&&"element"===o.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!ZK(r)||!ZK(i)||r.__parent!==i.__parent)&&JSON.stringify(e.read((()=>r.exportJSON())))===JSON.stringify(n.read((()=>i.exportJSON())))}(Array.from(s)[0],i,o)?0:1:null!==f?0:2})();return n=u,r=d,h}}function Y1(t){t.undoStack=[],t.redoStack=[],t.current=null}function q1({delay:t,externalHistoryState:e}){const[n]=S1();return function(t,e,n=1e3){const r=o((()=>e||{current:null,redoStack:[],undoStack:[]}),[e]);l((()=>function(t,e,n){const r=V1(t,n),i=BQ(t.registerCommand(TX,(()=>(function(t,e){const n=e.redoStack,r=e.undoStack;if(0!==r.length){const i=e.current,o=r.pop();null!==i&&(n.push(i),t.dispatchCommand(iU,!0)),0===r.length&&t.dispatchCommand(oU,!1),e.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:"historic"})}}(t,e),!0)),0),t.registerCommand(NX,(()=>(function(t,e){const n=e.redoStack,r=e.undoStack;if(0!==n.length){const i=e.current;null!==i&&(r.push(i),t.dispatchCommand(oU,!0));const o=n.pop();0===n.length&&t.dispatchCommand(iU,!1),e.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:"historic"})}}(t,e),!0)),0),t.registerCommand(nU,(()=>(Y1(e),!1)),0),t.registerCommand(rU,(()=>(Y1(e),t.dispatchCommand(iU,!1),t.dispatchCommand(oU,!1),!0)),0),t.registerUpdateListener((({editorState:n,prevEditorState:i,dirtyLeaves:o,dirtyElements:a,tags:s})=>{const l=e.current,c=e.redoStack,u=e.undoStack,d=null===l?null:l.editorState;if(null!==l&&n===d)return;const h=r(i,n,l,o,a,s);if(1===h)0!==c.length&&(e.redoStack=[],t.dispatchCommand(iU,!1)),null!==l&&(u.push({...l}),t.dispatchCommand(oU,!0));else if(2===h)return;e.current={editor:t,editorState:n}})));return i}(t,r,n)),[n,t,r])}(n,e,t),null}function X1(t,e){return X1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},X1(t,e)}var U1={error:null},Z1=function(t){var e,n;function i(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).state=U1,e.resetErrorBoundary=function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null==e.props.onReset||(t=e.props).onReset.apply(t,r),e.reset()},e}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,X1(e,n),i.getDerivedStateFromError=function(t){return{error:t}};var o=i.prototype;return o.reset=function(){this.setState(U1)},o.componentDidCatch=function(t,e){var n,r;null==(n=(r=this.props).onError)||n.call(r,t,e)},o.componentDidUpdate=function(t,e){var n,r,i,o,a=this.state.error,s=this.props.resetKeys;null!==a&&null!==e.error&&(void 0===(i=t.resetKeys)&&(i=[]),void 0===(o=s)&&(o=[]),i.length!==o.length||i.some((function(t,e){return!Object.is(t,o[e])})))&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,t.resetKeys,s),this.reset())},o.render=function(){var t=this.state.error,e=this.props,n=e.fallbackRender,i=e.FallbackComponent,o=e.fallback;if(null!==t){var a={error:t,resetErrorBoundary:this.resetErrorBoundary};if(r.isValidElement(o))return o;if("function"==typeof n)return n(a);if(i)return r.createElement(i,a);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},i}(r.Component);function G1({children:e,onError:n}){return t(Z1,{fallback:t("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:n,children:e})}!function(t){t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")&&t.default}((function(t){const e=new URLSearchParams;e.append("code",t);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}));const K1=new Set(["http:","https:","mailto:","sms:","tel:"]);class J1 extends tQ{static getType(){return"link"}static clone(t){return new J1(t.__url,{rel:t.__rel,target:t.__target,title:t.__title},t.__key)}constructor(t="",e={},n){super(n);const{target:r=null,rel:i=null,title:o=null}=e;this.__url=t,this.__target=r,this.__rel=i,this.__title=o}createDOM(t){const e=document.createElement("a");return e.href=this.sanitizeUrl(this.__url),null!==this.__target&&(e.target=this.__target),null!==this.__rel&&(e.rel=this.__rel),null!==this.__title&&(e.title=this.__title),HQ(e,t.theme.link),e}updateDOM(t,e,n){if(cG(e)){const n=this.__url,r=this.__target,i=this.__rel,o=this.__title;n!==t.__url&&(e.href=n),r!==t.__target&&(r?e.target=r:e.removeAttribute("target")),i!==t.__rel&&(i?e.rel=i:e.removeAttribute("rel")),o!==t.__title&&(o?e.title=o:e.removeAttribute("title"))}return!1}static importDOM(){return{a:t=>({conversion:Q1,priority:1})}}static importJSON(t){return t2().updateFromJSON(t)}updateFromJSON(t){return super.updateFromJSON(t).setURL(t.url).setRel(t.rel||null).setTarget(t.target||null).setTitle(t.title||null)}sanitizeUrl(t){try{const e=new URL(t);if(!K1.has(e.protocol))return"about:blank"}catch(e){return t}return t}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(t){const e=this.getWritable();return e.__url=t,e}getTarget(){return this.getLatest().__target}setTarget(t){const e=this.getWritable();return e.__target=t,e}getRel(){return this.getLatest().__rel}setRel(t){const e=this.getWritable();return e.__rel=t,e}getTitle(){return this.getLatest().__title}setTitle(t){const e=this.getWritable();return e.__title=t,e}insertNewAfter(t,e=!0){const n=t2(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,e),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(t,e,n){if(!aJ(e))return!1;const r=e.anchor.getNode(),i=e.focus.getNode();return this.isParentOf(r)&&this.isParentOf(i)&&e.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function Q1(t){let e=null;if(cG(t)){const n=t.textContent;(null!==n&&""!==n||t.children.length>0)&&(e=t2(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target"),title:t.getAttribute("title")}))}return{node:e}}function t2(t="",e){return iG(new J1(t,e))}function e2(t){return t instanceof J1}function n2({label:n,value:r,onChange:i,placeholder:o="","data-test-id":a,type:s="text"}){return e("div",{className:"Input__wrapper",children:[t("label",{className:"Input__label",children:n}),t("input",{type:s,className:"Input__input",placeholder:o,value:r,onChange:t=>{i(t.target.value)},"data-test-id":a})]})}let r2=!1;const i2=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000000","#4a4a4a","#9b9b9b","#ffffff"],o2=214;function a2({color:n,onChange:r}){const[i,a]=u(p2("hex",n)),[c,d]=u(n),h=s(null),p=o((()=>({x:i.hsv.s/100*o2,y:(100-i.hsv.v)/100*150})),[i.hsv.s,i.hsv.v]),f=o((()=>({x:i.hsv.h/360*o2})),[i.hsv]);return l((()=>{null!==h.current&&r&&(r(i.hex,r2),d(i.hex))}),[i,r]),l((()=>{if(void 0===n)return;const t=p2("hex",n);a(t),d(t.hex)}),[n]),e("div",{className:"color-picker-wrapper",style:{width:o2},ref:h,children:[t(n2,{label:"Hex",onChange:t=>{if(d(t),/^#[0-9A-Fa-f]{6}$/i.test(t)){const e=p2("hex",t);a(e)}},value:c}),t("div",{className:"color-picker-basic-color",children:i2.map((e=>t("button",{className:e===i.hex?" active":"",style:{backgroundColor:e},onClick:()=>{d(e),a(p2("hex",e))}},e)))}),t(s2,{className:"color-picker-saturation",style:{backgroundColor:`hsl(${i.hsv.h}, 100%, 50%)`},onChange:({x:t,y:e})=>{const n=p2("hsv",{...i.hsv,s:t/o2*100,v:100-e/150*100});a(n),d(n.hex)},children:t("div",{className:"color-picker-saturation_cursor",style:{backgroundColor:i.hex,left:p.x,top:p.y}})}),t(s2,{className:"color-picker-hue",onChange:({x:t})=>{const e=p2("hsv",{...i.hsv,h:t/o2*360});a(e),d(e.hex)},children:t("div",{className:"color-picker-hue_cursor",style:{backgroundColor:`hsl(${i.hsv.h}, 100%, 50%)`,left:f.x}})}),t("div",{className:"color-picker-color",style:{backgroundColor:i.hex}})]})}function s2({className:e,style:n,onChange:r,children:i}){const o=s(null),a=s(!1),l=t=>{if(o.current){const{current:e}=o,{width:n,height:i,left:a,top:s}=e.getBoundingClientRect(),l=function(t){let e=1;if(function(){if(void 0===qQ){const t=document.createElement("div");t.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(t);const e=t.getBoundingClientRect();t.style.setProperty("zoom","2"),qQ=t.getBoundingClientRect().width===e.width,document.body.removeChild(t)}return qQ}())for(;t;)e*=Number(window.getComputedStyle(t).getPropertyValue("zoom")),t=t.parentElement;return e}(e),c=l2(t.clientX/l-a,n,0),u=l2(t.clientY/l-s,i,0);r({x:c,y:u})}};return t("div",{ref:o,className:e,style:n,onMouseDown:t=>{if(0!==t.button)return;l(t);const e=t=>{a.current=!0,r2=!0,l(t)},n=t=>{a.current&&(r2=!1),document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",n,!1),l(t),a.current=!1};document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",n,!1)},children:i})}function l2(t,e,n){return t>e?e:t<n?n:t}function c2(t){if(!t.startsWith("#")){const e=document.createElement("canvas").getContext("2d");if(!e)throw new Error("2d context not supported or canvas already initialized");return e.fillStyle=t,e.fillStyle}return 4===t.length||5===t.length?(t=t.split("").map(((t,e)=>e?t+t:"#")).join(""),t):7===t.length||9===t.length?t:"#000000"}function u2(t){const e=(t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((t,e,n,r)=>"#"+e+e+n+n+r+r)).substring(1).match(/.{2}/g)||[]).map((t=>parseInt(t,16)));return{b:e[2],g:e[1],r:e[0]}}function d2({r:t,g:e,b:n}){t/=255,e/=255,n/=255;const r=Math.max(t,e,n),i=r-Math.min(t,e,n);return{h:i?60*(r===t?(e-n)/i+(e<n?6:0):r===e?2+(n-t)/i:4+(t-e)/i):0,s:r?i/r*100:0,v:100*r}}function h2({b:t,g:e,r:n}){return"#"+[n,e,t].map((t=>t.toString(16).padStart(2,"0"))).join("")}function p2(t,e){let n=c2("#121212"),r=u2(n),i=d2(r);if("hex"===t){n=c2(e),r=u2(n),i=d2(r)}else if("rgb"===t){r=e,n=h2(r),i=d2(r)}else if("hsv"===t){i=e,r=function({h:t,s:e,v:n}){const r=~~(t/60),i=t/60-r,o=(n/=100)*(1-(e/=100)),a=n*(1-e*i),s=n*(1-e*(1-i)),l=r%6,c=Math.round(255*[n,a,o,o,s,n][l]),u=Math.round(255*[s,n,n,a,o,o][l]);return{b:Math.round(255*[o,o,s,n,n,a][l]),g:u,r:c}}(i),n=h2(r)}return{hex:n,hsv:i,rgb:r}}const f2=r.createContext(null);function m2({children:e,className:n,onClick:i,title:o}){const a=s(null),c=r.useContext(f2);if(null===c)throw new Error("DropDownItem must be used within a DropDown");const{registerItem:u}=c;return l((()=>{a&&a.current&&u(a)}),[a,u]),t("button",{className:`item ${n}`,onClick:i,ref:a,title:o,type:"button",children:e})}function g2({children:e,dropDownRef:n,onClose:r}){const[i,a]=u(),[s,d]=u(),h=c((t=>{a((e=>e?[...e,t]:[t]))}),[a]),p=o((()=>({registerItem:h})),[h]);return l((()=>{i&&!s&&d(i[0]),s&&s.current&&s.current.focus()}),[i,s]),t(f2.Provider,{value:p,children:t("div",{className:"dropdown",ref:n,onKeyDown:t=>{if(!i)return;const e=t.key;["Escape","ArrowUp","ArrowDown","Tab"].includes(e)&&t.preventDefault(),"Escape"===e||"Tab"===e?r():"ArrowUp"===e?d((t=>{if(!t)return i[0];const e=i.indexOf(t)-1;return i[-1===e?i.length-1:e]})):"ArrowDown"===e&&d((t=>t?i[i.indexOf(t)+1]:i[0]))},children:e})})}function v2({colorPicker:r=!1,disabled:i=!1,buttonLabel:o,buttonAriaLabel:a,buttonClassName:c,buttonIconClassName:d,labelClassName:h,children:p,icon:f=t(Ua,{name:"chevronDown"}),stopCloseOnClickSelf:m,buttonOnClick:g}){const v=s(null),y=s(null),[b,x]=u(!1);return l((()=>{const t=y.current,e=v.current;if(b&&null!==t&&null!==e){const{top:n,left:r}=t.getBoundingClientRect();e.style.top=`${n+t.offsetHeight+4}px`,e.style.left=`${Math.min(r,window.innerWidth-e.offsetWidth-20)}px`}}),[v,y,b]),l((()=>{const t=y.current;if(null!==t&&b){const e=e=>{const n=e.target;m&&v.current&&v.current.contains(n)||t.contains(n)||x(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}}),[v,y,b,m]),l((()=>{const t=()=>{if(b){const t=y.current,e=v.current;if(null!==t&&null!==e){const{top:n}=t.getBoundingClientRect(),r=n+t.offsetHeight+4;r!==e.getBoundingClientRect().top&&(e.style.top=`${r}px`)}}};return document.addEventListener("scroll",t),()=>{document.removeEventListener("scroll",t)}}),[y,v,b]),e(n,{children:[e("button",{type:"button",disabled:i,"aria-label":a||o,className:`toolbar-item ${!r&&"dropdownButton"} ${c}`,onClick:()=>{x(!b),g&&g()},ref:y,children:[o&&t("div",{className:h,children:o}),!r&&f]}),b&&M(t(g2,{dropDownRef:v,onClose:()=>{x(!1),y&&y.current&&y.current.focus()},children:p}),document.body)]})}function y2({disabled:e=!1,stopCloseOnClickSelf:n=!0,color:r,onChange:i,...o}){return t(v2,{...o,colorPicker:!0,disabled:e,stopCloseOnClickSelf:n,children:t("div",{style:{position:"static",top:0,zIndex:99},children:t(a2,{color:r,onChange:i})})})}var b2;function x2({selectionFontSize:e,editor:n}){const[i,o]=r.useState(e),a=r.useCallback(((t,e)=>{const r=t=>(t||(t="15px"),`${t=t.slice(0,-2)}px`);n.update((()=>{if(n.isEditable()){const e=xJ();null!==e&&OQ(e,{"font-size":t||r})}}))}),[n]);r.useEffect((()=>{o(e)}),[e]);return t(v2,{buttonOnClick:()=>{},buttonLabel:`${i}px`,children:[8,9,10,11,12,14,16,18,20,24,28,32,36,48,60,72].map((e=>t(m2,{onClick:()=>{a(String(e)+"px",null)},children:t("span",{className:"text",children:e})},e)))})}!function(t){t[t.increment=1]="increment",t[t.decrement=2]="decrement"}(b2||(b2={}));const _2={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote"},w2=[["Arial","Arial"],["Courier New","Courier New"],["Georgia","Georgia"],["Times New Roman","Times New Roman"],["Trebuchet MS","Trebuchet MS"],["Verdana","Verdana"],["Roboto","Roboto"]],S2=[["10px","10px"],["11px","11px"],["12px","12px"],["13px","13px"],["14px","14px"],["15px","15px"],["16px","16px"],["17px","17px"],["18px","18px"],["19px","19px"],["20px","20px"]];function k2(t){return t?"active dropdown-item-active":""}function C2({editor:n,blockType:r,disabled:i=!1}){const o=()=>{n.update((()=>{const t=xJ();aJ(t)&&TQ(t,(()=>fQ()))}))},a=t=>{r!==t&&n.update((()=>{TQ(xJ(),(()=>m1(t)))}))};return e(v2,{disabled:i,buttonClassName:"toolbar-item block-controls",buttonIconClassName:"icon block-type "+r,buttonLabel:_2[r],buttonAriaLabel:"Formatting options for text style",children:[t(m2,{className:"item "+k2("paragraph"===r),onClick:o,children:t("span",{className:"text",children:"Normal"})}),t(m2,{className:"item "+k2("h1"===r),onClick:()=>a("h1"),children:t("span",{className:"text",children:"Heading 1"})}),t(m2,{className:"item "+k2("h2"===r),onClick:()=>a("h2"),children:t("span",{className:"text",children:"Heading 2"})}),t(m2,{className:"item "+k2("h3"===r),onClick:()=>a("h3"),children:t("span",{className:"text",children:"Heading 3"})}),t(m2,{className:"item "+k2("bullet"===r),onClick:()=>{"bullet"!==r?n.dispatchCommand($0,void 0):o()},children:t("span",{className:"text",children:"Bullet List"})}),t(m2,{className:"item "+k2("number"===r),onClick:()=>{"number"!==r?n.dispatchCommand(j0,void 0):o()},children:t("span",{className:"text",children:"Numbered List"})}),t(m2,{className:"item "+k2("quote"===r),onClick:()=>{"quote"!==r&&n.update((()=>{TQ(xJ(),(()=>u1()))}))},children:t("span",{className:"text",children:"Quote"})})]})}function E2({editor:e,value:n,style:r}){const i=c((t=>{e.update((()=>{const e=xJ();null!==e&&OQ(e,{[r]:t})}))}),[e,r]);return t(v2,{buttonOnClick:()=>{e.dispatchCommand(aU,void 0)},buttonClassName:"toolbar-item "+r,buttonLabel:n,buttonIconClassName:"font-family"===r?"icon block-type font-family":"",buttonAriaLabel:"font-family"===r?"Formatting options for font family":"Formatting options for font size",children:("font-family"===r?w2:S2).map((([e,o])=>t(m2,{className:`item ${k2(n===e)} ${"font-size"===r?"fontsize-item":""}`,onClick:()=>i(e),children:t("span",{className:"text",children:e})},e)))})}function M2(){return t("div",{className:"divider"})}const P2=a((({editor:n})=>{const r=s(null),i=s(null),o=s(null),[a,d]=u("14px"),[h,p]=u("#000"),[f,m]=u("#fff"),[g,v]=u("Arial"),[y,b]=u("left"),[x,_]=u(!1),[w,S]=u(!1),[k,C]=u(!1),[E,M]=u(!1),[P,O]=u(!1),[T,N]=u(!1),[A,D]=u(!1),[L,I]=u(!1),[z,R]=u("paragraph"),[F,$]=u(null),j=c((()=>{const t=xJ();if(aJ(t)){const e=t.anchor.getNode();let r="root"===e.getKey()?e:VQ(e,(t=>{const e=t.getParent();return null!==e&&rG(e)}));null===r&&(r=e.getTopLevelElementOrThrow());const i=r.getKey(),o=n.getElementByKey(i);C(t.hasFormat("code")),S(t.hasFormat("bold")),M(t.hasFormat("italic")),O(t.hasFormat("underline")),N(t.hasFormat("strikethrough"));const a=function(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?EQ(n)?r:i:EQ(e)?r:i}(t),s=a.getParent();if(e2(s)||e2(a)?_(!0):_(!1),null!==o)if($(i),F0(r)){const t=function(t,e){let n=t;for(;null!=n;){if(n instanceof e)return n;n=n.getParent()}return null}(e,A0),n=t?t.getListType():r.getListType();R(n)}else{const t=function(t){return t instanceof d1}(r)?r.getTag():r.getType();t in _2&&R(t)}let l;p(LQ(t,"color","#000")),m(LQ(t,"background-color","#fff")),v(LQ(t,"font-family","Arial")),e2(s)&&(l=VQ(a,(t=>eQ(t)&&!t.isInline()))),b(eQ(l)?l.getFormatType():eQ(a)?a.getFormatType():s?.getFormatType()||"left")}aJ(t)&&d(LQ(t,"font-size","14px"))}),[]);l((()=>BQ(n.registerUpdateListener((({editorState:t})=>{t.read((()=>{j()}))})),n.registerCommand(yX,((t,e)=>(j(),!1)),1),n.registerCommand(oU,(t=>(D(t),!1)),1),n.registerCommand(iU,(t=>(I(t),!1)),1))),[n,j]);const B=c(((t,e)=>{n.update((()=>{const e=xJ();null!==e&&OQ(e,t)}),e?{tag:"historic"}:{})}),[n]),H=c(((t,e)=>{V(t),B({color:t},e)}),[B]),W=c(((t,e)=>{Y(t),B({"background-color":t},e)}),[B]);l((()=>{V("white")}),[i]),l((()=>{Y("white")}),[o]);const V=t=>{if(!t||!i.current)return;const e=i.current.querySelectorAll("path");e[5]&&e[5].setAttribute("fill",t)},Y=t=>{if(!t||!o.current)return;const e=o.current.querySelectorAll("path");e[0]&&e[0].setAttribute("fill",t)},q=c(((t,e)=>{n.dispatchCommand(t,e)}),[]);return e("div",{className:"toolbar",ref:r,onClick:()=>{n.dispatchCommand(aU,void 0)},children:[t("button",{disabled:!A,onClick:()=>{n.dispatchCommand(TX,void 0)},className:"toolbar-item spaced","aria-label":"Undo",children:t(Ua,{name:"undo"})}),t("button",{disabled:!L,onClick:()=>{n.dispatchCommand(NX,void 0)},className:"toolbar-item","aria-label":"Redo",children:t(Ua,{name:"redo"})}),t(M2,{}),t(C2,{blockType:z,editor:n}),t(M2,{}),t(E2,{style:"font-family",value:g,editor:n}),t(M2,{}),t(x2,{selectionFontSize:a.slice(0,-2),editor:n}),t(M2,{}),t("button",{onClick:()=>{q(OX,"bold")},className:"toolbar-item spaced "+(w?"active":""),"aria-label":"Format Bold",children:t(Ua,{name:"formatBold"})}),t("button",{onClick:()=>{q(OX,"italic")},className:"toolbar-item spaced "+(E?"active":""),"aria-label":"Format Italics",children:t(Ua,{name:"formatItalic"})}),t("button",{onClick:()=>{q(OX,"underline")},className:"toolbar-item spaced "+(P?"active":""),"aria-label":"Format Underline",children:t(Ua,{name:"formatUnderlined"})}),t("button",{onClick:()=>{q(OX,"code")},className:"toolbar-item spaced "+(k?"active":""),"aria-label":"Format Underline",children:t(Ua,{name:"codeTags"})}),t("button",{onClick:()=>{q(OX,"strikethrough")},className:"toolbar-item spaced "+(T?"active":""),"aria-label":"Format Strikethrough",children:t(Ua,{name:"strikethroughS"})}),t(M2,{}),t("button",{onClick:()=>{q(ZX,"left")},className:"toolbar-item spaced "+("left"==y?"active":""),"aria-label":"Left Align",children:t(Ua,{name:"formatAlignLeft"})}),t("button",{onClick:()=>{q(ZX,"center")},className:"toolbar-item spaced "+("center"==y?"active":""),"aria-label":"Center Align",children:t(Ua,{name:"formatAlignCenter"})}),t("button",{onClick:()=>{q(ZX,"right")},className:"toolbar-item spaced "+("right"==y?"active":""),"aria-label":"Right Align",children:t(Ua,{name:"formatAlignRight"})}),t("button",{onClick:()=>{q(ZX,"justify")},className:"toolbar-item spaced "+("justify"==y?"active":""),"aria-label":"Justify Align",children:t(Ua,{name:"formatAlignJustify"})}),t(M2,{}),t(y2,{buttonClassName:"toolbar-item",buttonAriaLabel:"Formatting text color",buttonLabel:t(Ua,{name:"formatColorText"}),color:h,onChange:H,title:"text color"}),t(y2,{buttonClassName:"toolbar-item",buttonAriaLabel:"Formatting background color",buttonLabel:t(Ua,{name:"formatColorFill"}),color:f,onChange:W,title:"bg color"})]})}));function O2({onChange:t}){const[e]=S1();return i.useEffect((()=>e.registerUpdateListener((({editorState:n})=>{t(n,e)}))),[e,t]),null}const T2=a((({onChange:r,...i})=>{const[o]=S1();return t(j,{direction:"vertical",dimensionX:"fill",dimensionY:472,alignment:"leftTop",...i,children:e(n,{children:[t(P2,{editor:o}),t(z1,{contentEditable:t(B1,{className:P1}),ErrorBoundary:G1}),t(O2,{onChange:r}),t(q1,{}),t(O1,{})]})})}));var N2=a((({className:n="",value:r="<p></p>",headerProps:i,description:o,onChange:a,contentProps:s})=>{const l=(t,e)=>(((t,e)=>{const n=EZ(),r=B0(t,(new DOMParser).parseFromString(e,"text/html"));n.clear();try{n.append(...r)}catch{const t=fQ();t.append(...r),n.append(t)}})(t,e),t),u={namespace:"RichTextInput",onError:t=>{console.error("Lexical Error:",t)},editorState:t=>l(t,r),nodes:[bQ,{replace:$K,with:t=>new bQ(t.__text)},A0,C0,d1,c1,o0,p0]},d=c(((t,e)=>{t.read((()=>{const t=H0(e,null);a?.(t)}))}),[]);return e(j,{className:`${gX} ${n}`,dimensionX:"fill",direction:"vertical",children:[i&&t(vA,{prefix:{children:i?.icon&&t(Ua,{name:i?.icon}),...i?.iconProps},root:{children:i?.label&&t(W,{children:i?.label}),...i?.labelProps},...i?.container}),t(M1,{initialConfig:u,children:t(T2,{...s,onChange:d})}),t(W,{size:"xsmall",className:`${vX}`,children:o})]})})),A2={container:"ObjectInput-module_container__JtW64"};var D2=a((({value:n,properties:r,title:i,description:o,errorMessage:a,helperTextContainerProps:s,helperTextProps:l,onChange:c,...u})=>{const d=I2({properties:r,value:n,onChange:c});return e(j,{gap:20,direction:"vertical",dimensionX:"fill",...u,className:`${u.className} ${A2.container}`,children:[i&&t(vA,{prefix:{children:t(Ua,{name:"dataObject",className:A2.icon})},root:{children:t(W,{variant:"secondary",children:i})}}),d,t(ot.HelperText,{alignment:"leftCenter",dimensionX:"fill",...s,className:`${A2.helperText} ${s?.className}`,children:t(W,{...l,size:"small",variant:a?"danger":"secondary",className:`${l?.className}`,children:a||o})})]})}));const L2={string:e=>t(FY,{label:e.title,description:e.description,inputContainerClassName:e.className,value:e.value,options:e.enum,onChange:t=>{e.onChange?.({key:e.key,value:t})}}),number:e=>t(VY,{label:e.title,description:e.description,inputContainerClassName:e.className,value:e.value,options:e.enum,onChange:t=>e.onChange?.({key:e.key,value:t})}),textarea:e=>t(ZY,{title:e.title,titlePrefixProps:{children:t(Ua,{name:"formatSize"})},containerProps:{className:e.className},value:e.value,onChange:t=>e.onChange?.({key:e.key,value:t.target.value})}),date:e=>t(GY,{label:e.title,description:e.description,inputContainerClassName:e.className,value:e.value,onChange:t=>e.onChange?.({key:e.key,value:t})}),boolean:e=>t(QY,{checked:e.value,label:e.title,description:e.description,containerProps:{dimensionX:"fill"},onChange:t=>e.onChange?.({key:e.key,value:t})}),color:e=>t(eq,{label:e.title,description:e.description,inputContainerClassName:e.className,value:e.value,onChange:t=>e.onChange?.({key:e.key,value:t})}),storage:e=>t(oX,{onUpload:()=>{},label:e.title,containerProps:{className:e.className}}),multiselect:e=>t(uX,{label:e.title,description:e.description,inputContainerClassName:e.className,value:e.value,options:e.enum,onChange:t=>e.onChange?.({key:e.key,value:t})}),location:e=>{if(oW.api.isTypeLocation(e.value)){const t=e?.value.coordinates;e.value={lat:t[1],lng:t[0]}}return t(mX,{title:e.title,dimensionX:"fill",coordinates:e.value,onChange:t=>{let n=t;oW.api.isTypeLocation(e.value)&&(n={type:"Point",coordinates:[t.lng,t.lng]}),e.onChange?.({key:e.key,value:n})}})},richtext:e=>t(N2,{headerProps:{label:e.title,icon:"formatAlignCenter"},value:e.value,onChange:t=>e.onChange?.({key:e.key,value:t})}),object:e=>t(D2,{properties:e.properties,title:e.title,description:e.description,value:e.value,onChange:t=>{e.onChange?.({key:e.key,value:t})}}),array:e=>t(z2,{title:e.title,description:e.description,value:e.value,onChange:t=>e.onChange?.({key:e.title,value:t}),minItems:e.minItems,maxItems:e.maxItems,items:e.items,propertyKey:e.key})},I2=({properties:e,value:n,onChange:r})=>Object.entries(e).map((([e,i])=>{const o="object"==typeof n&&!Array.isArray(n)?n[e]??n:n;return t(b,{children:L2[i.type]({key:e,title:i.title,description:i.description,value:o,className:i.className,properties:i.properties,enum:i.enum,minItems:i.minItems,maxItems:i.maxItems,items:i.items,onChange:t=>(t=>{const e=structuredClone(n);e[t.key]=t.value,r?.(e)})(t)})},e)}));var z2=a((({value:n,items:r,title:i,description:o,errorMessage:a,helperTextContainerProps:s,helperTextProps:l,maxItems:c,propertyKey:d,onChange:h,...p})=>{const[f,m]=u(0),g=I2({properties:{[d]:r},value:{[d]:n?.[f]},onChange:t=>{const e=structuredClone(n);if(!e?.length)return n;e[f]=t[d],h?.(e)}});return e(j,{gap:20,direction:"vertical",dimensionX:"fill",...p,className:`${p.className} ${AY.container}`,children:[i&&t(vA,{prefix:{children:t(Ua,{name:"ballot",className:AY.icon})},root:{children:t(W,{variant:"secondary",children:i})}}),t(mA,{length:n?.length,active:f,maxItems:c,onChange:t=>{m(t)},onCreate:()=>{const t=n||[];t?.push(n?.[f]||""),h?.(t),m(t.length-1)}}),g,t(ot.HelperText,{alignment:"leftCenter",dimensionX:"fill",...s,className:`${AY.helperText} ${s?.className}`,children:t(W,{...l,size:"small",variant:a?"danger":"secondary",className:`${l?.className}`,children:a||o})})]})}));const R2=({propertyKey:e,value:n,items:r,popoverProps:i,contentProps:o,...a})=>t(dA,{content:t(z2,{propertyKey:e,items:r,value:n,onChange:t=>a.onChange?.({key:a.key,value:t}),...o}),contentProps:{className:TY},containerProps:{dimensionX:"fill"},...i,children:t(j,{dimensionX:"fill",alignment:"leftCenter",dimensionY:36,...a,className:`${a.className} ${OY}`,children:t(W,{className:NY,children:JSON.stringify(n)})})});var F2=a((({checked:e,disabled:n=!1,containerProps:r,onChange:i})=>t(hD,{checked:e,disabled:n,...r,onChange:i}))),$2="ColorMinimized-module_colorMinimized__CnRpu",j2="ColorMinimized-module_closeIcon__SH3uo";const B2=({value:e="#000000",onClear:n,onChange:r,...i})=>{const[o,a]=u(e);return t(B,{alignment:"leftCenter",dimensionX:"fill",className:$2,...i,root:{dimensionX:"fill",alignment:"leftCenter",children:t(em,{value:o||"#000000",onChange:t=>{a(t),r?.(t)}}),...i.root},suffix:{dimensionX:"hug",alignment:"center",children:t(ys,{children:t(Ua,{name:"close"}),color:"transparent",onClick:t=>{t.preventDefault(),t.stopPropagation(),a(""),r?.(""),n?.()},className:j2}),...i.suffix}})};var H2="Date-module_minimizedDatePicker__ZIsQ7",W2="Date-module_clearButton__WMLse";const V2=({onChange:e,value:n,placeholder:r="",onClear:i,datePickerClassName:o,...a})=>t(B,{mode:"fill",dimensionX:"fill",gap:10,...a,className:`${H2} ${a.className}`,root:{alignment:"leftCenter",children:t(rA,{onChange:t=>{e?.(new Date(t))},value:n,placeholder:r,suffixIcon:null,allowClear:!1,className:o}),...a.root},suffix:{...a.suffix,children:t(ys,{variant:"text",className:W2,keepWidth:!1,onClick:i,children:t(Ua,{name:"close"})})}});var Y2="Location-module_container__SbKlF";const q2=({contentProps:n,mapProps:r,icon:i,...o})=>t(dA,{content:t(jA,{...r}),contentProps:n,containerProps:{dimensionX:"fill",alignment:"leftCenter",...o},children:t(B,{dimensionX:"fill",dimensionY:"fill",prefix:{children:i||t("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAStSURBVHgBNZXZblNXFIa/vc88+NiJDSEDbQCVAheFtmp7Gy6rSn2DCt4EeBLKG7TqZWmLVKnTRYWYKYiEEEicxLN9Jp+hK1HrC8vS2fv3Wv//rXUU/312Nx9uGOX0Bv7SlbmyW7b2QZdoDXmeQtylceI8tVLM0py86hIYJ+S5cW8WZ3fW1pa/PdLRR19v3nZvaEP/YoTLG4YVtOqqJi9SLMvCMCx6xiLa7ZDOC+bJmHI+J8JBGyazWm9MDPv2aDC4caSl9rf/ua6CpduHB29ZbjfI0plcblOWFVVV4jgO6XgHb/FDxsNXNO0BuXkRRSVnE6Iokg5y/EZAnGRXda7Da249YNHJMFVFXLnU6SF2+gZbxPKyxMgz4ne/49cz4omW50+xzJoojKAqjkV7ewcU2eCoUzbmuknlnqJyOijtYPonmCQlbtlDpT3Mk5cIVj6j4dr0sgbKWiGb9hjvP+Ggsnk2vkvXtuR8fkUXtke31JhOiJo+xCKlloY6731EYp2iNCrqKiOdxsTa4PTpBfG1RWNhjR3W8fM9DruXOa96cjdpaX/2F6eNXNT7TNOGpCfe1TCZTnDj54TBCvnoLWbyGNc9g22kFJNX9AcDLi7GmFLMpeaUF1NFXQ+PqOgwiAUDmkyjAwlkJh71cE3FVhxiJZuYhiJc/Zy0/4j9vRzHRAiwGcYllBkT3SF0FIV7BT1q+RSNV9jvDkjdEfs//UyjIW2l2zR1we4sIBTzi8Mn1NK+b045tN4nEYSWFlfpiWjW32IhOMVQyFDx+LB+Mv2R7laMvXyednOPTtLBitaxYxO7OGSSG6T+Kg1x94/9LT5ZXJaEHeQ+2bwWOiTsWjDKp+g98adSmtUPPLQK2f1tzNwLYWygLZ+tbJWWM6TtxMyLgqvtjNCV9mqDWe81kSN2yW872yEIIrEssvGtWgy1aHnPWPyiZC118X1P0jRZ05tgn4XZA3TRozaXUZl4rQyiwOegPwRTYLdOUo3fSBEJ7L8uhPIea/PzXDS/oT89IJ92mXc3qU4uSVtjDOsCDf0dOE10uI4pQ5taS2JCSDbSUrUWQhRq1N+p8/gxufqYTNKsy23aoSyB8XNs8bE/eSZXouMRHFVtPIF72uvRkJQzDEaNB0LFpzSLMVomSeeZhW+sYlYDOsU2C95ZOSZGuzvUkx9E6k9s3UfZDsXua8q8ZjP4ntL1sSUYZ3SBllHiWTliMdpTu8Ot+RC3tYIKOpTJSxw1ocjXwbNR5QYzfYZR4tE6u0JcxLjJ15LsRCDWMq4e+4WUIEi6koWudXg/8FpiiJibTlDmEv3cl5FzmeuvKKJz2FYkocnqqiMCqXSpesvr0V1I9jlhx6waM6Z5iXIX7mnZELeMapm/5y0m1iqW25Iqh7LzKvrDEVb2lJkcbmbPcPNNHFth2Gu0/S+Zy0zX6qjNNkoKGMTGHXW8rV/8elPbizfyiQhYEozhSJoRbVv+GZNhXdO0lmXBCsj9lwJ1QC5UmAJ4NRCULNmFur517v3LN9X/r4Cd7Z3rbmhfc73mxmzvEZl7lrDcoTQXZOUlx0h4ns8wS3D8JXQWY6hiWCSj+0Fr/dbCgnfvSOdfUypD2h2KlUYAAAAASUVORK5CYII=",alt:"location"})},root:{children:r?.coordinates&&e(W,{children:[r?.coordinates?.lat,", ",r?.coordinates?.lng," "]})},className:Y2})});var X2="MultiSelection-module_multiSelectionContainer__tUi2u",U2="MultiSelection-module_multiSelect__SA5u-";const Z2=({options:e,value:n,onChange:r,selectProps:i,...o})=>{const a=s(null);return t(B,{mode:"fill",dimensionX:"fill",root:{children:t(ID,{selectRef:a,prefix:{children:t(Ua,{name:"chevronDown"})},suffix:{children:Array.isArray(n)&&n.length>0&&t(ys,{variant:"text",keepWidth:!1,onClick:t=>{t.preventDefault(),t.stopPropagation(),a?.current?.clear()},children:t(Ua,{name:"close"})})},multiple:!0,options:e,value:n,onChange:t=>r?.(t),...i,className:U2})},...o,className:`${X2} ${o.className}`})};var G2="NumberMinimized-module_numberMinimized__o1ZAN",K2="NumberMinimized-module_select__yHQXe",J2="NumberMinimized-module_closeIcon__EgNTI";var Q2=a((({onClear:e,value:n,options:r,inputProps:i,onChange:o,...a})=>{const l=s(null),c=s(null);return t(B,{alignment:"leftCenter",dimensionX:"fill",className:G2,...a,root:{dimensionX:"fill",alignment:"leftCenter",children:r?t(ID,{selectRef:l,className:K2,placeholder:void 0!==n?String(n):"",value:n,options:r||[],onChange:t=>o?.(t)}):t(Z,{ref:c,value:n??"",type:"number",...i,onChange:t=>o?.(Number(t.target.value))}),...a.root},suffix:{dimensionX:"hug",alignment:"center",children:t(ys,{children:t(Ua,{name:"close"}),color:"transparent",onClick:t=>{t.preventDefault(),t.stopPropagation(),e?.(),l.current&&l.current.clear(),c.current&&(c.current.value="")},className:J2}),...a.suffix}})})),t5="Object-module_inputMinimized__JH1n-",e5="Object-module_contentContainer__y0Sfp",n5="Object-module_value__SJt70";const r5=({value:e,popoverProps:n,contentProps:r,properties:i,onChange:o,...a})=>t(dA,{content:t(D2,{properties:i,value:e,onChange:t=>o?.(t),...r}),contentProps:{className:e5},containerProps:{dimensionX:"fill"},...n,children:t(j,{dimensionX:"fill",alignment:"leftCenter",dimensionY:36,...a,className:`${a.className} ${t5}`,children:t(W,{className:n5,children:JSON.stringify(e)})})});var i5="RichText-module_richTextMinimized__LUAfH";const o5=({value:e,richTextProps:n,...r})=>t(dA,{content:t(N2,{value:e,contentProps:n}),containerProps:{dimensionX:"fill"},children:t(j,{dimensionX:"fill",alignment:"leftCenter",className:i5,...r,children:t(W,{children:e})})});var a5="StringMinimized-module_stringMinimized__m53JQ",s5="StringMinimized-module_select__uPgy-",l5="StringMinimized-module_closeIcon__N2ycP";var c5=a((({onClear:e,value:n,options:r,inputProps:i,enumOnChange:o,...a})=>t(B,{alignment:"leftCenter",dimensionX:"fill",className:a5,...a,root:{dimensionX:"fill",alignment:"leftCenter",children:r?t(ID,{className:s5,placeholder:n||" ",options:r||[],onChange:t=>o?.(String(t))}):t(Z,{value:n,...i}),...a.root},suffix:{dimensionX:"hug",alignment:"center",children:t(ys,{children:t(Ua,{name:"close"}),color:"transparent",onClick:e,className:l5}),...a.suffix}}))),u5="TextArea-module_textArea__VbAA6";const d5=({value:e,onClear:n,onChange:r,focusedRows:i=3,onFocus:o,onBlur:a,rows:s=1,cols:l=1,...c})=>{const[d,h]=u(!1);return t(B,{mode:"fill",dimensionX:"fill",root:{children:t("textarea",{value:e,onChange:t=>r?.(t.target.value),onFocus:()=>{h(!0),o?.(!0)},onBlur:()=>{h(!1),a?.(!1)},rows:d?i:s,cols:l})},suffix:{children:t(Ua,{name:"close"})},...c,className:`${u5} ${c.className}`})};var h5="ChipInput-module_chipInputContainer__qkZtV";var p5=a((({label:n,placeholder:r="Enter a value than press enter",...i})=>{const[o,a]=u(n||[]),[s,l]=u("");return e(j,{dimensionX:"fill",direction:"wrap",alignment:"leftCenter",...i,className:`${h5} ${i.className}`,children:[o.map(((e,n)=>t(Qf,{label:e,onDelete:()=>(t=>{const e=o.filter(((e,n)=>n!==t));a(e)})(n)},n))),t(Z,{placeholder:r,value:s,onChange:t=>l(t.target.value),onKeyDown:t=>{if("Enter"===t.key&&""!==s.trim()){t.preventDefault();const e=[...o,s.trim()];a(e),l("")}}})]})}));var f5=a((({selectClassName:e="",label:n="",options:r=[],onChange:i,...o})=>t(j,{...o,dimensionX:"fill",alignment:"leftCenter",children:t(ID,{className:e,placeholder:n,options:r,onChange:i||(()=>{})})})));export{MD as Accordion,z2 as ArrayInput,R2 as ArrayMinimizedInput,Q as Autocomplete,dt as BaseInput,QY as BooleanInput,F2 as BooleanMinimizedInput,Ja as BucketFieldPopup,ys as Button,qf as Chart,Kf as Checkbox,Qf as Chip,p5 as ChipInput,em as Color,eq as ColorInput,B2 as ColorMinimizedInput,nY as Dashboard,dm as DashboardItem,GY as DateInput,V2 as DateMinimizedInput,rA as DatePicker,hA as Directory,mA as DropList,f5 as EnumInput,j as FlexElement,B as FluidContainer,Ua as Icon,Z as Input,vA as InputHeader,G as InputWithIcon,bA as Json,V as ListItem,wA as ListRow,mX as LocationInput,q2 as LocationMinimizedInput,jA as Map,lY as MenuGroup,KA as Modal,uX as MultipleSelectionInput,Z2 as MultipleSelectionMinimizedInput,TD as NavigatorItem,VY as NumberInput,Q2 as NumberMinimizedInput,D2 as ObjectInput,r5 as ObjectMinimizedInput,dA as Popover,N2 as RichTextInput,o5 as RichTextMinimizedInput,um as Section,ID as Select,nD as SelectOption,bY as Sidebar,vs as Spinner,jD as SsoButton,lD as StorageFileCard,PY as StorageFileSelect,_R as StorageFilter,oX as StorageInput,FY as StringInput,c5 as StringMinimizedInput,hD as Switch,W as Text,ZY as TextAreaInput,d5 as TextAreaMinimizedInput,lW as Timeline,fD as Title};
|
|
100
|
-
//# sourceMappingURL=index.mjs.map
|